I have a turtle tank with basking lights plugged into a smart outlet plug. I would like to lights to turn on at sunrise and turn off at sunset. My current automation will turn lights on but not off
Is it possible to get this one automation to do both on and off?
- id: '1634102183865'
alias: Action - Switch - Schedule - Lucy Tank
description: ''
trigger:
- platform: sun
event: sunrise
condition: []
action:
- service: switch.turn_on
target:
entity_id: switch.lucy_tank
- wait_for_trigger:
- platform: sun
event: sunset
- service: switch.turn_off
target:
entity_id: switch.lucy_tank
mode: single
1 post - 1 participant