-
Notifications
You must be signed in to change notification settings - Fork 185
/
sensors.yaml
executable file
·815 lines (695 loc) · 24 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
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
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
---
#-
#
# ___ ___ _ __ ___ ___ _ __ ___
# / __|/ _ \ '_ \/ __|/ _ \| '__/ __|
# \__ \ __/ | | \__ \ (_) | | \__ \
# |___/\___|_| |_|___/\___/|_| |___/
#
#
#- from github.com/basnijholt/home-assistant-config
# _____ _ _
# |_ _|__ _ __ ___ _ __ | | __ _| |_ ___ ___ ___ _ __ ___ ___ _ __ ___
# | |/ _ \ '_ ` _ \| '_ \| |/ _` | __/ _ \ / __|/ _ \ '_ \/ __|/ _ \| '__/ __|
# | | __/ | | | | | |_) | | (_| | || __/ \__ \ __/ | | \__ \ (_) | | \__ \
# |_|\___|_| |_| |_| .__/|_|\__,_|\__\___| |___/\___|_| |_|___/\___/|_| |___/
# |_|
- platform: template
sensors:
dishwasher_watts:
value_template: >
{{ state_attr("switch.dishwasher", "current_power_w") | replace(" W", "") | float("Unavailable") }}
unit_of_measurement: Watt
friendly_name: Dishwasher usage
count_automations:
icon_template: mdi:autorenew
value_template: "{{ states.automation | count }}"
count_scripts:
icon_template: mdi:script-text-outline
value_template: "{{ states.script| count }}"
count_device_trackers:
icon_template: mdi:map-marker
value_template: "{{ states.device_tracker | count }}"
count_binary_sensors:
icon_template: mdi:unfold-more-horizontal
value_template: "{{ states.binary_sensor| count }}"
count_sensors:
icon_template: mdi:resistor
value_template: "{{ states.sensor | count }}"
count_switches:
icon_template: mdi:light-switch
value_template: "{{ states.switch | count }}"
count_zones:
icon_template: mdi:map-marker-radius
value_template: "{{ states.zone | count }}"
count_input_booleans:
icon_template: mdi:toggle-switch
value_template: "{{ states.input_boolean | count }}"
count_input_numbers:
icon_template: mdi:numeric
value_template: "{{ states.input_number | count }}"
count_input_texts:
icon_template: mdi:alphabetical
value_template: "{{ states.input_text | count }}"
count_input_selects:
icon_template: mdi:view-list
value_template: "{{ states.input_select | count }}"
count_input_datetimes:
icon_template: mdi:calendar-clock
value_template: "{{ states.input_datetime | count }}"
favorite_playlist_of_nearest_person:
value_template: >
{% if is_state_attr("proximity.home", "nearest", "basnijholt-iphone") %}
6rPTm9dYftKcFAfwyRqmDZ
{% else %}
6rPTm9dYftKcFAfwyRqmDZ
{% endif %}
tv_volume:
value_template: >
{{ state_attr("media_player.tv", "volume_level") }}
unit_of_measurement: "%"
kef_ls50_volume:
value_template: >
{{ state_attr("media_player.kef_ls50", "volume_level") }}
unit_of_measurement: "%"
kef_lsx_volume:
value_template: >
{{ state_attr("media_player.kef_lsx", "volume_level") }}
unit_of_measurement: "%"
timestamp_start_of_today:
value_template: >
{{ as_timestamp(now().replace(hour=0).replace(minute=0).replace(second=0)) }}
unit_of_measurement: "s"
time_at_work_prognosis:
value_template: >
{% set day = [now().weekday(), 4] | min %}
{% set t_total = states("sensor.time_at_work_this_week")|float %}
{% set t_today = states("sensor.time_at_work_today")|float %}
{% set hours_per_day_including_today = t_total / (day + 1) %}
{% set hours_per_day_excluding_today = (t_total - t_today ) / (day + 10**-16) %}
{% set seven_oclock = as_timestamp(now().replace(hour=19).replace(minute=0).replace(second=0)) %}
{% if t_today > hours_per_day_excluding_today
or (not is_state("person.bas", "Work") and t_today > 0)
or (as_timestamp(now()) > seven_oclock)
or day == 0
or now().weekday() > 4
or 5 * hours_per_day_including_today > 40 %}
{% set hours_per_day = hours_per_day_including_today %}
{% else %}
{% set hours_per_day = hours_per_day_excluding_today %}
{% endif %}
{{ (5 * hours_per_day)|round(2) }}
unit_of_measurement: h
n_days_last_month:
value_template: >
{% set start_of_month = now().replace(day=1) %}
{% set start_of_last_month = start_of_month.replace(month=now().month-1) %}
{{ ((start_of_month - start_of_last_month).total_seconds() / 86400) | round }}
daily_power:
friendly_name: Daily Power
unit_of_measurement: kWh
value_template: >
{{ states("sensor.daily_power_offpeak")|float + states("sensor.daily_power_peak")|float }}
monthly_power:
friendly_name: Monthly Power
unit_of_measurement: kWh
value_template: >
{{ states("sensor.monthly_power_offpeak")|float + states("sensor.monthly_power_peak")|float }}
monthly_power_last_period:
friendly_name: Monthly Power (Last period)
unit_of_measurement: kWh
value_template: >
{{ state_attr("sensor.monthly_power_offpeak", "last_period")|float + state_attr("sensor.monthly_power_peak", "last_period")|float }}
monthly_power_cost_last_period:
friendly_name: Monthly Power (Last period)
unit_of_measurement: €
value_template: >
{{ (state_attr("sensor.monthly_power_offpeak", "last_period")|float * 0.2307
+ state_attr("sensor.monthly_power_peak", "last_period")|float * 0.2479) | round(2) }}
daily_gas_cost:
friendly_name: Daily Power
unit_of_measurement: €
value_template: >
{{ (states("sensor.daily_gas")|float * 0.7884) | round(2) }}
monthly_gas_cost:
friendly_name: Monthly Power
unit_of_measurement: €
value_template: >
{{ (states("sensor.monthly_gas")|float * 0.7884) | round(2) }}
monthly_gas_cost_last_period:
friendly_name: Monthly Power (Last period)
unit_of_measurement: €
value_template: >
{{ (state_attr("sensor.monthly_gas", "last_period")|float * 0.7884) | round(2) }}
daily_power_cost:
friendly_name: Daily Power
unit_of_measurement: €
value_template: >
{{ (states("sensor.daily_power_offpeak")|float * 0.2307
+ states("sensor.daily_power_peak")|float * 0.2479) | round(2) }}
monthly_power_cost:
friendly_name: Monthly Power
unit_of_measurement: €
value_template: >
{{ (states("sensor.monthly_power_offpeak")|float * 0.2307
+ states("sensor.monthly_power_peak")|float * 0.2479) | round(2) }}
daily_energy_fixed_cost:
friendly_name: Fixed daily energy cost (gas and power)
unit_of_measurement: €
# XXX: remove _ when 0.117
value_template: >
{% set _ = states("sensor.date") %}
{{ (0.1480 + 0.3554) + (0.1480 + 0.6293) }}
monthly_energy_fixed_cost:
friendly_name: Fixed daily energy cost (gas and power)
unit_of_measurement: €
value_template: >
{{ states("sensor.daily_energy_fixed_cost")|float * now().day }}
monthly_energy_fixed_cost_last_period:
friendly_name: Fixed energy cost (gas and power) (Last period)
unit_of_measurement: €
value_template: >
{{ states("sensor.daily_energy_fixed_cost")|float * states("sensor.n_days_last_month")|int }}
nearest_iphone_notify:
friendly_name: Nearest iPhone's notify service
value_template: >
{% if is_state("person.bas", "home") and is_state("person.marcella", "home") %}
notify.all_iphones
{% elif is_state_attr("proximity.home", "nearest", "basnijholt-iphone") %}
notify.mobile_app_basnijholt_iphone
{% else %}
notify.mobile_app_marcella_iphone
{% endif %}
half_hour_before_alarm:
friendly_name: Half an hour before alarm
value_template: >
{% set t_alarm = state_attr("input_datetime.alarm_clock", "timestamp") | int %}
{% set t_start = states("sensor.timestamp_start_of_today") | int %}
{% set half_hour_before_alarm = t_alarm + t_start - 60 * 30 %}
{{ half_hour_before_alarm | timestamp_custom("%H:%M", True) }}
ten_minutes_before_alarm:
friendly_name: Ten minutes before alarm
value_template: >
{% set t_alarm = state_attr("input_datetime.alarm_clock", "timestamp") | int %}
{% set t_start = states("sensor.timestamp_start_of_today") | int %}
{% set before_alarm = t_alarm + t_start - 60 * 10 %}
{{ before_alarm | timestamp_custom("%H:%M", True) }}
hours_outside_per_day_marcella: # XXX: fails when returns "0m"
friendly_name: Ten minutes before alarm
value_template: >
{% set value = state_attr("sensor.quarantine_meter_marcella", "value") %}
{% if value != None %}
{% set d, h, m = value.split() %}
{% set d, h, m = d[:-1] | int, h[:-1] | int, m[:-1] | int %}
{% set hours_outside = ((14 - d) * 86400 - h * 3600 - m * 60) / 3600 %}
{{ (hours_outside / 14) | round(1) }}
{% endif %}
hours_outside_per_day_bas: # XXX: fails when returns "0m"
friendly_name: Ten minutes before alarm
value_template: >
{% set value = state_attr("sensor.quarantine_meter_bas", "value") %}
{% if value != None %}
{% set d, h, m = value.split() %}
{% set d, h, m = d[:-1] | int, h[:-1] | int, m[:-1] | int %}
{% set hours_outside = ((14 - d) * 86400 - h * 3600 - m * 60) / 3600 %}
{{ (hours_outside / 14) | round(1) }}
{% endif %}
adaptive_lighting_color_temp_mired:
unit_of_measurement: "mired"
value_template: >
{{ state_attr("switch.adaptive_lighting_living_room", "color_temp_mired") }}
adaptive_lighting_color_temp_kelvin:
unit_of_measurement: "K"
value_template: >
{{ state_attr("switch.adaptive_lighting_living_room", "color_temp_kelvin") }}
adaptive_lighting_brightness:
unit_of_measurement: "%"
value_template: >
{{ state_attr("switch.adaptive_lighting_living_room", "brightness_pct") }}
adaptive_lighting_sun_position:
unit_of_measurement: "%"
value_template: >
{{ 100 * state_attr("switch.adaptive_lighting_living_room", "sun_position") }}
lights_on_total_hours:
unit_of_measurement: h
value_template: >
{{ states('sensor.hours_bedroom_lights_have_been_on_last_7_days')|float * 7
+ states('sensor.hours_living_room_lights_have_been_on_last_7_days')|float * 5
+ states('sensor.hours_toilet_light_has_been_on_last_7_days')|float * 1
+ states('sensor.hours_bathroom_light_has_been_on_last_7_days')|float * 1
+ states('sensor.hours_kitchen_lights_have_been_on_last_7_days')|float * 2
+ states('sensor.hours_hall_lights_have_been_on_last_7_days')|float * 5
+ states('sensor.hours_bathroom_light_has_been_on_last_7_days')|float * 1 }}
lights_on_total_kwh:
unit_of_measurement: h
value_template: >
{{ states('sensor.lights_on_total_hours')|float * 5.4 / 1000 }}
# ___ _ _
# / _ \| |_| |__ ___ _ __ ___
# | | | | __| '_ \ / _ \ '__/ __|
# | |_| | |_| | | | __/ | \__ \
# \___/ \__|_| |_|\___|_| |___/
#
- platform: statistics
name: Humidity bathroom stats
entity_id: sensor.humidity_bathroom
sampling_size: 86400 # make sure all data points of the last 24hrs are included
max_age: "24:00:00"
- platform: derivative
source: sensor.humidity_bathroom
name: Humidity bathroom derivative
unit_time: min
time_window: "00:10:00"
# XXX: not used
- platform: min_max
name: Temperature mean
type: mean
entity_ids:
- sensor.temperature_living_room
- sensor.temperature_bedroom
- sensor.temperature_bathroom
- sensor.temperature_hall
- platform: time_date
display_options:
- date
- time
# Set up on Proxmox https://community.home-assistant.io/t/intel-nuc-proxmox-cpu-temperature-monitor-with-python-mqtt/194236/8
- platform: mqtt
name: CPU Temperature
state_topic: "pve/cpu_temp"
unit_of_measurement: "°C"
value_template: "{{ value | multiply(0.001) | round(1) }}"
- platform: systemmonitor
resources:
- type: disk_use_percent
arg: "/"
- type: memory_use_percent
- type: network_in
arg: eth0
- type: network_out
arg: eth0
- type: processor_use
- type: last_boot
- platform: dnsip
- platform: version
name: Installed Version
source: local
- platform: version
name: Latest Available Version
beta: false
image: raspberrypi4
source: hassio
- platform: uptime
- platform: filesize
file_paths:
- /config/.storage/lovelace
- platform: sql
db_url: !secret maria_db_url
queries:
- name: MariaDB size
query: >
SELECT table_schema AS "database",
ROUND(SUM(data_length + index_length) / 1024 / 1024, 1) "value"
FROM information_schema.tables WHERE table_schema="homeassistant"
GROUP BY table_schema;
column: value
unit_of_measurement: MB
- platform: github
access_token: !secret hass_sensor_gh_token
repositories:
- path: "basnijholt/lovelace-ios-dark-mode-theme"
- path: "basnijholt/lovelace-ios-light-mode-theme"
- path: "basnijholt/lovelace-ios-themes"
- path: "python-adaptive/adaptive"
- path: "basnijholt/home-assistant-config"
- platform: dutch_public_transport_api
name: Bus from Rotterdam to Delft
station: !secret bus_stop_to_delft
destination: Station Delft
show_future_departures: 1
- platform: dutch_public_transport_api
name: Bus from Delft to Rotterdam
station: delft/bushalte-tu-mekelpark
destination: Rotterdam Centraal
show_future_departures: 1
- platform: dutch_public_transport_api
name: Bus home to Rotterdam Centraal
station: !secret bus_stop_in_front
destination: Rotterdam Centraal
show_future_departures: 1
# _____ _ _ _
# |_ _(_)_ __ ___ ___ | |_ _ __ __ _ ___| | _____ _ __ ___
# | | | | '_ ` _ \ / _ \ | __| '__/ _` |/ __| |/ / _ \ '__/ __|
# | | | | | | | | | __/ | |_| | | (_| | (__| < __/ | \__ \
# |_| |_|_| |_| |_|\___| \__|_| \__,_|\___|_|\_\___|_| |___/
#
- platform: history_stats
name: Hours TV has been on last 7 days
entity_id: media_player.tv
state: "on"
type: time
duration:
days: 7
end: "{{ now() }}"
- platform: history_stats
name: Times TV has been on last 7 days
entity_id: media_player.tv
state: "on"
type: count
duration:
days: 7
end: "{{ now() }}"
- platform: history_stats
name: Hours dishwasher has been on last 7 days
entity_id: binary_sensor.dishwasher
state: "on"
type: time
duration:
days: 7
end: "{{ now() }}"
- platform: history_stats
name: Times dishwasher has been on last 7 days
entity_id: binary_sensor.dishwasher
state: "on"
type: count
duration:
days: 7
end: "{{ now() }}"
- platform: history_stats
name: Hours washing machine has been on last 7 days
entity_id: binary_sensor.washing_machine
state: "on"
type: time
duration:
days: 7
end: "{{ now() }}"
- platform: history_stats
name: Times washing machine has been on last 7 days
entity_id: binary_sensor.washing_machine
state: "on"
type: count
duration:
days: 7
end: "{{ now() }}"
- platform: history_stats
name: Quarantine meter Bas
entity_id: person.bas
state: "home"
type: ratio
duration:
days: 14
end: "{{ now() }}"
- platform: history_stats
name: Quarantine meter Marcella
entity_id: person.marcella
state: "home"
type: ratio
duration:
days: 14
end: "{{ now() }}"
- platform: history_stats
name: Quarantine meter Bas times left
entity_id: person.bas
state: "home"
type: count
duration:
days: 14
end: "{{ now() }}"
- platform: history_stats
name: Quarantine meter Marcella times left
entity_id: person.marcella
state: "home"
type: count
duration:
days: 14
end: "{{ now() }}"
- platform: history_stats
name: Hours bedroom lights have been on last 7 days
entity_id: light.bedroom_lights
state: "on"
type: time
duration:
days: 7
end: "{{ now() }}"
- platform: history_stats
name: Hours living room lights have been on last 7 days
entity_id: light.living_room_lights
state: "on"
type: time
duration:
days: 7
end: "{{ now() }}"
- platform: history_stats
name: Hours toilet light has been on last 7 days
entity_id: light.toilet
state: "on"
type: time
duration:
days: 7
end: "{{ now() }}"
- platform: history_stats
name: Hours kitchen lights have been on last 7 days
entity_id: light.kitchen_lights
state: "on"
type: time
duration:
days: 7
end: "{{ now() }}"
- platform: history_stats
name: Hours hall lights have been on last 7 days
entity_id: light.hall_lights
state: "on"
type: time
duration:
days: 7
end: "{{ now() }}"
- platform: history_stats
name: Hours bathroom light has been on last 7 days
entity_id: light.ceiling_bathroom
state: "on"
type: time
duration:
days: 7
end: "{{ now() }}"
# __ __ _ _ _ _ _
# \ \ / /__ _ __| | __ | |_(_)_ __ ___ ___ | |_ _ __ __ _ ___| | _____ _ __
# \ \ /\ / / _ \| '__| |/ / | __| | '_ ` _ \ / _ \ | __| '__/ _` |/ __| |/ / _ \ '__|
# \ V V / (_) | | | < | |_| | | | | | | __/ | |_| | | (_| | (__| < __/ |
# \_/\_/ \___/|_| |_|\_\ \__|_|_| |_| |_|\___| \__|_| \__,_|\___|_|\_\___|_|
#
- platform: history_stats
name: Time at work this week
entity_id: person.bas
state: Work
type: time
start: >
{{ states("sensor.timestamp_start_of_today")|float - now().weekday() * 86400 }}
end: "{{ now() }}"
- platform: history_stats
name: Time at work today
entity_id: person.bas
state: Work
type: time
start: >
{{ states("sensor.timestamp_start_of_today")|float - 0 * 86400 }}
duration:
hours: 24
- platform: history_stats
name: Time at work on Monday
entity_id: person.bas
state: Work
type: time
duration:
hours: 24
start: >
{% set day = now().weekday() - 0 %}
{% if day < 0 %}{% set day = day + 7 %}{% endif %}
{{ states("sensor.timestamp_start_of_today")|float - day * 86400}}
- platform: history_stats
name: Time at work on Tuesday
entity_id: person.bas
state: Work
type: time
duration:
hours: 24
start: >
{% set day = now().weekday() - 1 %}
{% if day < 0 %}{% set day = day + 7 %}{% endif %}
{{ states("sensor.timestamp_start_of_today")|float - day * 86400}}
- platform: history_stats
name: Time at work on Wednessday
entity_id: person.bas
state: Work
type: time
duration:
hours: 24
start: >
{% set day = now().weekday() - 2 %}
{% if day < 0 %}{% set day = day + 7 %}{% endif %}
{{ states("sensor.timestamp_start_of_today")|float - day * 86400}}
- platform: history_stats
name: Time at work on Thursday
entity_id: person.bas
state: Work
type: time
duration:
hours: 24
start: >
{% set day = now().weekday() - 3 %}
{% if day < 0 %}{% set day = day + 7 %}{% endif %}
{{ states("sensor.timestamp_start_of_today")|float - day * 86400}}
- platform: history_stats
name: Time at work on Friday
entity_id: person.bas
state: Work
type: time
duration:
hours: 24
start: >
{% set day = now().weekday() - 4 %}
{% if day < 0 %}{% set day = day + 7 %}{% endif %}
{{ states("sensor.timestamp_start_of_today")|float - day * 86400}}
# ____ _ ____
# | _ \ _____ _____ _ __ __ _ _ __ __| | / ___| __ _ ___
# | |_) / _ \ \ /\ / / _ \ '__| / _` | '_ \ / _` | | | _ / _` / __|
# | __/ (_) \ V V / __/ | | (_| | | | | (_| | | |_| | (_| \__ \
# |_| \___/ \_/\_/ \___|_| \__,_|_| |_|\__,_| \____|\__,_|___/
# From the "Meterkast" Home Assistant
- platform: mqtt
state_topic: homeassistant/sensor/gas_consumption/state
unit_of_measurement: m3
name: Gas Consumption
icon: mdi:fire
- platform: mqtt
state_topic: homeassistant/sensor/hourly_gas_consumption/state
unit_of_measurement: m3/h
name: Hourly Gas Consumption
icon: mdi:fire
- platform: mqtt
state_topic: homeassistant/sensor/power_consumption/state
unit_of_measurement: kW
name: Power Consumption
icon: mdi:flash
- platform: mqtt
state_topic: homeassistant/sensor/energy_consumption_tarif_1/state
unit_of_measurement: kWh
name: Energy Consumption (tarif 1)
icon: mdi:flash
- platform: mqtt
state_topic: homeassistant/sensor/energy_consumption_tarif_2/state
unit_of_measurement: kWh
name: Energy Consumption (tarif 2)
icon: mdi:flash
- platform: mqtt
state_topic: homeassistant/sensor/power_tariff/state
name: Power Tariff
icon: mdi:flash
- platform: filter
name: "Gas consumption filtered"
entity_id: sensor.gas_consumption
filters:
- filter: time_simple_moving_average
window_size: 00:30:00
precision: 2
- platform: derivative
source: sensor.gas_consumption
name: Gas per hour
unit: m³/h
unit_time: h
time_window: "00:30:00"
- platform: derivative
source: sensor.gas_consumption_filtered
name: Gas per hour (filtered)
unit: m³/h
unit_time: h
# ____ _ _
# | _ \| | __ _ _ __ | |_ ___
# | |_) | |/ _` | '_ \| __/ __|
# | __/| | (_| | | | | |_\__ \
# |_| |_|\__,_|_| |_|\__|___/
#
# - platform: miflora
# mac: "80:EA:CA:89:1A:4E"
# name: "Mi Flora: Yucca Elephantipes"
# # https://www.growabonsaitree.com/species/ficus-bonsai/
# - platform: miflora
# mac: "80:EA:CA:89:20:24"
# name: "Mi Flora: Ficus microcarpa Ginseng"
# Kentia Palm
- platform: mqtt
state_topic: homeassistant/sensor/mi_flora_kentia_palm_battery/state
unit_of_measurement: "%"
name: "Mi Flora: Kentia Palm Battery"
icon: mdi:battery-charging
- platform: mqtt
state_topic: homeassistant/sensor/mi_flora_kentia_palm_conductivity/state
unit_of_measurement: µS/cm
name: "Mi Flora: Kentia Palm Conductivity"
icon: mdi:flash-circle
- platform: mqtt
state_topic: homeassistant/sensor/mi_flora_kentia_palm_light_intensity/state
unit_of_measurement: lx
name: "Mi Flora: Kentia Palm Light intensity"
icon: mdi:white-balance-sunny
- platform: mqtt
state_topic: homeassistant/sensor/mi_flora_kentia_palm_moisture/state
unit_of_measurement: "%"
name: "Mi Flora: Kentia Palm Moisture"
icon: mdi:water-percent
- platform: mqtt
state_topic: homeassistant/sensor/mi_flora_kentia_palm_temperature/state
unit_of_measurement: °C
name: "Mi Flora: Kentia Palm Temperature"
icon: mdi:thermometer
# Royal Haze
- platform: mqtt
state_topic: homeassistant/sensor/mi_flora_royal_haze_battery/state
unit_of_measurement: "%"
name: "Mi Flora: Royal Haze Battery"
icon: mdi:battery-charging
- platform: mqtt
state_topic: homeassistant/sensor/mi_flora_royal_haze_conductivity/state
unit_of_measurement: µS/cm
name: "Mi Flora: Royal Haze Conductivity"
icon: mdi:flash-circle
- platform: mqtt
state_topic: homeassistant/sensor/mi_flora_royal_haze_light_intensity/state
unit_of_measurement: lx
name: "Mi Flora: Royal Haze Light intensity"
icon: mdi:white-balance-sunny
- platform: mqtt
state_topic: homeassistant/sensor/mi_flora_royal_haze_moisture/state
unit_of_measurement: "%"
name: "Mi Flora: Royal Haze Moisture"
icon: mdi:water-percent
- platform: mqtt
state_topic: homeassistant/sensor/mi_flora_royal_haze_temperature/state
unit_of_measurement: °C
name: "Mi Flora: Royal Haze Temperature"
icon: mdi:thermometer
# Northern Light
- platform: mqtt
state_topic: homeassistant/sensor/mi_flora_northern_light_battery/state
unit_of_measurement: "%"
name: "Mi Flora: Northern Light Battery"
icon: mdi:battery-charging
- platform: mqtt
state_topic: homeassistant/sensor/mi_flora_northern_light_conductivity/state
unit_of_measurement: µS/cm
name: "Mi Flora: Northern Light Conductivity"
icon: mdi:flash-circle
- platform: mqtt
state_topic: homeassistant/sensor/mi_flora_northern_light_light_intensity/state
unit_of_measurement: lx
name: "Mi Flora: Northern Light Light intensity"
icon: mdi:white-balance-sunny
- platform: mqtt
state_topic: homeassistant/sensor/mi_flora_northern_light_moisture/state
unit_of_measurement: "%"
name: "Mi Flora: Northern Light Moisture"
icon: mdi:water-percent
- platform: mqtt
state_topic: homeassistant/sensor/mi_flora_northern_light_temperature/state
unit_of_measurement: °C
name: "Mi Flora: Northern Light Temperature"
icon: mdi:thermometer