-
Notifications
You must be signed in to change notification settings - Fork 0
/
sensors.yaml
executable file
·90 lines (79 loc) · 2.86 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
- platform: systemmonitor
resources:
- type: disk_free
arg: '/home'
- type: disk_free
arg: '/mnt/content'
- type: disk_free
arg: '/mnt/content2'
- type: disk_free
arg: '/mnt/content3'
- type: last_boot
- platform: darksky
api_key: !secret darksky_api
forecast:
- 1
- 2
- 3
monitored_conditions:
- summary
- precip_probability
- temperature
- wind_speed
- hourly_summary
- icon
- temperature_high
- temperature_low
- platform: cert_expiry
host: hamiltonhome.me
- platform: template
sensors:
home_occupancy:
value_template: "{%if states.binary_sensor.home_occupancy.state == 'on' %}Occupied{%elif states.binary_sensor.home_occupancy.state == 'off' %}Not Occupied{% endif %}"
friendly_name: 'Upstairs Living Room Occupancy'
downstairs_occupancy:
value_template: "{%if states.binary_sensor.downstairs_occupancy.state == 'on' %}Occupied{%elif states.binary_sensor.downstairs_occupancy.state == 'off' %}Not Occupied{% endif %}"
friendly_name: 'Downstairs Occupancy'
# harmony_living_room:
# value_template: '{{ states.remote.living_room.attributes.current_activity }}'
# friendly_name: 'Harmony Living Room'
front_door_battery:
value_template: >-
{%- if states.zwave.schlage_front_door -%}
{{ states.zwave.schlage_front_door.attributes.battery_level }}
{%- else -%}
n/a
{%- endif -%}
unit_of_measurement: '%'
friendly_name: 'Front Door Lock Battery'
living_room_shade_battery:
value_template: >-
{%- if states.zwave.living_room_shade -%}
{{ states.zwave.living_room_shade.attributes.battery_level }}
{%- else -%}
n/a
{%- endif -%}
unit_of_measurement: '%'
friendly_name: 'Living Room Shade Battery'
laundry_water_sensor_battery:
value_template: >-
{%- if states.zwave.laundry_room_water -%}
{{ states.zwave.laundry_room_water.attributes.battery_level }}
{%- else -%}
n/a
{%- endif -%}
unit_of_measurement: '%'
friendly_name: 'Laundry Room Water Sensor Battery'
laundry_room_water:
value_template: "{%if states.binary_sensor.laundry_room_water_sensor.state == 'on' %}WATER DETECTED{%elif states.binary_sensor.laundry_room_water_sensor.state == 'off' %}No water detected{% endif %}"
friendly_name: 'Laundry Room Water Sensor'
energy_switch_1_usage_history:
friendly_name: "Energy Switch 1 Usage History"
unit_of_measurement: 'watts'
value_template: >-
{{ states.switch.energy_switch_1.attributes.current_power_w }}
energy_switch_2_usage_history:
friendly_name: "Energy Switch 2 Usage History"
unit_of_measurement: 'watts'
value_template: >-
{{ states.switch.energy_switch_2.attributes.current_power_w }}