Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

Presence detection not working

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>