-
Notifications
You must be signed in to change notification settings - Fork 16
/
template_configuration.yaml
341 lines (308 loc) · 12 KB
/
template_configuration.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
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
template:
#Replicating old Growatt Server API metrics so the grafana dashboards still work - Only works if Grott is running!
#All PV Wattage#0 kW
- sensor:
- name: <DEVICE_ID-UPPER_CASE> All PV Wattage
unique_id: <DEVICE_ID-LOWER_CASE>_all_pv_wattage
device_class: 'power'
unit_of_measurement: 'kW'
state_class: 'measurement'
icon: 'mdi:solar-power'
state: >
{{ (states('sensor.<DEVICE_ID-LOWER_CASE>_pv_all_power') | float) / 1000 }}
#Battery charged today#8.6 kWh
- sensor:
- name: <DEVICE_ID-UPPER_CASE> Battery charged today
unique_id: <DEVICE_ID-LOWER_CASE>_battery_charged_today
device_class: 'energy'
unit_of_measurement: 'kWh'
state_class: 'total_increasing'
icon: 'mdi:solar-power'
state: >
{{ states('sensor.<DEVICE_ID-LOWER_CASE>_battery_charged_energy_today') }}
#Battery charging#0 kW
- sensor:
- name: <DEVICE_ID-UPPER_CASE> Battery charging
unique_id: <DEVICE_ID-LOWER_CASE>_battery_charging
device_class: 'power'
unit_of_measurement: 'kW'
state_class: 'measurement'
icon: 'mdi:solar-power'
state: >
{{ (states('sensor.<DEVICE_ID-LOWER_CASE>_battery_charging_power') | float) / 1000 }}
#Battery discharged today#8.8 kWh
- sensor:
- name: <DEVICE_ID-UPPER_CASE> Battery discharged today
unique_id: <DEVICE_ID-LOWER_CASE>_battery_discharged_today
device_class: 'energy'
unit_of_measurement: 'kWh'
state_class: 'total_increasing'
icon: 'mdi:solar-power'
state: >
{{ states('sensor.<DEVICE_ID-LOWER_CASE>_battery_discharged_energy_today') }}
#Battery discharging kW#1.03 kW
- sensor:
- name: <DEVICE_ID-UPPER_CASE> Battery discharging kW
unique_id: <DEVICE_ID-LOWER_CASE>_battery_discharging_kw
device_class: 'power'
unit_of_measurement: 'kW'
state_class: 'measurement'
icon: 'mdi:solar-power'
state: >
{{ (states('sensor.<DEVICE_ID-LOWER_CASE>_battery_discharging_power') | float) / 1000 }}
#Battery discharging W#1,030 W
- sensor:
- name: <DEVICE_ID-UPPER_CASE> Battery discharging W
unique_id: <DEVICE_ID-LOWER_CASE>_battery_discharging_w
device_class: 'power'
unit_of_measurement: 'W'
state_class: 'measurement'
icon: 'mdi:solar-power'
state: >
{{ states('sensor.<DEVICE_ID-LOWER_CASE>_battery_discharging_power') }}
#Battery voltage#52.1 V
#NOTE - This is identically named as the Grott sensor, we just re-use the unique ID for historic consistency
- sensor:
- name: <DEVICE_ID-UPPER_CASE> Battery voltage
unique_id: <DEVICE_ID-LOWER_CASE>_battery_voltage
device_class: 'voltage'
unit_of_measurement: 'V'
state_class: 'measurement'
icon: 'mdi:solar-power'
state: >
{{ states('sensor.<DEVICE_ID-LOWER_CASE>_battery_voltage') }}
#Export to grid#0 kW
- sensor:
- name: <DEVICE_ID-UPPER_CASE> Export to grid
unique_id: <DEVICE_ID-LOWER_CASE>_export_to_grid
device_class: 'power'
unit_of_measurement: 'kW'
state_class: 'measurement'
icon: 'mdi:solar-power'
state: >
{{ (states('sensor.<DEVICE_ID-LOWER_CASE>_export_to_grid_power') | float) / 1000 }}
#Export to grid today#1.9 kWh
- sensor:
- name: <DEVICE_ID-UPPER_CASE> Export to grid today
unique_id: <DEVICE_ID-LOWER_CASE>_export_to_grid_today
device_class: 'energy'
unit_of_measurement: 'kWh'
state_class: 'total_increasing'
icon: 'mdi:solar-power'
state: >
{{ states('sensor.<DEVICE_ID-LOWER_CASE>_export_to_grid_energy_today') }}
#Grid voltage#244.5 V
- sensor:
- name: <DEVICE_ID-UPPER_CASE> Grid voltage
unique_id: <DEVICE_ID-LOWER_CASE>_grid_voltage
device_class: 'voltage'
unit_of_measurement: 'V'
state_class: 'measurement'
icon: 'mdi:solar-power'
state: >
{{ states('sensor.<DEVICE_ID-LOWER_CASE>_inverter_output_voltage_single_first_phase') }}
#Import from grid#0 kW
- sensor:
- name: <DEVICE_ID-UPPER_CASE> Import from grid
unique_id: <DEVICE_ID-LOWER_CASE>_import_from_grid
device_class: 'power'
unit_of_measurement: 'kW'
state_class: 'measurement'
icon: 'mdi:solar-power'
state: >
{{ (states('sensor.<DEVICE_ID-LOWER_CASE>_import_from_grid_power') | float) / 1000 }}
#Import from grid today (load + charging)#9.84 kWh
- sensor:
- name: <DEVICE_ID-UPPER_CASE> Import from grid today (load + charging)
unique_id: <DEVICE_ID-LOWER_CASE>_import_from_grid_today_load_charging
device_class: 'energy'
unit_of_measurement: 'kWh'
state_class: 'total_increasing'
icon: 'mdi:solar-power'
state: >
{{ states('sensor.<DEVICE_ID-LOWER_CASE>_import_from_grid_energy_today') }}
#Import from grid today (load)#4.8 kWh
- sensor:
- name: <DEVICE_ID-UPPER_CASE> Import from grid today (load)
unique_id: <DEVICE_ID-LOWER_CASE>_import_from_grid_today_load
device_class: 'energy'
unit_of_measurement: 'kWh'
state_class: 'total_increasing'
icon: 'mdi:solar-power'
state: >
{{ states('sensor.<DEVICE_ID-LOWER_CASE>_load_consumption_energy_ac_today_calculated') }}
#Last Data Update#4 minutes ago
#NOTE - N/A
#Lifetime battery charged#6,892.8 kWh
- sensor:
- name: <DEVICE_ID-UPPER_CASE> Lifetime battery charged
unique_id: <DEVICE_ID-LOWER_CASE>_lifetime_battery_charged
device_class: 'energy'
unit_of_measurement: 'kWh'
state_class: 'total'
icon: 'mdi:solar-power'
state: >
{{ states('sensor.<DEVICE_ID-LOWER_CASE>_battery_charged_energy_total') }}
#Lifetime battery discharged#7,390.4 kWh
- sensor:
- name: <DEVICE_ID-UPPER_CASE> Lifetime battery discharged
unique_id: <DEVICE_ID-LOWER_CASE>_lifetime_battery_discharged
device_class: 'energy'
unit_of_measurement: 'kWh'
state_class: 'total'
icon: 'mdi:solar-power'
state: >
{{ states('sensor.<DEVICE_ID-LOWER_CASE>_battery_discharged_energy_total') }}
#Lifetime export to grid#3,016 kWh
- sensor:
- name: <DEVICE_ID-UPPER_CASE> Lifetime export to grid
unique_id: <DEVICE_ID-LOWER_CASE>_lifetime_export_to_grid
device_class: 'energy'
unit_of_measurement: 'kWh'
state_class: 'total'
icon: 'mdi:solar-power'
state: >
{{ states('sensor.<DEVICE_ID-LOWER_CASE>_export_to_grid_energy_total') }}
#Lifetime load consumption#0 kWh
- sensor:
- name: <DEVICE_ID-UPPER_CASE> Lifetime load consumption
unique_id: <DEVICE_ID-LOWER_CASE>_lifetime_load_consumption
device_class: 'energy'
unit_of_measurement: 'kWh'
state_class: 'total'
icon: 'mdi:solar-power'
state: >
{{ states('sensor.<DEVICE_ID-LOWER_CASE>_load_consumption_energy_total') }}
#Lifetime solar energy#10,110 kWh
- sensor:
- name: <DEVICE_ID-UPPER_CASE> Lifetime solar energy
unique_id: <DEVICE_ID-LOWER_CASE>_lifetime_solar_energy
device_class: 'energy'
unit_of_measurement: 'kWh'
state_class: 'total'
icon: 'mdi:solar-power'
state: >
{{ states('sensor.<DEVICE_ID-LOWER_CASE>_pv_all_energy_total_calculated') }}
#Load consumption#1.03 kW
- sensor:
- name: <DEVICE_ID-UPPER_CASE> Load consumption
unique_id: <DEVICE_ID-LOWER_CASE>_load_consumption
device_class: 'power'
unit_of_measurement: 'kW'
state_class: 'measurement'
icon: 'mdi:solar-power'
state: >
{{ (states('sensor.<DEVICE_ID-LOWER_CASE>_load_consumption_power') | float) / 1000 }}
#Load consumption today#21.3 kWh
- sensor:
- name: <DEVICE_ID-UPPER_CASE> Load consumption today
unique_id: <DEVICE_ID-LOWER_CASE>_load_consumption_today
device_class: 'energy'
unit_of_measurement: 'kWh'
state_class: 'total_increasing'
icon: 'mdi:solar-power'
state: >
{{ states('sensor.<DEVICE_ID-LOWER_CASE>_load_consumption_energy_today') }}
#Load consumption today (battery)#8.8 kWh
- sensor:
- name: <DEVICE_ID-UPPER_CASE> Load consumption today (battery)
unique_id: <DEVICE_ID-LOWER_CASE>_load_consumption_today_battery
device_class: 'energy'
unit_of_measurement: 'kWh'
state_class: 'total_increasing'
icon: 'mdi:solar-power'
state: >
{{ states('sensor.<DEVICE_ID-LOWER_CASE>_battery_discharged_energy_today') }}
#Load consumption today (solar)#7.7 kWh
- sensor:
- name: <DEVICE_ID-UPPER_CASE> Load consumption today (solar)
unique_id: <DEVICE_ID-LOWER_CASE>_load_consumption_today_solar
device_class: 'energy'
unit_of_measurement: 'kWh'
state_class: 'total_increasing'
icon: 'mdi:solar-power'
state: >
{{ states('sensor.<DEVICE_ID-LOWER_CASE>_load_consumption_energy_pv_today_calculated') }}
#PV1 voltage#149.7 V
#NOTE - This is identically named as the Grott sensor, we just re-use the unique ID for historic consistency
- sensor:
- name: <DEVICE_ID-UPPER_CASE> PV1 voltage
unique_id: <DEVICE_ID-LOWER_CASE>_pv1_voltage
device_class: 'voltage'
unit_of_measurement: 'V'
state_class: 'measurement'
icon: 'mdi:solar-power'
state: >
{{ states('sensor.<DEVICE_ID-LOWER_CASE>_pv1_voltage') }}
#PV1 Wattage#0 kW
- sensor:
- name: <DEVICE_ID-UPPER_CASE> PV1 Wattage
unique_id: <DEVICE_ID-LOWER_CASE>_pv1_wattage
device_class: 'power'
unit_of_measurement: 'kW'
state_class: 'measurement'
icon: 'mdi:solar-power'
state: >
{{ (states('sensor.<DEVICE_ID-LOWER_CASE>_pv1_power') | float) / 1000 }}
#PV2 voltage#0 V
#NOTE - This is identically named as the Grott sensor, we just re-use the unique ID for historic consistency
- sensor:
- name: <DEVICE_ID-UPPER_CASE> PV2 voltage
unique_id: <DEVICE_ID-LOWER_CASE>_pv2_voltage
device_class: 'voltage'
unit_of_measurement: 'V'
state_class: 'measurement'
icon: 'mdi:solar-power'
state: >
{{ states('sensor.<DEVICE_ID-LOWER_CASE>_pv2_voltage') }}
#PV2 Wattage#0 kW
- sensor:
- name: <DEVICE_ID-UPPER_CASE> PV2 Wattage
unique_id: <DEVICE_ID-LOWER_CASE>_pv2_wattage
device_class: 'power'
unit_of_measurement: 'kW'
state_class: 'measurement'
icon: 'mdi:solar-power'
state: >
{{ (states('sensor.<DEVICE_ID-LOWER_CASE>_pv2_power') | float) / 1000 }}
#Self consumption today (solar + battery)#16.5 kWh
- sensor:
- name: <DEVICE_ID-UPPER_CASE> Self consumption today (solar + battery)
unique_id: <DEVICE_ID-LOWER_CASE>_self_consumption_today_solar_battery
device_class: 'energy'
unit_of_measurement: 'kWh'
state_class: 'total_increasing'
icon: 'mdi:solar-power'
state: >
{{ states('sensor.<DEVICE_ID-LOWER_CASE>_self_consumption_solar_battery_energy_today_eactoday') }}
#Solar energy today#13.1 kWh
- sensor:
- name: <DEVICE_ID-UPPER_CASE> Solar energy today
unique_id: <DEVICE_ID-LOWER_CASE>_solar_energy_today
device_class: 'energy'
unit_of_measurement: 'kWh'
state_class: 'total'
icon: 'mdi:solar-power'
state: >
{{ states('sensor.<DEVICE_ID-LOWER_CASE>_pv_all_energy_today_calculated') }}
#Statement of charge#56%
#NOTE - This is identically named as the Grott sensor, we just re-use the unique ID for historic consistency
- sensor:
- name: <DEVICE_ID-UPPER_CASE> Statement of charge
unique_id: <DEVICE_ID-LOWER_CASE>_statement_of_charge
device_class: 'battery'
unit_of_measurement: '%'
state_class: 'measurement'
icon: 'mdi:solar-power'
state: >
{{ states('sensor.<DEVICE_ID-LOWER_CASE>_statement_of_charge') }}
#System production today (self-consumption + export)#18.4 kWh
- sensor:
- name: <DEVICE_ID-UPPER_CASE> System production today (self-consumption + export)
unique_id: <DEVICE_ID-LOWER_CASE>_system_production_today_self_consumption_export
device_class: 'energy'
unit_of_measurement: 'kWh'
state_class: 'total_increasing'
icon: 'mdi:solar-power'
state: >
{{ states('sensor.<DEVICE_ID-LOWER_CASE>_system_output_self_consumption_export_today_calculated') }}