-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfiguration.yaml
1380 lines (1305 loc) · 38.3 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
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
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
homeassistant:
# Name of the location where Home Assistant is running
name: Home
# Location required to calculate the time the sun rises and sets
latitude: !secret gps_lat
longitude: !secret gps_long
elevation: 0
# metric for Metric, imperial for Imperial
unit_system: metric
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time_zone: Europe/Brussels
# Customization file
# customize: !include customize.yaml
auth_providers:
- type: trusted_networks
trusted_networks:
- 192.168.0.0/24
allow_bypass_login: true
- type: homeassistant
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
logger:
default: warn
frontend:
themes: !include themes.yaml
lovelace:
mode: yaml
# Show the introduction message on startup.
#introduction:
# Discover some devices automatically
discovery:
# tradfri:
# host: 192.168.0.110
solaredge:
api_key: !secret solaredge_api
site_id: !secret solaredge_ID
# neato:
# username: !secret neato_username
# password: !secret neato_password
zone:
- name: Work
latitude: !secret work_gps_lat
longitude: !secret work_gps_long
icon: mdi:worker
# media_player:
# - platform: yamaha_musiccast
# host: 192.168.0.164
# depreciated by home assistant --> replaced by python scripting
mqtt:
broker: 127.0.0.1
username: stijn
password: !secret pass_mqtt
discovery: false
sensor:
- platform: time_date
display_options:
- "date_time_iso"
- platform: time_date
display_options:
- "date_time"
- platform: waze_travel_time
name: "commute"
origin: zone.home
destination: zone.work
region: "EU"
vehicle_type: car
- platform: mqtt
name: "Temperature living"
state_topic: sensor/thermostat/temperature
unit_of_measurement: "°C"
- platform: mqtt
name: "Temperature setpoint living"
state_topic: sensor/thermostat/temperature_set
unit_of_measurement: "°C"
- platform: mqtt
name: "Temperature flow radiator"
state_topic: sensor/thermostat/temperature_flowtemp
unit_of_measurement: "°C"
- platform: mqtt
name: "Temperature zolder"
state_topic: /sensor/ESP8266-452118/data/temperature
expire_after: 240
payload_not_available: "temp zolder offline"
unit_of_measurement: "°C"
- platform: mqtt
name: "Humidity zolder"
state_topic: /sensor/ESP8266-452118/data/humidity
expire_after: 240
payload_not_available: "humidity zolder offline"
unit_of_measurement: "%"
- platform: mqtt
name: "Robot energy today"
state_topic: tele/sonoffPowR2/SENSOR
value_template: "{{ value_json['ENERGY'].Today }}"
unit_of_measurement: "kWh"
- platform: mqtt
name: "Robot power"
state_topic: tele/sonoffPowR2/SENSOR
value_template: "{{ value_json['ENERGY'].Power }}"
unit_of_measurement: "Watt"
- platform: mqtt
name: "Robot total energy"
state_topic: tele/sonoffPowR2/SENSOR
value_template: "{{ value_json['ENERGY'].Total }}"
unit_of_measurement: "kWh"
- platform: mqtt
name: "Robot energy start"
state_topic: tele/sonoffPowR2/SENSOR
value_template: "{{ value_json['ENERGY'].TotalStartTime }}"
- platform: mqtt
name: "Temperature bathroom"
state_topic: tele/wemos_d1_bath/SENSOR
value_template: "{{ value_json['SHT3X-0x45'].Temperature }}"
expire_after: 800
payload_not_available: "temp bathroom offline"
unit_of_measurement: "°C"
- platform: mqtt
name: "Humidity bathroom"
state_topic: tele/wemos_d1_bath/SENSOR
value_template: "{{ value_json['SHT3X-0x45'].Humidity }}"
expire_after: 800
payload_not_available: "humidity bathroom offline"
unit_of_measurement: "%"
- platform: mqtt
name: "Temperature slaapkamer"
state_topic: tele/wemos_d1/SENSOR
value_template: "{{ value_json['SHT3X-0x45'].Temperature }}"
expire_after: 800
payload_not_available: "temp slaapkamer offline"
unit_of_measurement: "°C"
- platform: mqtt
name: "Humidity slaapkamer"
state_topic: tele/wemos_d1/SENSOR
value_template: "{{ value_json['SHT3X-0x45'].Humidity }}"
expire_after: 800
payload_not_available: "humidity slaapkamer offline"
unit_of_measurement: "%"
- platform: buienradar
monitored_conditions:
- conditioncode
- conditiondetailed
- temperature
- groundtemperature
- windspeed
- winddirection
- rainchance_1d
- rain_1d
- precipitation
- precipitation_forecast_average
- irradiance
- symbol
- pressure
- barometerfc
- barometerfcname
- platform: mqtt
name: "Water level shunt"
state_topic: /sensor/WEMOSD1-4492602/data/shuntvolt
expire_after: 86400
unit_of_measurement: "mV"
payload_available: "Online"
payload_not_available: "water level sensor offline"
- platform: mqtt
name: "Water level bus voltage"
state_topic: /sensor/WEMOSD1-4492602/data/voltage
expire_after: 86400
unit_of_measurement: "V"
payload_available: "Online"
payload_not_available: "water level sensor offline"
- platform: mqtt
name: "Water level dutyratio"
state_topic: /sensor/WEMOSD1-4492602/data/dutr
expire_after: 86400
unit_of_measurement: "%"
payload_available: "Online"
payload_not_available: "water level sensor offline"
- platform: mqtt
name: "Water level depth"
state_topic: /sensor/WEMOSD1-4492602/data/waterdepth
expire_after: 86400
unit_of_measurement: "m"
payload_available: "Online"
payload_not_available: "water level sensor offline"
- platform: mqtt
name: "Water level depth 2"
state_topic: /sensor/waterlevel/depth
expire_after: 86400
unit_of_measurement: "m"
payload_available: "Online"
payload_not_available: "water level sensor offline"
- platform: mqtt
name: "Air pressure"
state_topic: /sensor/WEMOSD1-4492602/data/airpress
expire_after: 86400
unit_of_measurement: "hPa"
payload_available: "Online"
payload_not_available: "water level sensor offline"
- platform: mqtt
name: "MailBox"
state_topic: /sensor/ESP8266-6857171/data/distance
expire_after: 14400
unit_of_measurement: "mm"
payload_available: "Online"
payload_not_available: "Mailbox sensor Offline"
- platform: mqtt
name: "acceleration_Z"
state_topic: /sensor/ESP8266-14271276/data/accz
expire_after: 10
payload_not_available: "acc z offline"
unit_of_measurement: "%"
- platform: mqtt
name: "acceleration_x"
state_topic: /sensor/ESP8266-14271276/data/accx
expire_after: 10
payload_not_available: "acc x offline"
unit_of_measurement: "%"
- platform: mqtt
name: "acceleration_y"
state_topic: /sensor/ESP8266-14271276/data/accy
expire_after: 10
payload_not_available: "acc y offline"
unit_of_measurement: "%"
- platform: mqtt
name: "position_x"
state_topic: octoPrint/event/PositionUpdate
value_template: "{{ value_json['x'] }}"
expire_after: 120
payload_not_available: "pos x offline"
unit_of_measurement: "mm"
- platform: mqtt
name: "position_y"
state_topic: octoPrint/event/PositionUpdate
value_template: "{{ value_json['y'] }}"
expire_after: 120
payload_not_available: "pos y offline"
unit_of_measurement: "mm"
- platform: mqtt
name: "position_z"
state_topic: octoPrint/event/PositionUpdate
value_template: "{{ value_json['z'] }}"
expire_after: 120
payload_not_available: "pos z offline"
unit_of_measurement: "mm"
- platform: mqtt
name: "zoldernok temp"
state_topic: tele/zolder_B5AEF2/SENSOR
value_template: "{{ value_json['DS18B20'].Temperature }}"
expire_after: 400
payload_not_available: "temp zoldernok"
unit_of_measurement: "C"
- platform: mqtt
name: "Car energy today"
state_topic: tele/athom1_044E3E/SENSOR
value_template: "{{ value_json['ENERGY'].Today }}"
unit_of_measurement: "kWh"
- platform: mqtt
name: "Car power"
state_topic: tele/athom1_044E3E/SENSOR
value_template: "{{ value_json['ENERGY'].Power }}"
unit_of_measurement: "Watt"
force_update: true
- platform: mqtt
name: "Car total energy"
state_topic: tele/athom1_044E3E/SENSOR
value_template: "{{ value_json['ENERGY'].Total }}"
unit_of_measurement: "kWh"
- platform: mqtt
name: "Athom2 energy today"
state_topic: tele/athom2_045BCE/SENSOR
value_template: "{{ value_json['ENERGY'].Today }}"
unit_of_measurement: "kWh"
- platform: mqtt
name: "Athom2 power"
state_topic: tele/athom2_045BCE/SENSOR
value_template: "{{ value_json['ENERGY'].Power }}"
unit_of_measurement: "Watt"
- platform: mqtt
name: "Athom2 total energy"
state_topic: tele/athom2_045BCE/SENSOR
value_template: "{{ value_json['ENERGY'].Total }}"
unit_of_measurement: "kWh"
- platform: mqtt
name: "Temperature setpoint zolder"
state_topic: sensor/thermostat/temperature_zolder_set
unit_of_measurement: "°C"
- platform: mqtt
name: "Temperature zolder vaillant"
state_topic: sensor/thermostat/temperature_zolder_vaillant
unit_of_measurement: "°C"
- platform: mqtt
name: "Temperature buiten vaillant"
state_topic: sensor/thermostat/temperature_outside_vaillant
unit_of_measurement: "°C"
- platform: mqtt
name: "Temperature setp flow zolder"
state_topic: sensor/thermostat/temperature_flowtemp_zolder_set
unit_of_measurement: "°C"
- platform: mqtt
name: "Temperature flow"
state_topic: sensor/thermostat/temperature_flow
unit_of_measurement: "°C"
- platform: mqtt
name: "Temperature flow zolder"
state_topic: sensor/thermostat/temperature_flowtemp_zolder
unit_of_measurement: "°C"
- platform: mqtt
name: "Pressure boiler"
state_topic: sensor/thermostat/pressure_vaillant
unit_of_measurement: "Bar"
- platform: mqtt
name: "wind voltage"
# state_topic: ble2mqtt/fc:f5:c4:56:1d:02/Turbine/volt
state_topic: /HOVERWIND/volt
unit_of_measurement: "V"
- platform: mqtt
name: "wind power"
# state_topic: ble2mqtt/fc:f5:c4:56:1d:02/Turbine/power
state_topic: /HOVERWIND/power
unit_of_measurement: "watt"
- platform: mqtt
name: "wind rotational speed"
# state_topic: ble2mqtt/fc:f5:c4:56:1d:02/Turbine/rpm
state_topic: /HOVERWIND/speed
unit_of_measurement: "rpm"
- platform: mqtt
name: "wind torque setp"
# state_topic: ble2mqtt/fc:f5:c4:56:1d:02/Turbine/rpm
state_topic: /HOVERWIND/torque
unit_of_measurement: "Nm"
- platform: mqtt
name: "wind message counter"
state_topic: /HOVERWIND/cntr
unit_of_measurement: "mm"
# - platform: solaredge_local
# ip_address: 192.168.0.107
# - platform: mqtt
# name: "Temperature slaapkamer"
# state_topic: /sensor/ESP8266-1095942/data/temperature
# expire_after: 240
# payload_not_available: "temp slaapkamer offline"
# unit_of_measurement: "°C"
# - platform: mqtt
# name: "Humidity slaapkamer"
# state_topic: /sensor/ESP8266-1095942/data/humidity
# expire_after: 240
# payload_not_available: "humidity slaapkamer offline"
# unit_of_measurement: "%"
input_datetime:
next_alarm:
name: Next scheduled alarm
has_date: true
has_time: true
shell_command:
set_temp_high: "python3 /home/homeassistant/.homeassistant/python_scripts/set_temperature.py -t {{ states.input_number.slider_day.state }}"
set_temp_low: "python3 /home/homeassistant/.homeassistant/python_scripts/set_temperature.py -t {{ states.input_number.slider_night.state }}"
read_ebus: "python3 /home/homeassistant/.homeassistant/python_scripts/read_ebus.py"
set_temp_living: "python3 /home/homeassistant/.homeassistant/python_scripts/set_temperature.py -t {{ states.input_number.slider1.state }}"
set_time: "python3 /home/homeassistant/.homeassistant/python_scripts/set_time_normal.py"
set_heater: "python3 /home/homeassistant/.homeassistant/python_scripts/set_heater.py"
take_screenshot: "python3 /home/homeassistant/.homeassistant/python_scripts/db_plotter.py -s {{ states.input_number.dummy_epaper.state | float }}"
lights_living: "python3 /home/homeassistant/.homeassistant/python_scripts/lights_living.py"
music_bluetooth_connect: "python3 /home/homeassistant/.homeassistant/python_scripts/music_initialize.py"
music_bluetooth_pause: "python3 /home/homeassistant/.homeassistant/python_scripts/music_pause.py"
music_bluetooth_resume: "python3 /home/homeassistant/.homeassistant/python_scripts/music_resume.py"
mailboxstate: "python3 /home/homeassistant/.homeassistant/python_scripts/mailboxstate.py"
octoprint: "python3 /home/homeassistant/.homeassistant/python_scripts/octoprint.py"
ble_mqtt: "python3 /home/homeassistant/.homeassistant/python_scripts/ble_mqtt_trigger.py"
alarm_clock_actions: "python3 /home/homeassistant/.homeassistant/python_scripts/alarm_clock_actions.py"
set_temp_zolder_high: "python3 /home/homeassistant/.homeassistant/python_scripts/set_temp_zolder.py -t {{ states.input_number.slider_floor_day.state }}"
set_temp_zolder_low: "python3 /home/homeassistant/.homeassistant/python_scripts/set_temp_zolder.py -t {{ states.input_number.slider_floor_night.state }}"
set_temp_zolder: "python3 /home/homeassistant/.homeassistant/python_scripts/set_temp_zolder.py -t {{ states.input_number.slider_floor_now.state }}"
house_alarm_heating: "python3 /home/homeassistant/.homeassistant/python_scripts/heating_alarm.py"
powerswitch: "python3 /home/homeassistant/.homeassistant/python_scripts/powerSwitch.py"
water_well: "python3 /home/homeassistant/.homeassistant/python_scripts/waterdepth.py"
soundbar: "python3 /home/homeassistant/.homeassistant/python_scripts/yamaha.py"
# start_ebus: 'python3 /home/homeassistant/.homeassistant/python_scripts/start_ebus.py'
input_number:
slider1:
name: Set Now
initial: 20.5
min: 9
max: 25
step: 0.25
unit_of_measurement: "°C"
slider_night:
name: Temp Night
initial: 15
min: 9
max: 25
step: 0.25
unit_of_measurement: "°C"
slider_day:
name: Temp Day
initial: 20.5
min: 9
max: 25
step: 0.25
unit_of_measurement: "°C"
dummy_epaper:
name: dummy epaper
initial: 2
min: 1
max: 7
step: 1
mailboxfull:
name: Mailbox
initial: 2
min: 0
max: 2
step: 1
slider_floor_now:
name: Set Temp Zolder
initial: 19
min: 5
max: 25
step: 0.25
unit_of_measurement: "°C"
slider_floor_night:
name: Temp Zolder Night
initial: 7
min: 5
max: 25
step: 0.25
unit_of_measurement: "°C"
slider_floor_day:
name: Temp Zolder Day
initial: 19
min: 5
max: 25
step: 0.25
unit_of_measurement: "°C"
input_boolean:
turn_heating_on:
name: Heating Living Day
initial: off
ventilator_radiator:
name: Dummy ventilator radiator
initial: off
start_bluetooth_speaker:
name: start bluetooth speaker
initial: off
pause_bluetooth_speaker:
name: pause bluetooth speaker
initial: off
print_cancel:
name: cancel print
initial: off
print_pause_cyclic:
name: print pause cyclic
initial: off
turn_heating_zolder_on:
name: Heating Zolder
initial: off
work_from_home:
name: Working from home
initial: off
input_select:
led_printer:
name: led printer
options:
- On
- Off
- Automatic
initial: Off
switch:
- platform: mqtt
name: "s26 b"
command_topic: cmnd/s26_bath/Power1
state_topic: stat/s26_bath/POWER
payload_on: "ON"
payload_off: "OFF"
- platform: mqtt
name: "robomow control"
command_topic: cmnd/sonoffPowR2/Power1
state_topic: stat/sonoffPowR2/POWER
payload_on: "ON"
payload_off: "OFF"
- platform: mqtt
name: "ventilator control"
command_topic: cmnd/sonoff_vent/Power1
state_topic: stat/sonoff_vent/POWER
payload_on: "ON"
payload_off: "OFF"
availability_topic: "tele/sonoff_vent/LWT"
payload_available: "Online"
payload_not_available: "Offline"
- platform: mqtt
name: "S26 control"
command_topic: cmnd/sonoff_s26/POWER
state_topic: stat/sonoff_s26/POWER
payload_on: "ON"
payload_off: "OFF"
availability_topic: "tele/sonoff_s26/LWT"
payload_available: "Online"
payload_not_available: "Offline"
- platform: mqtt
name: "S20 control"
command_topic: cmnd/s20/Power1
state_topic: stat/s20/POWER
payload_on: "ON"
payload_off: "OFF"
availability_topic: "tele/s20/LWT"
payload_available: "Online"
payload_not_available: "Offline"
- platform: mqtt
name: "zolder licht"
command_topic: cmnd/zolder_B5AEF2/Power1
state_topic: stat/zolder_B5AEF2/POWER
availability_topic: "tele/zolder_B5AEF2/LWT"
payload_available: "Online"
payload_not_available: "Offline"
- platform: mqtt
name: "verlichting terras 1"
command_topic: cmnd/terraslicht1/Power1
state_topic: stat/terraslicht1/POWER
payload_on: "ON"
payload_off: "OFF"
availability_topic: "tele/terraslicht1/LWT"
payload_available: "Online"
payload_not_available: "Offline"
- platform: mqtt
name: "verlichting terras 2"
command_topic: cmnd/terraslicht2/Power1
state_topic: stat/terraslicht2/POWER
payload_on: "ON"
payload_off: "OFF"
availability_topic: "tele/terraslicht2/LWT"
payload_available: "Online"
payload_not_available: "Offline"
- platform: mqtt
name: "balco 1"
command_topic: cmnd/tasmota_balco_1/Power1
state_topic: stat/tasmota_balco_1/POWER
payload_on: "ON"
payload_off: "OFF"
availability_topic: tele/tasmota_balco_1/LWT
payload_available: "Online"
payload_not_available: "Offline"
- platform: mqtt
name: "balco 2"
command_topic: cmnd/balco2_7ED98F/Power1
state_topic: stat/balco2_7ED98F/POWER
payload_on: "ON"
payload_off: "OFF"
availability_topic: tele/balco2_7ED98F/LWT
payload_available: "Online"
payload_not_available: "Offline"
- platform: command_line
switches:
vlc:
command_on: "cvlc --no-video http://192.168.0.205:8123/local/test.mp3 &"
command_off: "pkill vlc"
- platform: mqtt
name: "athom car"
command_topic: cmnd/athom1_044E3E/Power1
state_topic: stat/athom1_044E3E/POWER
payload_on: "ON"
payload_off: "OFF"
availability_topic: tele/athom1_044E3E/LWT
payload_available: "Online"
payload_not_available: "Offline"
- platform: mqtt
name: "athom 2"
command_topic: cmnd/athom2_045BCE/Power1
state_topic: stat/athom2_045BCE/POWER
payload_on: "ON"
payload_off: "OFF"
availability_topic: tele/athom2_045BCE/LWT
payload_available: "Online"
payload_not_available: "Offline"
- platform: mqtt
name: "opritverlichting"
command_topic: cmnd/opritverlichting/Power1
state_topic: stat/opritverlichting/POWER
payload_on: "ON"
payload_off: "OFF"
availability_topic: tele/opritverlichting/LWT
payload_available: "Online"
payload_not_available: "Offline"
binary_sensor:
- platform: mqtt
name: "heater status"
state_topic: "tele/sonoff/STATE"
value_template: "{{value_json.POWER}}"
availability_topic: "tele/sonoff/LWT"
payload_available: "Online"
payload_not_available: "Offline"
- platform: mqtt
name: "robot status"
state_topic: "tele/sonoffPowR2/STATE"
value_template: "{{value_json.POWER}}"
availability_topic: "tele/sonoffPowR2/LWT"
payload_available: "Online"
payload_not_available: "Offline"
- platform: mqtt
name: "Alarm state"
state_topic: /sensor/ESP8266-452118/data/alarm #%state_topic: sensor/alarm /sensor/WEMOSD1-219265
payload_on: 0
payload_off: 1
#payload_not_available: "alarm offline"
input_text:
text1:
name: music file
initial: Name of music file
webostv:
host: 192.168.0.132
name: Living Room TV
shopping_list:
# all automations are below
automation theme_selector:
- alias: "Set theme at startup"
trigger:
platform: homeassistant
event: start
action:
- service: frontend.set_theme
data:
name: stell_blue_with_colors
# if powerfailure occurs of the grid, garden lights turn on
automation start_tuinverlichting:
- alias: "turn off tuinverlichting at startup"
trigger:
platform: homeassistant
event: start
action:
- service: switch.turn_off
data:
entity_id: switch.verlichting_terras_1
automation MailBox:
- alias: MailBox
trigger:
platform: template
value_template: "{{ (states.sensor.date_time.last_changed - states.sensor.mailbox.last_updated).total_seconds() > 30 }}"
action:
service: shell_command.mailboxstate
automation turn_heating_on_living:
- alias: "turn heating living on"
trigger:
platform: state
entity_id: input_boolean.turn_heating_on
from: "off"
to: "on"
action:
- service: shell_command.set_temp_high
data:
message: "Turned living heating on"
- delay: "00:01:00"
- service: shell_command.read_ebus
automation turn_heating_off_living:
- alias: "turn heating living off"
trigger:
platform: state
entity_id: input_boolean.turn_heating_on
from: "on"
to: "off"
action:
- service: shell_command.set_temp_low
data:
message: "Turned living heating off"
- delay: "00:01:00"
- service: shell_command.read_ebus
automation turn_heating_on_zolder:
- alias: "turn heating zolder on"
trigger:
platform: state
entity_id: input_boolean.turn_heating_zolder_on
from: "off"
to: "on"
action:
- service: shell_command.set_temp_zolder_high
data:
message: "Turned living zolder on"
- delay: "00:01:00"
- service: shell_command.read_ebus
automation turn_heating_off_zolder:
- alias: "turn heating zolder off"
trigger:
platform: state
entity_id: input_boolean.turn_heating_zolder_on
from: "on"
to: "off"
action:
- service: shell_command.set_temp_zolder_low
data:
message: "Turned living heating off"
- delay: "00:01:00"
- service: shell_command.read_ebus
automation turn_on_dummy_ventilator:
- alias: "dummy ventilator variable on"
trigger:
platform: numeric_state
entity_id: sensor.temperature_flow_radiator
above: 89
action:
service: input_boolean.turn_on
data:
entity_id: input_boolean.ventilator_radiator
automation turn_off_dummy_ventilator:
- alias: "dummy ventilator variable off"
trigger:
platform: numeric_state
entity_id: sensor.temperature_flow_radiator
below: 85
action:
service: input_boolean.turn_off
data:
entity_id: input_boolean.ventilator_radiator
automation turn_on_ventilator:
- alias: "start ventilator radiator"
trigger:
platform: state
entity_id: input_boolean.ventilator_radiator
from: "off"
to: "on"
action:
- delay: "00:10:00"
- service: switch.turn_on
data:
entity_id: switch.s26_control
automation turn_off_ventilator:
- alias: "stop ventilator radiator"
trigger:
platform: state
entity_id: input_boolean.ventilator_radiator
from: "on"
to: "off"
action:
- service: switch.turn_off
data:
entity_id: switch.s26_control
automation Soundbar:
- alias: Soundbar
trigger:
platform: time_pattern
minutes: "/5"
action:
- service: shell_command.soundbar
automation 3dprinter:
- alias: 3dprinter
trigger:
platform: time_pattern
seconds: "/30"
action:
- service: shell_command.octoprint
automation WaterWellCalc:
- alias: WaterWell
trigger:
platform: time_pattern
seconds: "/30"
action:
- service: shell_command.water_well
automation PowerSwitchTurnOff:
- alias: PowerSwitchTurnOff
trigger:
platform: time_pattern
minutes: "/5"
action:
- service: shell_command.powerswitch
automation blemqtt_gateway:
- alias: blemqttgateway
trigger:
platform: time_pattern
minutes: "/5"
action:
- service: shell_command.ble_mqtt
automation epaper:
- alias: epaper
trigger:
platform: time_pattern
minutes: "/5"
action:
- service: input_number.set_value
data_template:
entity_id: input_number.dummy_epaper
value: >
{% if now().hour < 9 %} 2
{% elif 9 <= now().hour < 19 %} 1
{% else %} 6 {% endif %}
- delay: "00:01:00"
- service: shell_command.take_screenshot
automation epaper_two:
- alias: epaper
trigger:
platform: time_pattern
minutes: "/6"
action:
- service: input_number.set_value
data_template:
entity_id: input_number.dummy_epaper
value: >
{% if now().hour < 8 %} 5
{% elif 8 <= now().hour < 18 %} 5
{% else %} 7 {% endif %}
- delay: "00:01:00"
- service: shell_command.take_screenshot
automation bathroom_heater:
- alias: handdoekdroger automatisch
trigger:
platform: time_pattern
minutes: "/5"
condition:
condition: and
conditions:
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
action:
service: shell_command.set_heater #time to turn on is defined in python script
automation livingroom_alarm:
- alias: gsm-alarm verwarming living
trigger:
platform: time_pattern
minutes: "/4"
condition:
condition: and
conditions:
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
action:
service: shell_command.alarm_clock_actions #time to turn on is defined in python script
# set temperature when slider changes
automation slider:
- alias: set_temperature_living
trigger:
platform: state
entity_id: input_number.slider1
action:
service: shell_command.set_temp_living
automation slider_zolder:
- alias: set_temperature_zolder
trigger:
platform: state
entity_id: input_number.slider_floor_now
action:
service: shell_command.set_temp_zolder
# automation clock:
# - alias: heating on x minutes before phone alarm
# trigger:
# - platform: time_pattern
# minutes: /1
# seconds: 0
# condition:
# - condition: template
# value_template: '{{ (((as_timestamp(now()) | int) + 55*60) | timestamp_custom("%Y-%m-%d %H:%M:00")) == states.sensor.next_alarm.state }}'
# action:
# - service: shell_command.set_temp_high
# data:
# message: "Phone alarm - heating on"
# - delay: '00:35:00'
# - service: shell_command.set_temp_low
# automation clock_:
# - alias: heating on x minutes before phone alarm
# trigger:
# platform: template
# value_template: "{{ ((as_timestamp(states('sensor.date_time').replace(',','')) | int) + 55*60) == (state_attr('input_datetime.next_alarm', 'timestamp') | int) }}"
# action:
# - service: input_boolean.turn_on
# entity_id: input_boolean.turn_heating_on
# - delay: '00:35:00'
# - service: input_boolean.turn_off
# entity_id: input_boolean.turn_heating_on
automation lights_stopped_watch_tv:
- alias: lights_sound_off
trigger:
platform: state
entity_id: input_number.yamaha_power
to: "off"
action:
- service: shell_command.lights_living
automation lights_stopped_watch_tv2:
- alias: lights_sound_unknown
trigger:
platform: state
entity_id: input_number.yamaha_power
to: "unkown"
action:
- service: shell_command.lights_living
automation lights_stop_watch_tv3:
- alias: lights_sound_idle
trigger:
platform: state
entity_id: input_number.yamaha_power
to: "standby"
action:
- service: shell_command.lights_living
automation lights_stopped_watch_tv4:
- alias: lights_sound_bluetooth
trigger:
platform: state
entity_id: input_number.yamaha_input
to: "bluetooth"
action:
- service: shell_command.lights_living
automation lights_start_watch_tv1:
- alias: lights_start_tv_power
trigger:
platform: state
entity_id: input_number.yamaha_power
to: "on"
action:
- service: shell_command.lights_living
automation lights_start_watch_tv2:
- alias: lights_start_tv2
trigger:
platform: state
entity_id: input_number.yamaha_input
to: "tv"
action:
- service: shell_command.lights_living
automation lights_living_on:
- alias: lights_living_on
trigger:
platform: state
entity_id: light.tradfri_bulb_s
to: "on"
action:
- service: shell_command.lights_living
# automation lights_start_watch_tv2:
# - alias: lights_start_tv2
# trigger:
# platform: template
# value_template: "{{ is_state_attr('media_player.living_room_main', 'source', 'tv') }}"
# action:
# - service: shell_command.lights_living
# automation lights_start_watch_tv3:
# - alias: lights_start_tv2
# trigger:
# platform: template
# value_template: "{{ is_state_attr('media_player.living_room_main', 'source', 'bluetooth') }}"
# action:
# - service: shell_command.lights_living
# automation alarm:
# - alias: heating off when turning alarm on
# trigger:
# platform: state
# entity_id: binary_sensor.alarm_state
# from: 'off' #1 means alarm is off (somebody home)
# to: 'on'