Alert When Door Open

View All Rules

alias: Alert When Door Open
trigger:
  platform: state
  entity_id:
    - binary_sensor.xd_front
    - binary_sensor.xd_kitchen_side
    - binary_sensor.id_living
    - binary_sensor.xd_studio
condition:
  condition: or
  conditions:
    - condition: time
      before: '04:00:00'
      after: '23:30:00'
    - condition: state
      entity_id: group.people_family
      state: 'not_home'
action:
  - service: notify.signal_stuart
    data:
      message: 'The {{ trigger.to_state.attributes.friendly_name }} has been {{ trigger.to_state.state }}.'

© 2020. Some rights reserved. The contents of this site is released under a Creative Commons Attribution-Share Alike license.