-
Notifications
You must be signed in to change notification settings - Fork 0
/
sensors.yaml
223 lines (192 loc) · 6.41 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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
- platform: darksky
api_key: !secret darksky_api_key
forecast:
- 1
- 2
- 3
monitored_conditions:
- temperature
- temperature_max
- temperature_min
- summary
- hourly_summary
- platform: arlo
monitored_conditions:
- captured_today
- last_capture
- total_cameras
- platform: time_date
display_options:
- 'time'
- 'date'
- 'date_time'
- 'time_date'
#- platform: travisci
# github_token: !secret Github_api_key
- platform: uptime
unit_of_measurement: hours
- platform: mqtt
name: Isaac's Room_temp
state_topic: "homeassistant/hzTemp/dht22_basement/temperature"
device_class: temperature
unit_of_measurement: "°F"
retain: true
icon: mdi:thermometer
- platform: mqtt
name: Isaac's Room_Humidity
state_topic: "homeassistant/hzTemp/dht22_basement/humidity"
unit_of_measurement: "%"
retain: true
- platform: mqtt
name: upstairs_temp
state_topic: "homeassistant/hzTemp/dht22_upstairs/temperature"
device_class: temperature
unit_of_measurement: "°F"
retain: true
icon: mdi:thermometer
- platform: mqtt
name: upstairs_Humidity
state_topic: "homeassistant/hzTemp/dht22_upstairs/humidity"
unit_of_measurement: "%"
retain: true
- platform: mqtt
name: Inside Garage Temp
state_topic: "smartthings/basement_garage_door/temperature"
device_class: temperature
unit_of_measurement: "°F"
retain: true
icon: mdi:thermometer
- platform: mqtt
name: Basement Garage Door
state_topic: "smartthings/basement_garage_door/contact"
payload_on: "open"
payload_off: "closed"
retain: true
- platform: mqtt
name: Garage Temp
state_topic: "smartthings/Garage Motion/temperature"
device_class: temperature
unit_of_measurement: "°F"
retain: true
icon: mdi:thermometer
- platform: mqtt
name: Garage Humidity
state_topic: "smartthings/Garage Motion/humidity"
unit_of_measurement: "%"
retain: true
- platform: mqtt
name: Office Temp
state_topic: "smartthings/Office Motion/temperature"
device_class: temperature
unit_of_measurement: "°F"
retain: true
icon: mdi:thermometer
- platform: mqtt
name: Office Humidity
state_topic: "smartthings/Office Motion/humidity"
unit_of_measurement: "%"
retain: true
- platform: mqtt
name: Energy
state_topic: "smartthings/power meter/energy"
unit_of_measurement: "kWh"
retain: true
- platform: mqtt
name: Power
state_topic: "smartthings/power meter/power"
unit_of_measurement: "kWh"
retain: true
- platform: mqtt
name: Volts
state_topic: "smartthings/power meter/voltage"
unit_of_measurement: "V"
retain: true
- platform: rest
name: Travis Status Label
resource: https://api.travis-ci.org/repos/mth3r/hassio/cc.json?branch=master
scan_interval: 300
value_template: "{{ value_json.last_build_number }}"
- platform: rest
name: Travis Status Timestamp
resource: https://api.travis-ci.org/repos/mth3r/hassio/cc.json?branch=master
scan_interval: 300
value_template: "
{% if (as_timestamp(now())-as_timestamp(value_json.last_build_finished_at )) | int <= 60 %}{{ (as_timestamp(now())-as_timestamp(value_json.last_build_finished_at )) | int }} Seconds
{%elif (as_timestamp(now())-as_timestamp(value_json.last_build_finished_at )) | int < 3600 %}{{ (as_timestamp(now())-as_timestamp(value_json.last_build_finished_at )) | int // 60 }} Minutes
{%elif (as_timestamp(now())-as_timestamp(value_json.last_build_finished_at )) | int >= 3600 %}{{ (as_timestamp(now())-as_timestamp(value_json.last_build_finished_at )) | round(common) | int * 0.000277 | round(4) }} Hours{%else%}??{%endif%}"
- platform: rest
name: Travis Status
resource: https://api.travis-ci.org/repos/mth3r/hassio/cc.json?branch=master
scan_interval: 300
value_template:
"{% if value_json.last_build_status|int(1) == 0 %}
passed
{% else %}
failed
{% endif %}"
- platform: pi_hole
host: !secret pi-hole_ip
- platform: rest
name: strava_distance
resource: !secret strava_url
method: GET
value_template: '{{ value_json[0].distance | multiply(0.000621371) | round(3) }}'
unit_of_measurement: miles
scan_interval: 3600
- platform: rest
name: strava_moving_time
resource: !secret strava_url
method: GET
value_template: '{{ value_json[0].moving_time | multiply(0.01666666) | round(3) }}'
unit_of_measurement: minutes
scan_interval: 3600
- platform: rest
name: strava_average_heartrate
resource: !secret strava_url
method: GET
value_template: '{{ value_json[0].average_heartrate }}'
scan_interval: 3600
- platform: rest
name: strava_type
resource: !secret strava_url
method: GET
value_template: '{{ value_json[0].type }}'
scan_interval: 3600
- platform: template
sensors:
dad_garage_door_status:
friendly_name: 'State of Garage Door'
value_template: '{{ states.cover.garage_door_opener.state }}'
dad_garage_door_time_in_state:
friendly_name: 'Since'
entity_id:
- sensor.time
value_template: '{{relative_time(states.cover.garage_door_opener.last_changed)}}'
mom_garage_door_status:
friendly_name: 'State of Garage Door'
value_template: '{{ states.cover.garage_door_opener_right.state }}'
mom_garage_door_time_in_state:
friendly_name: 'Since'
entity_id:
- sensor.time
value_template: '{{relative_time(states.cover.garage_door_opener_right.last_changed)}}'
floorplan_date:
friendly_name: 'FP_Date'
value_template:
'{{now().strftime("%a")}}, {{now().strftime("%b")}} {{now().strftime("%d")}}'
floorplan_time:
friendly_name: 'FP_Time'
value_template:
'{{now().strftime("%I")}}:{{now().strftime("%M")}} {{now().strftime("%p")}}'
floorplan_day_1:
friendly_name: 'day_1'
value_template:
'{{ (as_timestamp(now())+(60*60*24))|timestamp_custom("%a") }}'
floorplan_day_2:
friendly_name: 'day_2'
value_template:
'{{ (as_timestamp(now())+(60*60*24*2))|timestamp_custom("%a") }}'
floorplan_day_3:
friendly_name: 'day_3'
value_template:
'{{ (as_timestamp(now())+(60*60*24*3))|timestamp_custom("%a") }}'