I created this automation to check and, in case, turn off all the lights if, during all the night, i experiment a shutdown of my router which causes some lights turn on.
- id: '1639219618905'
alias: Spegni tutte le luci dopo assenza elettricità
description: Spegni Luci dopo shutdown elettricità
trigger:
- platform: state
entity_id: light.yeelight_6
from: 'off'
to: 'on'
condition:
- condition: time
after: 01:00
before: 08:30
action:
- service: light.turn_off
target:
entity_id: all
mode: single
Is this automation ok? Will do what i want it does? Or is there a better way to do that?
Sorry for my english and i hope you understand well what i mean…
1 post - 1 participant