-
Notifications
You must be signed in to change notification settings - Fork 0
/
sensors.yaml
50 lines (50 loc) · 1.97 KB
/
sensors.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
- platform: template
sensors:
garage_entry_door:
friendly_name: 'Garage Entry Door'
value_template: >-
{%- if is_state("sensor.vision_security_zd2105us_5_recessed_door_window_sensor_alarm_level", "255") -%}
open
{%- else -%}
closed
{%- endif -%}
icon_template: >-
{%- if is_state("sensor.vision_security_zd2105us_5_recessed_door_window_sensor_alarm_level", "255") -%}
mdi:door-open
{%- else -%}
mdi:door-closed
{%- endif -%}
- platform: template
sensors:
batt_garage_entry_door:
friendly_name: 'Garage Entry Door Battery'
unit_of_measurement: '%'
value_template: >-
{% if states("sensor.vision_security_zd2105us_5_recessed_door_window_sensor_battery_level") -%}
{{ states('sensor.vision_security_zd2105us_5_recessed_door_window_sensor_battery_level') |int }}
{%- else -%}
Unknown
{%- endif -%}
device_class: battery
- platform: template
sensors:
driveway_sensor:
friendly_name: 'Driveway Motion Sensor'
value_template: >-
{%- if is_state("sensor.ecolink_door_window_sensor_access_control", "23") -%}
open
{%- else -%}
closed
{%- endif -%}
- platform: template
sensors:
batt_driveway_sensor:
friendly_name: 'Driveway Motion Sensor Battery'
unit_of_measurement: '%'
value_template: >-
{%- if states("sensor.ecolink_door_window_sensor_battery_level") -%}
{{ states("sensor.ecolink_door_window_sensor_battery_level") |int }}
{%- else -%}
Unknown
{%- endif -%}
device_class: battery