Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (25 sloc) 644 Bytes
---
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: script.notify_join
data_template:
who: "stuart"
title: 'Door Open'
notification_id: "hass-sec-door"
value1: 'The {{ trigger.to_state.attributes.friendly_name }} has been {{ trigger.to_state.state }}.'
You can’t perform that action at this time.