Any ideas, for this automation.yaml?

Hi,
I’m attempting to get my first automation working… without luck sadly…
Can anyone please point me in the right direction…

Basically I wanted to turn off a sonoff switch at a time each day.

This is currently my automation.yaml file…

  alias: Lockdown House
  trigger:
  - event_data:
      after: '16:53'
    event_type: time
    platform: event
  condition: []
  action:
  - alias: ''
    service: switch.turn_off
    entity_id: switch.lounge_lamp_left

Thank you so much!!!
Jason

Jason, if you just want to trigger based on time use this:

  • platform: time # close curtains
    at: ‘21:30:00’
- id: '1529066890913'
  alias: Lockdown House
  trigger:
    platform: time
    at: "16:53:00"
  action:
    service: switch.turn_off
    entity_id: switch.lounge_lamp_left
2 Likes