Turn a Light Off at Certain Time

Been using Home Assistant for a couple months and what I thought should have been simple, like time-based schedules, I have not been able to get working.

automation:
- alias: "Lights Out"
  trigger:
    platform: time
    at: '23:30:00'
  action:
    service: light.turn_off
    entity_id: light.yeelight_white_286c07b1c781

There are no errors in the logs and the configuration file is considered to be valid.

Any ideas?

Please post your code in a code block to keep spacing and formatting (as shown in the blue box above your post)

Try this

- alias: "Lights Out"
  trigger:
    - platform: time
      at: '23:30:00'
  action:
    - service: homeassistant.turn_off
      data:
        entity_id:
          - light.yeelight_white_286c07b1c781
6 Likes