alias: Turn kitchen nightlight off at sunrise
trigger:
  - platform: state
    entity_id: sun.sun
    to: 'above_horizon'
action:
  service: switch.turn_off
  entity_id: switch.kitchen_nightlight
