Hi Guys,
I have an automation that switches a boolean ON and another OFF, the former works and the latter does not, they are identical but opposite, but the other has a time delay. The
This is the working one:
- alias: big_pape_home
hide_entity: true
trigger:
- platform: state
entity_id: device_tracker.14_9d_09_81_20_b9
to: "home"
action:
- service: input_boolean.turn_on
data:
entity_id: input_boolean.big_pape
- service: mqtt.publish
data:
topic: 'location/nmp/bigpape'
payload: 'home'
This does not work
- alias: big_pape_away
hide_entity: true
trigger:
- platform: state
entity_id: device_tracker.14_9d_09_81_20_b9
from: "Home"
to: "Away"
for:
minutes: 5
action:
- service: input_boolean.turn_off
data:
entity_id: input_boolean.big_pape
- service: mqtt.publish
data:
topic: 'location/nmp/bigpape'
payload: 'away'
What could be the problem, I have tried to attack the second one from various angles but still it never triggers…