Want to set up a dependable lighting cycle for an aquarium: on for 4 hours at midday, off for 2 hours, then on for 4 hours. Have some lights plugged into Tapo plugs.
I know the obvious way to do this with automations (at 12:00, switch on), but wondering if there’s a more bullet-proof method which will periodically check that the lights are doing the ‘right’ thing.
Have a time sensor set up, but not sure if this will be effective or efficient - will this just be triggering constantly…?!
alias: 'Timer: Aquarium Lights On' description: '' trigger: - platform: numeric_state entity_id: sensor.time_formatted above: '12.00' below: '16.00' id: aq_period_01 - platform: numeric_state entity_id: sensor.time_formatted id: aq_period_02 above: '18.00' below: '22.00' condition:  action: - service: switch.turn_on target: entity_id: - switch.tapo_15 - switch.tapo_16 mode: single
Or is it better to simply have another round of Automations that just check ‘if light off and between 12:00 and 16:00, switch light on’?