Olá pessoal, tenho esta automação que funciona assim: se alguém chegar na zona “Home” o interruptor geral das luzes ficam disponíveis. Porém ocorre se eu chego antes da condição, depois preciso ligar manualmente. Como posso ajustar isto?
- alias: 'Chegando em Casa'
initial_state: True
trigger:
platform: state
entity_id: group.all_family
from: 'not_home'
to: 'home'
condition:
condition: and
conditions:
- condition: sun
after: sunset
- condition: sun
before: sunrise
- condition: state
entity_id: input_boolean.chegando_saindo_casa
state: 'on'
action:
- service: switch.turn_on
entity_id: switch.luz_geral