-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration.yaml
494 lines (407 loc) · 19 KB
/
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
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
# Utility Meters
utility_meter:
optimus_energy_daily:
source: sensor.optimus_energy_today
cycle: daily
optimus_energy_weekly:
source: sensor.optimus_energy_today
cycle: weekly
optimus_energy_monthly:
source: sensor.optimus_energy_today
cycle: monthly
optimus_energy_yearly:
source: sensor.optimus_energy_today
cycle: yearly
tv1_energy_daily:
source: sensor.tv1_plug_energy_today_2
cycle: daily
tv1_energy_weekly:
source: sensor.tv1_plug_energy_today_2
cycle: weekly
tv1_energy_monthly:
source: sensor.tv1_plug_energy_today_2
cycle: monthly
tv1_energy_yearly:
source: sensor.optimus_tv1_today
cycle: yearly
tv2_energy_daily:
source: sensor.tv2_plug_energy_today
cycle: daily
tv2_energy_weekly:
source: sensor.tv2_plug_energy_today
cycle: weekly
tv2_energy_monthly:
source: sensor.tv2_plug_energy_today
cycle: monthly
tv2_energy_yearly:
source: sensor.yearly_energy_today
cycle: yearly
tv3_energy_daily:
source: sensor.tv3_plug_energy_today
cycle: daily
tv3_energy_weekly:
source: sensor.tv3_plug_energy_today
cycle: weekly
tv3_energy_monthly:
source: sensor.tv3_plug_energy_today
cycle: monthly
tv3_energy_yearly:
source: sensor.tv3_energy_today
cycle: yearly
monitor5_energy_daily:
source: sensor.monitor5_energy_today
cycle: daily
monitor5_energy_weekly:
source: sensor.monitor5_energy_today
cycle: weekly
monitor5_energy_monthly:
source: sensor.monitor5_energy_today
cycle: monthly
montor5_energy_yearly:
source: sensor.monitor5_energy_today
cycle: yearly
monitor6_energy_daily:
source: sensor.monitor6_energy_today_2
cycle: daily
monitor6_energy_weekly:
source: sensor.monitor6_energy_today_2
cycle: weekly
monitor6_energy_monthly:
source: sensor.monitor6_energy_today_2
cycle: monthly
monitor6_energy_yearly:
source: sensor.monitor6_energy_today
cycle: yearly
ultron_energy_daily:
source: sensor.ultron_energy_today
cycle: daily
ultron_energy_weekly:
source: sensor.ultron_energy_today
cycle: weekly
ultron_energy_monthly:
source: sensor.ultron_energy_today
cycle: monthly
ultron_energy_yearly:
source: sensor.ultron_energy_today
cycle: yearly
das_one_energy_daily:
source: sensor.das_one_energy_today
cycle: daily
das_one_energy_weekly:
source: sensor.das_one_energy_today
cycle: weekly
das_one_energy_monthly:
source: sensor.das_one_energy_today
cycle: monthly
das_one_energy_yearly:
source: sensor.das_one_energy_today
cycle: yearly
attic_auxiliary_energy_daily:
source: sensor.attic_auxiliary_energy_kwh
cycle: daily
attic_auxiliary_energy_weekly:
source: sensor.attic_auxiliary_energy_kwh
cycle: weekly
attic_auxiliary_energy_monthly:
source: sensor.attic_auxiliary_energy_kwh
cycle: monthly
attic_auxiliary_energy_yearly:
source: sensor.attic_auxiliary_energy_kwh
cycle: yearly
primary_multiplug_energy_daily:
source: sensor.primary_multiplug_energy_kwh
cycle: daily
primary_multiplug_energy_weekly:
source: sensor.primary_multiplug_energy_kwh
cycle: weekly
primary_multiplug_energy_monthly:
source: sensor.primary_multiplug_energy_kwh
cycle: monthly
primary_multiplug_energy_yearly:
source: sensor.primary_multiplug_energy_kwh
cycle: yearly
secondary_multiplug_energy_daily:
source: sensor.secondary_multiplug_energy_kwh
cycle: daily
secondary_multiplug_energy_weekly:
source: sensor.secondary_multiplug_energy_kwh
cycle: weekly
secondary_multiplug_energy_monthly:
source: sensor.secondary_multiplug_energy_kwh
cycle: monthly
secondary_multiplug_energy_yearly:
source: sensor.secondary_multiplug_energy_kwh
cycle: yearly
attic_light_energy_daily:
source: sensor.attic_light_power_kwh
cycle: daily
attic_light_energy_weekly:
source: sensor.attic_light_power_kwh
cycle: weekly
attic_light_energy_monthly:
source: sensor.attic_light_power_kwh
cycle: monthly
attic_light_energy_yearly:
source: sensor.attic_light_power_kwh
cycle: yearly
## kWh cumluative Battle-Station
sensor:
- platform: template
sensors:
monitored_devices_yesterday_power:
friendly_name: "Monitored Devices Yesterday"
unit_of_measurement: 'kWh'
icon_template: mdi:speedometer
value_template: "{{ (states('sensor.monitor5_energy_yesterday') | float +
states('sensor.monitor6_energy_yesterday_2') | float +
states('sensor.optimus_energy_yesterday') | float +
states('sensor.tv1_plug_energy_yesterday_2') | float +
states('sensor.tv2_plug_energy_yesterday') | float +
states('sensor.tv3_plug_energy_yesterday') | float) | round(2) }}"
- platform: template
sensors:
monitored_devices_daily_power:
friendly_name: "Monitored Devices Daily"
unit_of_measurement: 'kWh'
icon_template: mdi:speedometer
value_template: "{{ (states('sensor.monitor5_energy_today') | float +
states('sensor.monitor6_energy_today_2') | float +
states('sensor.optimus_energy_today') | float +
states('sensor.tv1_plug_energy_today_2') | float +
states('sensor.tv2_plug_energy_today') | float +
states('sensor.tv3_plug_energy_today') | float) | round(2) }}"
- platform: template
sensors:
monitored_devices_weekly_power:
friendly_name: "Monitored Devices Weekley"
unit_of_measurement: 'kWh'
icon_template: mdi:speedometer
value_template: "{{ (states('sensor.monitor5_energy_weekly') | float +
states('sensor.monitor6_energy_weekly') | float +
states('sensor.optimus_energy_weekly') | float +
states('sensor.tv1_plug_energy_weekly') | float +
states('sensor.tv2_plug_energy_weekly') | float +
states('sensor.tv3_plug_energy_weekly') | float) | round(2) }}"
- platform: template
sensors:
monitored_devices_monthly_power:
friendly_name: "Monitored Devices Monthly"
unit_of_measurement: 'kWh'
icon_template: mdi:speedometer
value_template: "{{ (states('sensor.monitor5_energy_monthly') | float +
states('sensor.monitor6_energy_monthly') | float +
states('sensor.optimus_energy_monthly') | float +
states('sensor.tv1_plug_energy_monthly') | float +
states('sensor.tv2_plug_energy_monthly') | float +
states('sensor.tv3_plug_energy_monthly') | float) | round(2) }}"
## Wattage
- platform: template
sensors:
monitored_devices_current_wattage:
friendly_name: "Monitored Devices Current Wattage"
unit_of_measurement: 'W'
icon_template: mdi:speedometer
value_template: "{{ (states('sensor.monitor5_energy_power') | float +
states('sensor.monitor6_energy_power_2') | float +
states('sensor.optimus_energy_power') | float +
states('sensor.tv1_plug_energy_power') | float +
states('sensor.tv2_plug_energy_power') | float +
states('sensor.tv3_plug_energy_power') | float +
states('sensor.primary_multiplug_power') | float +
states('sensor.secondary_multiplug_power') | float) | round(2) }}"
## kWh Attic
- platform: template
sensors:
server_usage_yesterday_power:
friendly_name: "Server Usage Yesterday"
unit_of_measurement: 'kWh'
icon_template: mdi:speedometer
value_template: "{{ (states('sensor.das_one_energy_yesterday') | float +
states('sensor.ultron_energy_yesterday') | float) | round(2) }}"
- platform: template
sensors:
server_usage_daily_power:
friendly_name: "Server Usage Daily"
unit_of_measurement: 'kWh'
icon_template: mdi:speedometer
value_template: "{{ (states('sensor.das_one_energy_today') | float +
states('sensor.ultron_energy_today') | float) | round(2) }}"
- platform: template
sensors:
server_usage_weekly_power:
friendly_name: "Server Usage Weekley"
unit_of_measurement: 'kWh'
icon_template: mdi:speedometer
value_template: "{{ (states('sensor.das_one_energy_weekly') | float +
states('sensor.ultron_energy_weekly') | float) | round(2) }}"
- platform: template
sensors:
server_usage_monthly_power:
friendly_name: "Server Usage Monthly"
unit_of_measurement: 'kWh'
icon_template: mdi:speedometer
value_template: "{{ (states('sensor.das_one_energy_monthly') | float +
states('sensor.ultron_energy_monthly') | float) | round(2) }}"
## Wattage
- platform: template
sensors:
server_usage_current_wattage:
friendly_name: "Server Usage Current Wattage"
unit_of_measurement: 'W'
icon_template: mdi:speedometer
value_template: "{{ (states('sensor.das_one_energy_power') | float +
states('sensor.ultron_energy_power') | float) | round(2) }}"
## Cost Sensors
## Battle-Station
- platform: template
sensors:
cost_monitored_devices_yesterday_power:
friendly_name: "Cost Yesterday"
icon_template: mdi:currency-gbp
unit_of_measurement: '£'
value_template: "{{ (states('sensor.monitored_devices_yesterday_power') | float *
states('sensor.price_per_kwh') | float) | round(2) }}"
- platform: template
sensors:
cost_monitored_devices_daily_power:
friendly_name: "Cost Daily"
icon_template: mdi:currency-gbp
unit_of_measurement: '£'
value_template: "{{ (states('sensor.monitored_devices_daily_power') | float *
states('sensor.price_per_kwh') | float) | round(2) }}"
- platform: template
sensors:
cost_monitored_devices_weekly_power:
friendly_name: "Cost Weekly"
icon_template: mdi:currency-gbp
unit_of_measurement: '£'
value_template: "{{ (states('sensor.monitored_devices_weekly_power') | float *
states('sensor.price_per_kwh') | float) | round(2) }}"
- platform: template
sensors:
cost_monitored_devices_monthly_power:
friendly_name: "Cost Monthly"
icon_template: mdi:currency-gbp
unit_of_measurement: '£'
value_template: "{{ (states('sensor.monitored_devices_monthly_power') | float *
states('sensor.price_per_kwh') | float) | round(2) }}"
## Cost Sensors
## Attic Room
- platform: template
sensors:
cost_server_devices_yesterday_power:
friendly_name: "Server Cost Yesterday"
icon_template: mdi:currency-gbp
unit_of_measurement: '£'
value_template: "{{ (states('sensor.server_usage_yesterday_power') | float *
states('sensor.price_per_kwh') | float) | round(2) }}"
- platform: template
sensors:
cost_server_devices_daily_power:
friendly_name: "Server Cost Daily"
icon_template: mdi:currency-gbp
unit_of_measurement: '£'
value_template: "{{ (states('sensor.server_usage_daily_power') | float *
states('sensor.price_per_kwh') | float) | round(2) }}"
- platform: template
sensors:
cost_server_devices_weekly_power:
friendly_name: "Server Cost Weekly"
icon_template: mdi:currency-gbp
unit_of_measurement: '£'
value_template: "{{ (states('sensor.server_usage_weekly_power') | float *
states('sensor.price_per_kwh') | float) | round(2) }}"
- platform: template
sensors:
cost_server_devices_monthly_power:
friendly_name: "Sever Cost Monthly"
icon_template: mdi:currency-gbp
unit_of_measurement: '£'
value_template: "{{ (states('sensor.server_usage_monthly_power') | float *
states('sensor.price_per_kwh') | float) | round(2) }}"
## Cost Senors
## Totals for energy card
- platform: template
sensors:
total_cost_yesterday:
friendly_name: "Total Cost Yesterday"
icon_template: mdi:currency-gbp
value_template: "{{ (states('sensor.cost_server_devices_yesterday_power') | float +
states('sensor.cost_monitored_devices_yesterday_power') | float +
states('sensor.price_standing_charge_daily') | float) | round(2) }}"
- platform: template
sensors:
total_cost_daily:
friendly_name: "Total Cost Daily"
icon_template: mdi:currency-gbp
value_template: "{{ (states('sensor.cost_server_devices_daily_power') | float +
states('sensor.cost_monitored_devices_daily_power') | float +
states('sensor.price_standing_charge_daily') | float) | round(2) }}"
- platform: template
sensors:
total_cost_weekly:
friendly_name: "Total Cost Weekly"
icon_template: mdi:currency-gbp
value_template: "{{ (states('sensor.price_standing_charge_daily') | float * 7 +
states('sensor.cost_monitored_devices_weekly_power') | float +
states('sensor.cost_server_devices_weekly_power') | float) | round(2) }}"
- platform: template
sensors:
total_cost_monthly:
friendly_name: "Total Cost Monthly"
icon_template: mdi:currency-gbp
value_template: "{{ (states('sensor.price_standing_charge_daily') | float * 28 +
states('sensor.cost_monitored_devices_monthly_power') | float +
states('sensor.cost_server_devices_monthly_power') | float) | round(2) }}"
## Tariff
- platform: template
sensors:
price_per_kwh:
friendly_name: "Price per kWh"
icon_template: mdi:currency-gbp
unit_of_measurement: '£'
value_template: "0.1875"
- platform: template
sensors:
price_standing_charge_daily:
friendly_name: "Price Standing Charge Daily"
icon_template: mdi:currency-gbp
unit_of_measurement: '£'
value_template: "0.2500"
## Meross Plug Kilowatt Correction from wH
- platform: template
sensors:
attic_auxiliary_energy_kwh:
friendly_name: "Attic Auxiliary Energy"
unit_of_measurement: 'kWh'
value_template: "{{ (states('sensor.attic_auxiliary_energy') | float / 1000) }}"
- platform: template
sensors:
port_lamp_energy_kwh:
friendly_name: "Port Lamp Energy"
unit_of_measurement: 'kWh'
value_template: "{{ (states('sensor.port_lamp_energy') | float / 1000) }}"
- platform: template
sensors:
starboard_lamp_energy_kwh:
friendly_name: "Starboard Lamp Energy"
unit_of_measurement: 'kWh'
value_template: "{{ (states('sensor.starboard_lamp_energy') | float / 1000) }}"
- platform: template
sensors:
primary_multiplug_energy_kwh:
friendly_name: "Primary Multiplug Energy"
unit_of_measurement: 'kWh'
value_template: "{{ (states('sensor.primary_multiplug_energy') | float / 1000) }}"
- platform: template
sensors:
secondary_multiplug_energy_kwh:
friendly_name: "Secondary Multiplug Energy"
unit_of_measurement: 'kWh'
value_template: "{{ (states('sensor.secondary_multiplug_energy') | float / 1000) }}"
- platform: template
sensors:
attic_light_power_kwh:
friendly_name: "Attic Light Energy"
unit_of_measurement: 'kWh'
value_template: "{{ (states('sensor.sensor.attic_light_power') | float / 1000) }}"