-
Notifications
You must be signed in to change notification settings - Fork 1
/
mqtt.yaml
284 lines (237 loc) · 7.78 KB
/
mqtt.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
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
# MQTT Sourced Sensors
# ⛅️ Weather
# This data comes from dutch, which is reading a sensor on the roof of the
# house and publishing the data via MQTT. 🏡
sensor:
- name: "Outside Temperature"
state_topic: "weather/Acurite-Atlas/temperature_F"
unit_of_measurement: "°F"
device_class: temperature
icon: mdi:thermometer
state_class: measurement
- name: "Outside Humidity"
state_topic: "weather/Acurite-Atlas/humidity"
unit_of_measurement: "%"
device_class: humidity
icon: mdi:water-percent
state_class: measurement
- name: "Wind Bearing"
state_topic: "weather/Acurite-Atlas/wind_dir_deg"
unit_of_measurement: "deg"
icon: mdi:compass
- name: "Wind Speed (Avg)"
state_topic: "weather/Acurite-Atlas/wind_avg_mi_h"
unit_of_measurement: "mph"
icon: mdi:weather-windy
state_class: measurement
device_class: wind_speed
- name: "UV Index"
state_topic: "weather/Acurite-Atlas/uv"
unit_of_measurement: "uv"
icon: mdi:sun-wireless
state_class: measurement
- name: "Outside Light Level"
state_topic: "weather/Acurite-Atlas/lux"
unit_of_measurement: "lx"
icon: mdi:sun-wireless-outline
state_class: measurement
device_class: illuminance
- name: "Lighting Count"
state_topic: "weather/Acurite-Atlas/strike_count"
icon: mdi:weather-lightning
state_class: total_increasing
- name: "Lighting Distance"
state_topic: "weather/Acurite-Atlas/strike_distance"
icon: mdi:signal-distance-variant
state_class: measurement
- name: "Rain Amount"
state_topic: "weather/Acurite-Atlas/rain_in"
unit_of_measurement: "in"
icon: mdi:weather-rainy
state_class: total_increasing
device_class: precipitation
- state_topic: "internal/rain_in_prior"
name: "rain_in_prior"
unit_of_measurement: "in"
- name: "Outside Temperature Roof"
state_topic: "weather/Acurite-5n1/temperature_F"
unit_of_measurement: "°F"
device_class: temperature
icon: mdi:thermometer
state_class: measurement
- name: "Outside Humidity Roof"
state_topic: "weather/Acurite-5n1/humidity"
unit_of_measurement: "%"
device_class: humidity
icon: mdi:water-percent
state_class: measurement
- name: "Wind Bearing Roof"
state_topic: "weather/Acurite-5n1/wind_dir_deg"
unit_of_measurement: "deg"
icon: mdi:compass
- name: "Wind Speed (Avg) Roof"
state_topic: "weather/Acurite-5n1/wind_avg_mi_h"
unit_of_measurement: "mph"
icon: mdi:weather-windy
state_class: measurement
device_class: wind_speed
- name: "Rain Amount Roof"
state_topic: "weather/Acurite-5n1/rain_in"
unit_of_measurement: "in"
icon: mdi:weather-rainy
state_class: total_increasing
# Include the Overly Gendered Thermometer
- name: "Overly Gendered Thermometer Temperature"
state_topic: "weather/Acurite-606TX/temperature_F"
unit_of_measurement: "°F"
device_class: temperature
icon: mdi:thermometer
state_class: measurement
# My EV charger (sparky)
- name: "Sparky Session Energy"
state_topic: "openevse/sparky/session_energy"
value_template: "{{ value | round(2) }}"
unit_of_measurement: "w"
device_class: "power"
state_class: measurement
- name: "Sparky Session Elapsed Time"
state_topic: "openevse/sparky/session_elapsed"
unit_of_measurement: "s"
device_class: "duration"
- name: "Sparky Shaper Live Power"
state_topic: "openevse/sparky/shaper_live_pwr"
value_template: "{{ value | round(2) }}"
unit_of_measurement: "W"
device_class: "power"
state_class: measurement
- name: "Sparky Shaper Smoothed Live Power"
state_topic: "openevse/sparky/shaper_smoothed_live_pwr"
value_template: "{{ value | round(2) }}"
unit_of_measurement: "W"
device_class: "power"
state_class: measurement
- name: "Sparky Shaper Max Power"
state_topic: "openevse/sparky/shaper_max_pwr"
value_template: "{{ value | round(2) }}"
unit_of_measurement: "W"
device_class: "power"
state_class: measurement
- name: "Sparky Shaper Current Available"
state_topic: "openevse/sparky/shaper_cur"
value_template: "{{ value | round(2) }}"
unit_of_measurement: "A"
device_class: "current"
state_class: measurement
- name: "Sparky Shaper Updated"
state_topic: "openevse/sparky/updated"
value_template: "{{ value | round(2) }}"
unit_of_measurement: "A"
device_class: "current"
state_class: measurement
- name: "Sparky Power"
state_topic: "openevse/sparky/power"
value_template: "{{ value | round(2) }}"
unit_of_measurement: "W"
device_class: "power"
state_class: measurement
- name: "Sparky Watt Hour"
state_topic: "openevse/sparky/watthour"
value_template: "{{ value | round(1) }}"
unit_of_measurement: "Wh"
device_class: "energy"
state_class: measurement
- name: "Sparky Uptime"
state_topic: "openevse/sparky/uptime"
unit_of_measurement: "s"
device_class: "duration"
- name: "Sparky Energy - Day"
state_topic: "openevse/sparky/total_day"
value_template: "{{ value | round(2) }}"
unit_of_measurement: "kW"
device_class: "power"
state_class: measurement
- name: "Sparky Energy - Week"
state_topic: "openevse/sparky/total_week"
value_template: "{{ value | round(2) }}"
unit_of_measurement: "kW"
device_class: "power"
state_class: total_increasing
- name: "Sparky Energy - Month"
state_topic: "openevse/sparky/total_month"
value_template: "{{ value | round(2) }}"
unit_of_measurement: "kW"
device_class: "power"
state_class: total_increasing
- name: "Sparky Energy - Year"
state_topic: "openevse/sparky/total_year"
value_template: "{{ value | round(2) }}"
unit_of_measurement: "kW"
device_class: "power"
state_class: total_increasing
- name: "Sparky Energy - All Time"
state_topic: "openevse/sparky/total_energy"
value_template: "{{ value | round(2) }}"
unit_of_measurement: "kWh"
device_class: "energy"
state_class: total_increasing
- name: "Sparky WiFi SRSSI"
state_topic: "openevse/sparky/srssi"
unit_of_measurement: "dBm"
device_class: "signal_strength"
- name: "Sparky Total Switches"
state_topic: "openevse/sparky/total_switches"
state_class: total
- name: "Sparky State"
state_topic: "openevse/sparky/state"
icon: mdi:car-electric
value_template: >
{% set map = {
'0': 'Unknown',
'1': 'No Vehicle Connected',
'2': 'Connected',
'3': 'Charging',
'4': 'Vent Required',
'5': 'Diode Check Failed',
'6': 'GFCI Fault',
'7': 'No Ground',
'8': 'Stuck Relay',
'9': 'GFCI Self-Test Failure',
'10': 'Over Temperature',
'254': 'Sleeping',
'255': 'Disabled',
} %}
{{ map[value] if value in map else 'Error' }}
- name: "Sparky Current Amps"
state_topic: "openevse/sparky/amp"
value_template: "{{ value | multiply(0.001) | round(2) }}"
unit_of_measurement: "A"
device_class: "current"
- name: "Sparky Temperature"
state_topic: "openevse/sparky/temp"
value_template: "{{ value | multiply(0.1) | round(2) }}"
unit_of_measurement: "°C"
device_class: "temperature"
- name: "Sparky LCD Color"
state_topic: "openevse/sparky/colour"
icon: mdi:format-color-fill
value_template: >
{% set map = {
'0': 'Off',
'1': 'Red',
'2': 'Green',
'3': 'Yellow',
'4': 'Blue',
'5': 'Violet',
'6': 'Teal',
'7': 'White',
} %}
{{ map[value] if value in map else 'Unknown' }}
binary_sensor:
- name: "Sparky Shaper Enabled"
state_topic: "openevse/sparky/shaper"
payload_on: 1
payload_off: 0
- name: "Sparky Shaper Updated"
state_topic: "openevse/sparky/shaper_updated"
payload_on: "true"
payload_off: "false"