Motion Sensor alerts

This commit is contained in:
Ben Charlton 2017-08-30 20:52:40 +00:00
parent 87f03c6c72
commit a649398bb8
2 changed files with 35 additions and 2 deletions

View file

@ -44,6 +44,23 @@
{% endif %}'
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
sensors:
batt_frontdoor: