Motion Sensor alerts
This commit is contained in:
parent
87f03c6c72
commit
a649398bb8
2 changed files with 35 additions and 2 deletions
|
@ -28,7 +28,7 @@
|
||||||
message: "Front Door: {{ states.sensor.front_door.state }}"
|
message: "Front Door: {{ states.sensor.front_door.state }}"
|
||||||
data:
|
data:
|
||||||
push:
|
push:
|
||||||
badge: 5
|
badge: 1
|
||||||
|
|
||||||
|
|
||||||
- alias: Back Door Open
|
- alias: Back Door Open
|
||||||
|
@ -45,6 +45,22 @@
|
||||||
message: "Back Door Sensor: {{ states.sensor.back_door.state }}"
|
message: "Back Door Sensor: {{ states.sensor.back_door.state }}"
|
||||||
data:
|
data:
|
||||||
push:
|
push:
|
||||||
badge: 5
|
badge: 2
|
||||||
|
|
||||||
|
- alias: Hallway Motion
|
||||||
|
trigger:
|
||||||
|
platform: state
|
||||||
|
entity_id: sensor.hall_motion
|
||||||
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: group.presence
|
||||||
|
state: 'not home'
|
||||||
|
action:
|
||||||
|
service: notify.all_phones
|
||||||
|
data:
|
||||||
|
message: "Hallway Movement: {{ states.sensor.hall_motion.state }}"
|
||||||
|
data:
|
||||||
|
push:
|
||||||
|
badge: 3
|
||||||
|
|
||||||
|
|
||||||
|
|
17
sensors.yaml
17
sensors.yaml
|
@ -44,6 +44,23 @@
|
||||||
{% endif %}'
|
{% endif %}'
|
||||||
friendly_name: 'Back Door'
|
friendly_name: 'Back Door'
|
||||||
|
|
||||||
|
- platform: template
|
||||||
|
sensors:
|
||||||
|
hall_motion:
|
||||||
|
value_template: >-
|
||||||
|
{%- if is_state('sensor.aeotec_zw100_multisensor_6_burglar', '3') -%}
|
||||||
|
Tamper
|
||||||
|
{%- elif is_state('sensor.aeotec_zw100_multisensor_6_burglar', '8') -%}
|
||||||
|
Motion
|
||||||
|
{%- elif is_state('sensor.aeotec_zw100_multisensor_6_burglar', '0') -%}
|
||||||
|
OK
|
||||||
|
{%- elif is_state('sensor.aeotec_zw100_multisensor_6_burglar', '254') -%}
|
||||||
|
OK
|
||||||
|
{%- else -%}
|
||||||
|
Unknown
|
||||||
|
{%- endif -%}
|
||||||
|
friendly_name: 'Hall Motion'
|
||||||
|
|
||||||
- platform: template
|
- platform: template
|
||||||
sensors:
|
sensors:
|
||||||
batt_frontdoor:
|
batt_frontdoor:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue