-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsensors.yaml
152 lines (130 loc) · 4.4 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
- platform: time_date
display_options:
- 'time'
- 'date'
- 'date_time'
- 'date_time_utc'
- 'date_time_iso'
- 'time_date'
- 'time_utc'
- 'beat'
- platform: template
sensors:
day_night:
friendly_name: "Day/Night"
value_template: "{% if is_state('input_boolean.day_night', 'on') %}Day{%else%}Night{%endif%}"
icon_template: "{% if is_state('input_boolean.day_night', 'on') %}mdi:weather-sunny{%else%}mdi:weather-night{%endif%}"
maysons_battery:
friendly_name: "Mayson's Sensor Battery"
device_class: battery
value_template: "{{ state_attr('zwave.maysons_sensor', 'battery_level') }}"
upstairs_bathroom_battery:
friendly_name: "Upstairs Bathroom Battery"
device_class: battery
value_template: "{{ state_attr('zwave.upstairs_bathroom_sensor', 'battery_level') }}"
upstairs_bathroom_humidity_median:
friendly_name: "Upstairs Bathroom Humidity Median"
value_template: "{{ states.sensor.upstairs_bathroom_humidity_statistics.attributes.median }}"
master_bath_humidity_median:
friendly_name: "Master Bathroom Humidity Median"
value_template: "{{ states.sensor.master_bathroom_humidity_statistics.attributes.median }}"
master_bath_battery:
friendly_name: "Master Bathroom Battery"
device_class: battery
value_template: "{{ state_attr('zwave.master_bath_sensor', 'battery_level') }}"
master_count:
friendly_name: "Master Count"
icon_template: "{% if states('sensor.master_count')|int == 2 %}mdi:account-multiple{% elif states('sensor.master_count')|int == 1 %}mdi:account{% else %}mdi:account-off{% endif %}"
value_template: "{{ expand(['person.chris', 'person.melissa']) | selectattr('state', 'eq', 'home') | list | count }}"
chris_status:
friendly_name: "Chris Status"
value_template: >-
{% if is_state('binary_sensor.master_bed_chris', 'on') %}
Bed
{% elif is_state('binary_sensor.chris_phone_connected_to_g35', 'on') %}
G35
{% elif is_state('binary_sensor.chris_phone_connected_to_suburban', 'on') %}
Suburban
{% else %}
{{ states('person.chris') | replace('not_home', 'away') | capitalize }}
{% endif %}
melissa_status:
friendly_name: "Melissa Status"
value_template: >-
{% if is_state('binary_sensor.master_bed_melissa', 'on') %}
Bed
{% elif is_state('binary_sensor.melissa_phone_connected_to_mkx', 'on') %}
MKX
{% else %}
{{ states('person.melissa') | replace('not_home', 'away') | capitalize }}
{% endif %}
mayson_status:
friendly_name: "Mayson Status"
value_template: >-
{% if is_state('binary_sensor.mayson_in_bed', 'on') %}
Bed
{% else %}
{{ states('person.mayson') | replace('not_home', 'away') | capitalize }}
{% endif %}
- platform: statistics
name: Upstairs Bathroom Humidity Statistics
entity_id: sensor.upstairs_bathroom_humidity
sampling_size: 240
max_age:
hours: 20
- platform: statistics
name: Upstairs Bathroom Luminance Statistics
entity_id: sensor.upstairs_bathroom_luminance
sampling_size: 60
max_age:
minutes: 30
- platform: statistics
name: Master Bathroom Humidity Statistics
entity_id: sensor.master_bath_humidity
sampling_size: 240
max_age:
hours: 20
- platform: statistics
name: Master Bathroom Luminance Statistics
entity_id: sensor.master_bath_luminance
sampling_size: 60
max_age:
minutes: 30
- platform: systemmonitor
resources:
- type: disk_use_percent
arg: /
- type: memory_use_percent
- type: load_1m
- type: load_5m
- type: load_15m
- platform: version
- platform: version
source: docker
- platform: cert_expiry
host: !secret url_host
- platform: waze_travel_time
name: Chris To Home
origin: person.chris
destination: zone.home
region: US
- platform: waze_travel_time
name: To Chris' Office
origin: person.chris
destination: zone.chris_work
region: US
- platform: waze_travel_time
name: Melissa To Home
origin: person.melissa
destination: zone.home
region: US
- platform: waze_travel_time
name: To Melissa's Office
origin: person.melissa
destination: zone.melissa_s_work_office
region: US
- platform: waze_travel_time
name: To Melissa's Southdale Office
origin: person.melissa
destination: zone.melissa_s_work_southdale
region: US