-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.yaml
932 lines (868 loc) · 29.4 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
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 latitude
longitude: !secret longitude
allowlist_external_dirs:
- /tmp
country: NL
# Impacts weather/sunrise data (altitude above sea level in meters)
elevation: 161
# 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/Amsterdam
customize: !include customize.yaml
# Enables the frontend
frontend:
themes: !include themes.yaml
# Enables configuration UI
lovelace:
mode: yaml
resources:
- url: /local/custom-ui/lovelace-card-preloader.js
type: js
- url: /local/custom-ui/card-tools.js
type: js
- url: /local/custom-ui/layout-card.js
type: js
- url: /local/custom-ui/gap-card.js
type: js
- url: /local/custom-ui/button-card.js
type: js
http:
trusted_proxies:
- 10.0.2.100
- 127.0.0.1
- ::1
use_x_forwarded_for: True
ip_ban_enabled: False
login_attempts_threshold: 5
cors_allowed_origins:
- https://anaproy.nl
- https://home.anaproy.nl
config:
ffmpeg:
zone:
- name: Home
latitude: !secret latitude
longitude: !secret longitude
radius: 10
icon: mdi:home
recorder:
db_url: !secret db_url
exclude:
domains:
- shell_command
- group
entities: !include exclude.yaml
# Enables support for tracking state changes over time.
history:
system_health:
mobile_app:
logger:
default: warning
# View all events in a logbook
logbook:
include:
domains:
- device_tracker
- media_player
- alarm_control_panel
- automation
- input_boolean
entities:
- binary_sensor.front_door
- binary_sensor.back_door
- binary_sensor.bedroom_window_left
- binary_sensor.bedroom_window_right
- binary_sensor.bathroom_window_bathroom_window_door_state_simple
- binary_sensor.roof_window_east
- binary_sensor.nodeid_16_nodeid_16_door_window
- binary_sensor.doorbell
- binary_sensor.anybodyhome
- binary_sensor.noise
- script.watch_tv
- script.media_centre
- script.listen_to_music
- script.play_youtube_playlist
- script.desktop
- script.turn_media_off
- script.lights_on
- script.lights_off
- script.night_scene
- script.mpc_play
- script.play_youtube_link
- script.play_youtube_link_bedroom
- script.play_youtube_playlist
- script.vacuum_turn_on
- script.vacuum_turn_off
- script.alarm
- script.ignite_dresser_ambilight
- script.ignite_fireplace
- script.ignite_bedroom_ambilight
- script.extinguish_dresser_ambilight
- script.extinguish_fireplace
- script.extinguish_bedroom_ambilight
- script.wake_up_alarm
- script.home_notification_lights
- script.reset_ipcam
exclude:
entities:
- automation.frontdoor_snapshots
- automation.garden_snapshots
- automation.street_snapshots
- automation.living_room_snapshots
- automation.hall_upstairs_snapshots
- automation.balcony_snapshots
- automation.auto_status
- script.send_status
# Track the sun
sun:
shell_command:
snapshot_livingroom: /home/homeautomation/homeassistant/scripts/camera/takesnapshot.sh livingroom
snapshot_street: /home/homeautomation/homeassistant/scripts/camera/takesnapshot.sh street
mpcclear: /home/homeautomation/homeassistant/scripts/media/mpcclear.sh
mpc: "/home/homeautomation/homeassistant/scripts/media/mpc.sh \"{{ type }}\" \"{{ value }}\" \"{{ filter }}\""
mpcplaylist: "/home/homeautomation/homeassistant/scripts/media/mpcplaylist.sh \"{{ playlist }}\""
event_snapshots: /home/homeautomation/homeassistant/scripts/camera/eventsnapshots.sh "{{ cams }}"
snapshot_clear_locks: find "/home/homeautomation/homeassistant/snapshots/" -type f -name "*.lock" | xargs rm
tv_decoder_on: curl -v http://192.168.42.254:8008/apps/ChromeCast -X POST
youtube: /home/homeautomation/homeassistant/scripts/media/youtube.sh "{{ mode }}" "{{ url }}" "{{ pi }}"
update: cd /home/homeautomation/homeassistant && git pull
rest_command:
ipcam_topreset:
url: 'http://{{ ipcam_ip }}:88/cgi-bin/CGIProxy.fcgi?cmd=ptzGotoPresetPoint&usr={{ ipcam_user }}&pwd={{ ipcam_password }}&name={{ preset }}'
bedroomspots_high:
url: 'http://{{ eth008_ip }}/io.cgi?relay=0'
username: '{{ eth008_username }}'
password: '{{ eth008_password }}'
alarm_control_panel:
- platform: manual_mqtt
state_topic: home/alarm
command_topic: home/alarm/set
code_arm_required: false
name: Alarm System
delay_time: 60
pending_time: 60
trigger_time: 600
device_tracker:
#- platform: traccar
# username: !secret traccar_user
# password: !secret traccar_password
# host: !secret traccar_host
# port: !secret traccar_port
# monitored_conditions: ['all_events']
# Text to speech
tts:
platform: picotts
language: 'en-GB'
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
camera: !include cameras.yaml
input_select:
ipcam_direction:
name: Camera Direction Living room
options:
- achter
- voor
- gangdeur
- onder
- onderachter
- straat
fireplace:
name: Fireplace
options:
- Fire
- Lamp
- Ambilight
- Rainbow
- Rainbow Slow
- Rainbow Cycle
- Colorcycle Fast
- Colorcycle
- Colorcycle Slow
- Sirene
- Knightrider
- Redalert
- Red notice
- Yellowalert
- Yellow notice
- Greenalert
- Green notice
- Bluealert
- Blue notice
- Red Cycle
- Green Cycle
- Blue Cycle
- Red
- Green
- Blue
- Yellow
- Purple
- Cyan
- White
dresser_ambilight:
name: Dresser Ambilight
options:
- Fire
- Lamp
- Ambilight
- Rainbow
- Rainbow Slow
- Rainbow Cycle
- Colorcycle Fast
- Colorcycle
- Colorcycle Slow
- Sirene
- Knightrider
- Redalert
- Red notice
- Yellowalert
- Yellow notice
- Greenalert
- Green notice
- Bluealert
- Blue notice
- Red Cycle
- Green Cycle
- Blue Cycle
- Red
- Green
- Blue
- Yellow
- Purple
- Cyan
- White
bedroom_ambilight:
name: Bedroom Ambilight
options:
- Fire
- Lamp
- Ambilight
- Rainbow
- Rainbow Slow
- Rainbow Cycle
- Colorcycle Fast
- Colorcycle
- Colorcycle Slow
- Sirene
- Knightrider
- Redalert
- Red notice
- Yellowalert
- Yellow notice
- Greenalert
- Green notice
- Bluealert
- Blue notice
- Red Cycle
- Green Cycle
- Blue Cycle
- Red
- Green
- Blue
- Yellow
- Purple
- Cyan
- White
mpc_type:
name: Type
options:
- title
- genre
- artist
- album
- composer
- filename
mpc_filter:
name: Filter
options:
- "no"
- "track"
- "local:track"
- "spotify:track"
- "spotify:artist"
- "spotify:album"
mpc_playlist:
name: Playlist
options:
- "classical"
input_number:
fireplace_brightness:
name: Fireplace brightness
min: 0
max: 255
step: 1
initial: 255
dresser_ambilight_brightness:
name: Dresser Ambilight brightness
min: 0
max: 255
step: 1
initial: 255
bedroom_ambilight_brightness:
name: Bedroom Ambilight brightness
min: 0
max: 255
step: 1
initial: 255
wake_up_hour:
name: Wake up Hour
icon: mdi:timer
initial: 8
min: 0
max: 23
step: 1
wake_up_minutes:
name: Wake up Minutes
icon: mdi:timer
initial: 30
min: 0
max: 59
step: 5
ceiling_fan:
name: Ceiling Fan
icon: mdi:fan
initial: 0
min: 0
max: 6
step: 1
timer:
name: Timer
icon: mdi:timer
initial: 15
min: 5
max: 60
step: 1
input_boolean:
proycon_home:
name: Proycon home?
initial: on
hans_home:
name: Hans home?
initial: on
guest_home:
name: Guest inside?
initial: off
notify_livingroom_movement:
name: Notify Livingroom Movement
initial: off
input_text:
say:
name: say
initial: hello
youtube_link:
name: Youtube Link
youtube_link_bedroom:
name: Youtube Link Bedroom
mpc_search:
name: Value
climate:
# Set up through interface
#- platform: plugwise
# name: Thermostat
# username: !secret thermostat_user
# password: !secret thermostat_password
# host: !secret thermostat_ip
# port: 80
# scan_interval: 10
timer:
home_notification_lights:
duration: '00:02:00'
reset_ipcam:
duration: '00:05:00'
reset_night_light:
duration: '00:03:00'
sensor:
- platform: time_date
display_options:
- 'time'
- 'date'
- platform: template
sensors:
wake_up_time:
friendly_name: 'Wake up Time'
value_template: '{{ "%0.02d:%0.02d" | format(states("input_number.wake_up_hour") | int, states("input_number.wake_up_minutes") | int) }}'
wake_up_relative_time:
friendly_name: Wake up relative time #seconds after wake up time
value_template: "{{ states.sensor.time.state[:2]|int * 60 + states.sensor.time.state[2:4]|int - states.sensor.wake_up_time.state[:2]|int * 60 + states.sensor.wake_up_time.state[2:4]|int }}"
temperature_thermostat:
friendly_name: Temperature Thermostat
value_template: "{{ states.climate.anna.attributes.current_temperature }}"
target_temperature_thermostat:
friendly_name: Target Temperature
value_template: "{{ states.climate.anna.attributes.temperature }}"
robot_battery:
friendly_name: Robot Battery
value_template: "{{ states.vacuum.robot.attributes.battery_level }}"
robot_cleaning_count:
friendly_name: Robot Cleaning Count
value_template: "{{ states.vacuum.robot.attributes.cleaning_count }}"
robot_fan_speed:
friendly_name: Robot Fan Speed
value_template: "{{ states.vacuum.robot.attributes.fan_speed }}"
last_cleaning_duration:
friendly_name: Last Cleaning Duration
value_template: "{{ states.vacuum.robot.attributes.cleaning_time }}"
last_cleaning_time:
friendly_name: Last Cleaning Time
value_template: "{{ states.script.vacuum_turn_on.attributes.last_triggered }}"
office_fibaro_battery:
friendly_name: Office Fibaro Battery
value_template: "{{ states.zwave.fibaro_office.attributes.battery_level }}"
kitchen_fibaro_battery:
friendly_name: Kitchen Fibaro Battery
value_template: "{{ states.zwave.fibaro_multisensor.attributes.battery_level }}"
hall_fibaro_battery:
friendly_name: Hall Fibaro Battery
value_template: "{{ states.zwave.fibaro_hall.attributes.battery_level }}"
bathroom_humidity_battery:
friendly_name: Bathroom Humidity Battery
value_template: "{{ states.zwave.bathroom_sensor.attributes.battery_level }}"
bathroom_window_battery:
friendly_name: Bathroom Window Battery
value_template: "{{ states.zwave.bathroom_window.attributes.battery_level }}"
roof_window_east_battery:
friendly_name: Roof Window East Battery
value_template: "{{ states.zwave.roof_window_east.attributes.battery_level }}"
roof_window_west_battery:
friendly_name: Roof Window west Battery
value_template: "{{ states.zwave.roof_window_west.attributes.battery_level }}"
downstairs_remote_battery:
friendly_name: Remote downstairs small battery
value_template: "{{ states.zwave.remote_downstairs_small.attributes.battery_level }}"
last_movement_overloop:
friendly_name: Last movement Overloop
value_template: "{{ states.binary_sensor.pir_overloop.last_updated.astimezone().strftime('%a %H:%M:%S') }}"
last_movement_kitchen:
friendly_name: Last movement Kitchen
value_template: "{{ states.binary_sensor.pir_kitchen.last_updated.astimezone().strftime('%a %H:%M:%S') }}"
last_movement_hall:
friendly_name: Last movement Hall
value_template: "{{ states.binary_sensor.pir_hall.last_updated.astimezone().strftime('%a %H:%M:%S') }}"
last_movement_office:
friendly_name: Last movement Office
value_template: "{{ states.binary_sensor.pir_office.last_updated.astimezone().strftime('%a %H:%M:%S') }}"
last_movement_living_room:
friendly_name: Last movement living room
value_template: "{{ states.binary_sensor.pir_living_room.last_updated.astimezone().strftime('%a %H:%M:%S') }}"
last_movement_front_door:
friendly_name: Last movement front door
value_template: "{{ states.binary_sensor.front_door.last_updated.astimezone().strftime('%a %H:%M:%S') }}"
last_movement_back_door:
friendly_name: Last movement back door
value_template: "{{ states.binary_sensor.back_door.last_updated.astimezone().strftime('%a %H:%M:%S') }}"
last_movement_bedroom_window_left:
friendly_name: Last movement bedroom window left
value_template: "{{ states.binary_sensor.bedroom_window_left.last_updated.astimezone().strftime('%a %H:%M:%S') }}"
last_movement_bedroom_window_right:
friendly_name: Last movement bedroom window right
value_template: "{{ states.binary_sensor.bedroom_window_right.last_updated.astimezone().strftime('%a %H:%M:%S') }}"
last_movement_bathroom_window:
friendly_name: Last movement bathroom_window_bathroom_window_door_state_simple
value_template: "{{ states.binary_sensor.bathroom_window_bathroom_window_door_state_simple.last_updated.astimezone().strftime('%a %H:%M:%S') }}"
last_movement_roof_window_east:
friendly_name: Last movement roof window east
value_template: "{{ states.binary_sensor.dakraam_oost_sensor.last_updated.astimezone().strftime('%a %H:%M:%S') }}"
last_movement_roof_window_west:
friendly_name: Last movement roof window west
value_template: "{{ states.binary_sensor.dakraam_west_sensor.last_updated.astimezone().strftime('%a %H:%M:%S') }}"
# - name: P1
#port: /dev/ttyUSB-P1
#dsmr_version: 4
binary_sensor:
platform: template
sensors:
anybody_connected:
friendly_name: "Anybody connected?"
value_template: '{% if is_state("binary_sensor.proycon_connected","on") or is_state("binary_sensor.hans_connected","on") or is_state("binary_sensor.guest_connected","on") %}True{% else %}False{% endif %}'
device_class: occupancy
guest_connected:
friendly_name: "Guest connected?"
value_template: '{% if is_state("device_tracker.chris","home") or is_state("device_tracker.erik","home") or is_state("device_tracker.patrick","home") or is_state("device_tracker.netty","home") or is_state("device_tracker.jan","home") or is_state("device_tracker.patrick","home") or is_state("device_tracker.cora","home") %}True{% else %}False{% endif %}'
device_class: occupancy
proycon_connected:
friendly_name: "Proycon connected?"
value_template: '{% if is_state("device_tracker.proyphone","home") or is_state("device_tracker.pinephone","home") %}True{% else %}False{% endif %}'
device_class: occupancy
hans_connected:
friendly_name: "Hans connected?"
value_template: '{% if is_state("device_tracker.hansphone","home") or is_state("device_tracker.d0_49_7c_3e_a1_4b", "home") %}True{% else %}False{% endif %}'
device_class: occupancy
anydoor:
value_template: '{% if is_state("binary_sensor.back_door","on") or is_state("binary_sensor.front_door","on") %}True{% else %}False{% endif %}'
anybody_home:
friendly_name: "Anybody home?"
value_template: '{% if is_state("input_boolean.proycon_home","on") or is_state("input_boolean.hans_home","on") or is_state("input_boolean.guest_home","on") %}True{% else %}False{% endif %}'
device_class: occupancy
pir_kitchen:
friendly_name: "PIR Kitchen"
value_template: '{{ is_state("binary_sensor.nodeid_2_nodeid_2_motion_sensor_status", "on") }}'
device_class: motion
pir_hall:
friendly_name: "PIR Hall"
value_template: '{{ is_state("binary_sensor.nodeid_7_nodeid_7_motion_sensor_status", "on") }}'
device_class: motion
pir_office:
friendly_name: "PIR Office"
value_template: '{{ is_state("binary_sensor.nodeid_6_nodeid_6_motion_sensor_status", "on") }}'
device_class: motion
pir_overloop:
friendly_name: "PIR Overloop"
value_template: '{{ is_state("binary_sensor.nodeid_12_nodeid_12_motion_sensor_status", "on") }}'
device_class: motion
bathroom_too_humid:
friendly_name: "Bathroom too humid"
value_template: '{{ states("sensor.bathroom_sensor_relative_humidity") | float > 75.0 }}'
#MQTT
mqtt:
- binary_sensor:
unique_id: doorbell
name: Doorbell
state_topic: "home/binary_sensor/doorbell"
- binary_sensor:
unique_id: frontdoor
name: Front Door
state_topic: "home/binary_sensor/frontdoor"
device_class: door
- binary_sensor:
unique_id: backdoor
name: Back Door
state_topic: "home/binary_sensor/backdoor"
device_class: door
- binary_sensor:
unique_id: bedroomwindow_right
name: Bedroom window Right
state_topic: "home/binary_sensor/bedroomwindow_right"
device_class: door
- binary_sensor:
unique_id: bedroomwindow_left
name: Bedroom window Left
state_topic: "home/binary_sensor/bedroomwindow_left"
device_class: door
- binary_sensor:
unique_id: pir_living_room
name: PIR Living Room
state_topic: "home/binary_sensor/pir_living_room"
payload_on: "ON"
payload_off: "OFF"
device_class: motion
- sensor:
unique_id: temperature_living_room
name: Temperature Living Room
unit_of_measurement: °C
state_topic: "home/sensor/temperature_living_room"
- sensor:
unique_id: humidity_living_room
name: Humidity Living Room
unit_of_measurement: "%"
state_topic: "home/sensor/humidity_living_room"
- sensor:
unique_id: co2_living_room
name: CO2 Living Room
unit_of_measurement: ppm
state_topic: "home/sensor/co2_living_room"
- sensor:
unique_id: temperature_attic
name: Temperature Attic
unit_of_measurement: °C
state_topic: "home/sensor/temperature_attic"
- sensor:
unique_id: humidity_attic
name: Humidity Attic
unit_of_measurement: "%"
state_topic: "home/sensor/humidity_attic"
- sensor:
unique_id: bedroom_temperature
name: Bedroom Temperature
unit_of_measurement: °C
state_topic: "home/sensor/bedroom_temperature"
- sensor:
unique_id: ir_send
name: IR Send Activity
state_topic: "home/ir_send/pi1"
expire_after: 3
value_template: 1
- sensor:
unique_id: greenhouse_temperature
name: Greenhouse Temperature
unit_of_measurement: °C
state_topic: "home/sensor/greenhouse_temperature"
expire_after: 3600
- sensor:
unique_id: outside_temperature
name: Outside Temperature
unit_of_measurement: °C
state_topic: "home/sensor/outside_temperature"
expire_after: 3600
- sensor:
unique_id: outside_humidity
name: Outside Humidity
unit_of_measurement: "%"
state_topic: "home/sensor/outside_humidity"
expire_after: 3600
- sensor:
unique_id: winddir
name: Wind Direction
unit_of_measurement: °
state_topic: "home/weatherstation/winddir"
expire_after: 3600
- sensor:
unique_id: windspeed
name: Wind Speed
unit_of_measurement: km/h
state_topic: "home/weatherstation/windspeed"
expire_after: 3600
- sensor:
unique_id: windgustspeed
name: Wind Gusts
unit_of_measurement: km/h
state_topic: "home/weatherstation/windgustspeed"
expire_after: 3600
- sensor:
unique_id: outside_temperature2
unit_of_measurement: °C
state_topic: "home/weatherstation2/temp"
expire_after: 3600
- sensor:
unique_id: totalrain
unit_of_measurement: mm
state_topic: "home/weatherstation/rain"
expire_after: 3600
- switch:
unique_id: tv_spots
name: TV Spots
state_topic: "home/433send/get/elro/31/E"
command_topic: "home/433send/set/pi1/elro/31/E"
- switch:
unique_id: office
name: Office
state_topic: "home/433send/get/elro/15/A"
command_topic: "home/433send/set/pi2/elro/15/A"
- switch:
unique_id: front_room
name: Front Room
state_topic: "home/433send/get/oldkaku/M/10"
command_topic: "home/433send/set/pi1/oldkaku/M/10"
- switch:
unique_id: midspots
name: Midspots
state_topic: "home/433send/get/elro/31/B"
command_topic: "home/433send/set/pi2/elro/31/B"
- switch:
unique_id: back_room
name: Back room
state_topic: "home/433send/get/elro/31/A"
command_topic: "home/433send/set/pi2/elro/31/A"
- switch:
unique_id: back_corner
name: Back Corner
state_topic: "home/433send/get/elro/31/C"
command_topic: "home/433send/set/pi1/elro/31/C"
- switch:
unique_id: kitchen
name: Kitchen
state_topic: "home/433send/get/newkaku/120/8"
command_topic: "home/433send/set/pi1/newkaku/120/8"
- switch:
unique_id: bedroom
name: Bedroom
state_topic: "home/433send/get/elro/15/C"
command_topic: "home/433send/set/pi2/elro/15/C"
- switch:
unique_id: garden
name: Garden
state_topic: "home/433send/get/elro/23/A"
command_topic: "home/433send/set/pi2/elro/23/A"
- switch:
unique_id: balcony
name: Balcony
state_topic: "home/433send/get/newkaku/121/9"
command_topic: "home/433send/set/pi2/newkaku/121/9"
#state_topic: "home/elro/get/23/2"
#command_topic: "home/elro/set/pi2/23/2"
- switch:
unique_id: hall
name: Hall
state_topic: "home/433send/get/elro/15/B"
command_topic: "home/433send/set/pi1/elro/15/B"
- switch:
unique_id: roof
name: Roof
state_topic: "home/433send/get/newkaku/121/8"
command_topic: "home/433send/set/pi2/newkaku/121/8"
#state_topic: "home/elro/get/23/4"
#command_topic: "home/elro/set/pi2/23/4"
- switch:
unique_id: porch
name: Porch
state_topic: "home/433send/get/oldkaku/M/11"
command_topic: "home/433send/set/pi1/oldkaku/M/11"
- switch:
unique_id: bathroom_vent
name: Bathroom Vent
state_topic: "home/433send/get/newkaku/121/7"
command_topic: "home/433send/set/pi2/newkaku/121/7"
#state_topic: "home/elro/get/23/4"
#command_topic: "home/elro/set/pi2/23/4"
- switch:
unique_id: tv_decoder
name: TV Decoder
command_topic: "home/ir_send/pi1"
payload_on: '{"device":"VIP1853","key":"POWER"}'
payload_off: '{"device":"VIP1853","key":"POWER"}'
- switch:
unique_id: tv_decoder_bedroom
name: TV Decoder Bedroom
command_topic: "home/ir_send/pi2"
payload_on: '{"device":"VIP1853","key":"POWER"}'
payload_off: '{"device":"VIP1853","key":"POWER"}'
- switch:
unique_id: pi1_kodi
name: Pi1 Kodi
command_topic: "home/kodi/set/pi1"
state_topic: "home/kodi/get/pi1"
- switch:
unique_id: pi1_music_player
name: Pi1 Music Player
command_topic: "home/musicplayer/set/pi1"
state_topic: "home/musicplayer/get/pi1"
- switch:
unique_id: pi1_desktop
name: Pi1 Desktop
command_topic: "home/desktop/set/pi1"
state_topic: "home/desktop/get/pi1"
- switch:
unique_id: pi2_kodi
name: Pi2 Kodi
command_topic: "home/kodi/set/pi2"
state_topic: "home/kodi/get/pi2"
- switch:
unique_id: pi2_music_player
name: Pi2 Music Player
command_topic: "home/musicplayer/set/pi2"
state_topic: "home/musicplayer/get/pi2"
- switch:
unique_id: pi2_desktop
name: Pi2 Xorg
command_topic: "home/desktop/set/pi2"
state_topic: "home/desktop/get/pi2"
- switch:
unique_id: tv
name: TV
#command_topic: "home/ir_send/pi1"
#payload_on: '{"device":"tvbeneden","key":"KEY_POWER","state":"on"}'
#payload_off: '{"device":"tvbeneden","key":"KEY_POWER","state":"off"}'
command_topic: "home/hdmi_cec_send/pi1"
payload_on: "on 0"
payload_off: "standby 0"
- switch:
unique_id: tv_bedroom
name: TV Bedroom
#command_topic: "home/ir_send/pi2"
#payload_on: '{"device":"tvboven","key":"KEY_POWER","state":"on"}'
#payload_off: '{"device":"tvboven","key":"KEY_POWER","state":"off"}'
command_topic: "home/hdmi_cec_send/pi2"
payload_on: "on 0"
payload_off: "standby 0"
- switch:
unique_id: technofire
name: Technofire
command_topic: "home/technofire/pi3/set/fire/255"
state_topic: "home/technofire/pi3/state"
- switch:
unique_id: ambilight
name: Ambilight
command_topic: "home/technofire/pi2/set/lamp/40"
state_topic: "home/technofire/pi2/state"
- switch:
unique_id: bedroom_ambilight
name: Bedroom Ambilight
command_topic: "home/technofire/pi4/set/rainbow_slow/60"
state_topic: "home/technofire/pi4/state"
# - fan:
# name: "Ceiling fan"
# command_topic: "home/fan"
# speed_command_topic: "home/fan"
# payload_on: "true"
# payload_off: "off"
# payload_low_speed: "2"
# payload_medium_speed: "4"
# payload_high_speed: "6"
# speeds:
# - low
# - medium
# - high
command_line:
- switch:
unique_id: bedroom_highspots
name: Bedroom Highspots
command_on: /home/homeautomation/homeassistant/scripts/switch/eth008.sh 0
command_off: /home/homeautomation/homeassistant/scripts/switch/eth008.sh 0
command_state: /home/homeautomation/homeassistant/scripts/switch/eth008.sh
value_template: "{{ value[7] == \"1\" }}"
- switch:
unique_id: bedroom_midspots
name: Bedroom Midspots
command_on: /home/homeautomation/homeassistant/scripts/switch/eth008.sh 1
command_off: /home/homeautomation/homeassistant/scripts/switch/eth008.sh 1
command_state: /home/homeautomation/homeassistant/scripts/switch/eth008.sh
value_template: "{{ value[8] == \"1\" }}"
#hdmi_cec:
# host: !secret pi1_ip
# types:
# hdmi_cec.hdmi_0: switch #will expose a switch.hdmi_0 entity
media_player hall_speaker:
- platform: gstreamer
name: Hall speaker
pipeline: "audioconvert ! audioresample ! pulsesink" #relies on PULSE_SERVER being set as environment variable in case of remote server!
media_player yamaha_receiver:
- platform: yamaha
host: !secret avr_ip
source_names:
HDMI1: "TV Decoder"
HDMI2: "Pi1"
#media_player kodi:
#- platform: kodi
#name: Kodi
#host: !secret pi1_ip
#username: !secret kodi_username
#password: !secret kodi_password
#media_player kodi_bedroom:
# - platform: kodi
#name: Kodi Bedroom
#host: !secret pi2_ip
#username: !secret kodi_username
#password: !secret kodi_password
matrix:
homeserver: https://matrix.anaproy.nl
username: !secret matrix_id
password: !secret matrix_password
rooms:
- !secret matrix_room
commands:
- word: "lights_on"
name: lights_on #hook not implemented yet
notify:
- name: mail_both
platform: smtp
sender: !secret mail_sender
server: !secret mail_server
port: 25
timeout: 10
encryption: none
recipient:
- !secret xmpp_proycon
- !secret xmpp_hans
- name: sms
platform: message_bird
api_key: !secret messagebird_apikey
- name: matrix
platform: matrix
default_room: !secret matrix_room
#mqtt_eventstream:
# publish_topic: master
# subscribe_topic: slaves/#