@mlasham wrote:
Hi
I’ve an automation that sends an alert when a door or window is opened and it works really well.
I added a condition to only alert when I’m not home but now it does not work at all.
What have I done wrong please?- id: '8675309' alias: Alert Door description: alert when door opened trigger: - platform: state entity_id: - binary_sensor.dining_room_door - binary_sensor.garage_door - binary_sensor.sun_room_door from: 'off' to: 'on' condition: - condition: state entity_id: person.michael state: 'Not_Home' action: - service: notify.notify data_template: message: The {{ trigger.to_state.name }} door is open. title: Your {{ trigger.to_state.name }} door
Posts: 4
Participants: 2