-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfiguration.yaml
More file actions
executable file
·1110 lines (996 loc) · 28.4 KB
/
Copy pathconfiguration.yaml
File metadata and controls
executable file
·1110 lines (996 loc) · 28.4 KB
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:
customize: !include customize.yaml
# Name of the location where Home Assistant is running
name: Home
# Location required to calculate the time the sun rises and sets
latitude: !secret lat
longitude: !secret long
# Impacts weather/sunrise data (altitude above sea level in meters)
elevation: !secret elev
# metric for Metric, imperial for Imperial
unit_system: imperial
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time_zone: America/Chicago
# Packages
packages: !include_dir_named packages
whitelist_external_dirs:
- /camera
# Show links to resources in log and frontend
#introduction:
# Enables the frontend
frontend:
javascript_version: latest
# Enables configuration UI
config:
api:
http:
# api_password: !secret api_password
base_url: !secret duck_url
logger:
default: info
recorder:
db_url: !secret db_url
purge_keep_days: 14
purge_interval: 1
#Zigbee Home Automation
zha:
usb_path: /dev/ttyUSB1
database_path: /config/zigbee.db
#Z-Wave
zwave:
usb_path: /dev/ttyUSB0
network_key: !secret network_key
debug: true
#Cloud https://www.home-assistant.io/components/google_assistant/
#cloud:
#google_actions:
#filter:
#include_entities:
#- script.goodnight
#- script.kiddos_bedtime
#- script.time_for_bed
#- script.stop_the_vacuum
#- script.vacuum_the_kitchen
#- script.vacuum_the_diningroom
#- script.vacuum_the_livingroom
#- script.mop_the_kitchen
#- script.mop_the_diningroom
#- script.mop_the_livingroom
#- script.vacuum_the_kiddosroom
#- script.vacuum_the_masterbedroom
#- script.vacuum_the_apartment
#- script.back_porch_camera
#- script.wakeup
#- script.kiddos_wakeup
#include_domains:
#- switch
#- light
#- scene
#- fan
#- climate
#exclude_entities:
#- switch.bedroom_cooling
#- scene.bedroom_on
#- scene.bedroom_off
#- light.sengled_e11g13_0302ac4d_1
#- light.sengled_e11g13_03117d0a_1
#- light.sengled_e11g13_03116e79_1
#- light.sengled_e11g13_03114527_1
#- light.sengled_e11g13_0311dca3_1
#- light.sengled_e11g13_030e229b_1
#- light.sengled_e11g13_030e8f56_1
#- light.bedroom
#- light.bedroom_n
#- light.bedroom_e
#- light.bedroom_s
#- light.bedroom_w
#- light.dining_room_1_3
#- light.dining_room_2_3
#- light.dining_room_3
#entity_config:
#climate.bedroom_cool:
#name: Bedroom Thermostat
#climate.kiddos_room_cool:
#name: Kiddos Thermostat
#climate.kitchen_cool:
#name: Kitchen Thermostat
#climate.livingroom_cool:
#name: Living Room Thermostat
#climate.thermostat_cooling_1:
#name: Dining Room Thermostat
google_assistant:
project_id: !secret google_project
api_key: !secret google_api
#expose_by_default: false
exposed_domains:
- switch
- light
- scene
- fan
- climate
- cover
entity_config:
climate.bedroom_cool:
name: Bedroom Thermostat
climate.kiddos_room_cool:
name: Kiddos Thermostat
climate.kitchen_cool:
name: Kitchen Thermostat
climate.livingroom_cool:
name: Living Room Thermostat
climate.thermostat_cooling_1:
name: Dining Room Thermostat
script.goodnight:
expose: true
script.kiddos_bedtime:
expose: true
script.time_for_bed:
expose: true
script.stop_the_vacuum:
expose: true
script.vacuum_the_kitchen:
expose: true
script.vacuum_the_diningroom:
expose: true
script.vacuum_the_livingroom:
expose: true
script.mop_the_kitchen:
expose: true
script.mop_the_diningroom:
expose: true
script.mop_the_livingroom:
expose: true
script.vacuum_the_kiddosroom:
expose: true
script.vacuum_the_masterbedroom:
expose: true
script.vacuum_the_apartment:
expose: true
script.back_porch_camera:
expose: true
script.wakeup:
expose: true
script.kiddos_wakeup:
expose: true
script.christmas_time:
expose: true
switch.bedroom_cooling:
expose: false
scene.bedroom_on:
expose: false
scene.bedroom_off:
expose: false
light.sengled_e11g13_0302ac4d_1:
expose: false
light.sengled_e11g13_03117d0a_1:
expose: false
light.sengled_e11g13_03116e79_1:
expose: false
light.sengled_e11g13_03114527_1:
expose: false
light.sengled_e11g13_0311dca3_1:
expose: false
light.sengled_e11g13_030e229b_1:
expose: false
light.sengled_e11g13_030e8f56_1:
expose: false
light.bedroom:
expose: false
light.bedroom_n:
expose: false
light.bedroom_e:
expose: false
light.bedroom_s:
expose: false
light.bedroom_w:
expose: false
light.dining_room_1_3:
expose: false
light.dining_room_2_3:
expose: false
light.dining_room_3:
expose: false
switch.circadian_lighting_christmas_tree_circadian:
expose: false
switch.circadian_lighting_hallway:
expose: false
switch.circadian_lighting_household:
expose: false
switch.circadian_lighting_kiddo:
expose: false
climate.thermostat_heating_1:
expose: false
light.gateway_light_7811dc6c910e:
expose: false
light.gateway_light_7811dcb05f07:
expose: false
# Checks for available updates
# Note: This component will send some information about your system to
# the developers to assist with development of Home Assistant.
# For more information, please see:
# https://home-assistant.io/blog/2016/10/25/explaining-the-updater/
updater:
# Discover some devices automatically
discovery:
# Allows you to issue voice commands from the frontend in enabled browsers
conversation:
# Enables support for tracking state changes over time.
history:
exclude:
entities:
- sensor.date
- sensor.date__time
- sensor.time
- sensor.time_utc
- sensor.internet_time
- light.bedroom_e
- light.bedroom_w
- light.bedroom_n
- light.bedroom_s
- sensor.pws_temp_f
- sensor.pws_uv
- switch.bedroom_cooling
- script.goodnight
- scene.bedroom_on
- scene.bedroom_off
- light.sengled_e11g13_0302ac4d_1
- light.sengled_e11g13_03117d0a_1
- light.sengled_e11g13_03116e79_1
- light.sengled_e11g13_03114527_1
- light.sengled_e11g13_0311d3f1_1
- light.sengled_e11g13_0311dca3_1
- light.dining_room_1
- light.dining_room_2
- light.bedroom
- light.bedroom_n
- light.bedroom_e
- light.bedroom_s
- light.bedroom_w
- light.diningroom_1_2
- light.diningroom_2_2
- input_boolean.bp_motion
- light.vanity_lights
- light.bathroom_overhead
- light.gateway_light_7811dc6c910e
- light.gateway_light_7811dcb05f07
- light.sengled_e11g13_030e229b_1
- light.sengled_e11g13_030e8f56_1
- sensor.sengled_e11g13_0302ac4d_1_1794
- sensor.sengled_e11g13_030e229b_1_1794
- sensor.sengled_e11g13_030e8f56_1_1794
- sensor.sengled_e11g13_030e8f56_1_1794
- sensor.sengled_e11g13_030e925f_1_1794
- sensor.sengled_e11g13_0310f119_1_1794
- sensor.sengled_e11g13_03114527_1_1794
- sensor.sengled_e11g13_03116e79_1_1794
- sensor.sengled_e11g13_03117d0a_1_1794
- sensor.sengled_e11g13_0311b21d_1_1794
- sensor.sengled_e11g13_0311d3f1_1_1794
- sensor.sengled_e11g13_0311dca3_1_1794
- sensor.alarm_clock_wknd_time
- sensor.alarm_3_time
- sensor.thermostat_indicator
- sensor.circadian_values
- switch.circadian_lighting_christmas_tree_circadian
- switch.circadian_lighting_hallway
- switch.circadian_lighting_household
- switch.circadian_lighting_kiddo
- sensor.cooling_target
- input_number.away_cooling_target
- input_number.away_heating_target
- input_number.present_cooling_target
- input_number.present_heating_target
- input_number.sleeping_cooling_target
- input_number.stored_cooling_target
- input_number.stored_heating_target
- sensor.cooling_target
- sensor.bt_ashley
- sensor.bt_ashley_front
- sensor.bt_ashley_rear
- sensor.bt_kevin
- sensor.bt_kevin_front
- sensor.bt_kevin_rear
- sensor.dining_room_remote
- sensor.kiddo_remote
- camera.back_porch
- sensor.thermostat_relative_humidity
domains:
- automation
- group
- script
- binary_sensor
- input_number
- media_player
# View all events in a logbook
logbook:
exclude:
entities:
- sensor.date
- sensor.date__time
- sensor.time
- sensor.time_utc
- sensor.internet_time
domains:
- group
# Track the sun
sun:
#CIRCADIAN LIGHTING
circadian_lighting:
#sunset_offset: '-0:30'
#WAKE ON LAN
wake_on_lan:
duckdns:
domain: !secret duck_domain
access_token: !secret duck_access
#WEATHER
weather:
#- platform: darksky
#api_key: !secret ds_api
# SENSORS
sensor:
##BLUETOOTH
- platform: mqtt
state_topic: 'monitor/pi_front/40:4e:36:5b:0e:d4'
value_template: '{{ value_json.confidence }}'
unit_of_measurement: '%'
name: 'BT_Kevin_Front'
- platform: mqtt
state_topic: 'monitor/pi_front/40:4e:36:6f:1f:78'
value_template: '{{ value_json.confidence }}'
unit_of_measurement: '%'
name: 'BT_Ashley_Front'
- platform: mqtt
state_topic: 'monitor/pi_rear/40:4e:36:5b:0e:d4'
value_template: '{{ value_json.confidence }}'
unit_of_measurement: '%'
name: 'BT_Kevin_Rear'
- platform: mqtt
state_topic: 'monitor/pi_rear/40:4e:36:6f:1f:78'
value_template: '{{ value_json.confidence }}'
unit_of_measurement: '%'
name: 'BT_Ashley_Rear'
#availability_topic: "monitor/pi_rear/status"
#payload_available: "online"
#payload_not_available: "offline"
#json_attributes:
#- id
#- name
#- rssi
#- version
#- manufacturer
#- type
#- timestamp
#- retained
#- confidence
- platform: min_max
name: "BT_Kevin"
type: max
round_digits: 0
entity_ids:
- sensor.BT_Kevin_Front
- sensor.BT_Kevin_Rear
- platform: min_max
name: "BT_Ashley"
type: max
round_digits: 0
entity_ids:
- sensor.BT_Ashley_Front
- sensor.BT_Ashley_Rear
##ZONEMINDER
# - platform: zoneminder
# include_archived: false
##Sun angle
- platform: template
sensors:
solar_angle:
friendly_name: "Sun angle"
unit_of_measurement: 'degrees'
value_template: "{{ states.sun.sun.attributes.elevation }}"
##Smoke/CO Detector
- platform: template
sensors:
status_smoke_co_alarm:
value_template: >-
{%- if is_state("sensor.first_alert_zcombo_smoke_and_carbon_monoxide_detector_alarm_type", "13") %}
Clear
{%- elif is_state("sensor.first_alert_zcombo_smoke_and_carbon_monoxide_detector_alarm_type", "1") %}
Smoke
{%- elif is_state("sensor.first_alert_zcombo_smoke_and_carbon_monoxide_detector_alarm_type", "2") %}
CO
{%- elif is_state("sensor.first_alert_zcombo_smoke_and_carbon_monoxide_detector_alarm_type", "12") %}
Testing
{% else %}
Unknown
{%- endif %}
icon_template: >-
{%- if is_state("sensor.first_alert_zcombo_smoke_and_carbon_monoxide_detector_alarm_type", "13") %}
mdi:verified
{%- elif is_state("sensor.first_alert_zcombo_smoke_and_carbon_monoxide_detector_alarm_type", "1") %}
mdi:alert
{%- elif is_state("sensor.first_alert_zcombo_smoke_and_carbon_monoxide_detector_alarm_type", "2") %}
mdi:cloud-alert
{%- elif is_state("sensor.first_alert_zcombo_smoke_and_carbon_monoxide_detector_alarm_type", "12") %}
mdi:timelapse
{% else %}
mdi:help-circle
{%- endif %}
friendly_name: 'Smoke/CO Alarm'
##THERMOSTAT COUNTER
- platform: template
sensors:
status_thermostat_count:
value_template: >-
{{ states.climate
| selectattr('state', 'eq', 'cool')
| list
| count
}}
friendly_name: 'Thermostat Count'
## Weather
#- platform: wunderground
#api_key: !secret wu_api
#monitored_conditions:
#- temp_f
#- UV
#- platform: darksky
#api_key: !secret ds_api
#monitored_conditions:
#- temperature
#- humidity
#- precip_probability
#- precip_intensity
#- wind_speed
#- icon
##Server Temp
#- platform: command_line
#name: Server Temp
#command: /usr/bin/sensors | grep "Core0" | cut -c16-19
#unit_of_measurement: "°c"
## Time and Date
- platform: time_date
display_options:
- 'time'
# Bedroom Temp and Humidity
# - platform: mqtt
# name: "Bedroom Temp"
# state_topic: "tele/S20-01/SENSOR"
# value_template: "{{ value_json['DHT22'].Temperature | float - 3.0}}"
# unit_of_measurement: "°F"
# - platform: mqtt
# name: "Bedroom Humidity"
# state_topic: "tele/S20-01/SENSOR"
# value_template: "{{ value_json['DHT22'].Humidity }}"
# unit_of_measurement: "%"
##ALARM CLOCK
#- platform: template
#sensors:
#alarm_clock_hour:
#value_template: '{{ states.input_number.alarm_clock_hour.state | int }}'
#alarm_clock_minute:
#value_template: '{{ states.input_number.alarm_clock_minute.state | int }}'
#alarm_clock_time:
#value_template: >-
#{{ states.sensor.alarm_clock_hour.state }}:
#{%- if states.sensor.alarm_clock_minute.state|length == 1 -%}
#0
#{%- endif -%}
#{{ states.sensor.alarm_clock_minute.state }}
#alarm_clock_time_long:
#value_template: >-
#{% if states.sensor.alarm_clock_hour.state|length == 1 -%}
#0
#{%- endif -%}
#{{ states.sensor.alarm_clock_hour.state }}:
#{%- if states.sensor.alarm_clock_minute.state|length == 1 -%}
#0
#{%- endif -%}
#{{ states.sensor.alarm_clock_minute.state }}
- platform: template
sensors:
alarm_clock_wknd_hour:
value_template: '{{ states.input_number.alarm_clock_wknd_hour.state | int }}'
alarm_clock_wknd_minute:
value_template: '{{ states.input_number.alarm_clock_wknd_minute.state | int }}'
alarm_clock_wknd_time:
value_template: >-
{{ states.sensor.alarm_clock_wknd_hour.state }}:
{%- if states.sensor.alarm_clock_wknd_minute.state|length == 1 -%}
0
{%- endif -%}
{{ states.sensor.alarm_clock_wknd_minute.state }}
alarm_clock_wknd_time_long:
value_template: >-
{% if states.sensor.alarm_clock_wknd_hour.state|length == 1 -%}
0
{%- endif -%}
{{ states.sensor.alarm_clock_wknd_hour.state }}:
{%- if states.sensor.alarm_clock_wknd_minute.state|length == 1 -%}
0
{%- endif -%}
{{ states.sensor.alarm_clock_wknd_minute.state }}
##Thermostat Sensors
- platform: template
sensors:
cooling_target:
unit_of_measurement: "°F"
value_template: "{{ states.climate.thermostat_cooling_1.attributes.temperature }}"
# NOTIFICATIONS
notify:
#- platform: pushbullet
#name: pushbullet
#api_key: !secret pb_api
- platform: rest
name: googleassistant
resource: http://192.168.1.115:5000/broadcast_message
- platform: rest
name: googleassistant
resource: http://192.168.1.115:5000/command
- name: kevin_telegram
platform: telegram
chat_id: !secret kevin_chat
telegram_bot:
- platform: polling
api_key: !secret telegram_api
allowed_chat_ids:
- !secret kevin_chat
# PRESENCE DETECTION
device_tracker:
#https://github.com/andrewjfreyer/monitor
#- platform: googlehome
##kiddos
#host: 192.168.1.131
#- platform: googlehome
##Dining
#host: 192.168.1.133
#- platform: googlehome
##Bath
#host: 192.168.1.134
#- platform: googlehome
##Kitchen
#host: 192.168.1.132
#- platform: googlehome
##Master
#host: 192.168.1.130
#- platform: googlehome
##Living Room
#host: 192.168.1.129
# Media Players
media_player:
- platform: kodi
host: 192.168.1.135
# MQTT BROKER
mqtt:
broker: 192.168.1.115
port: 1883
client_id: home-assistant-1
keepalive: 60
discovery: true
discovery_prefix: homeassistant
birth_message:
topic: "tele/hass1/LWT"
payload: "Online"
qos: 1
retain: false
will_message:
topic: "tele/hass1/LWT"
payload: "Offline"
qos: 1
retain: false
# SWITCHES
switch:
#- platform: hadockermon
#host: 192.168.1.115
#port: 8126
#stats: true
#prefix: docker
#- platform: rest
#name: 'Mylar Pause/Unpause'
#resource: http://192.168.1.115:8126/container/mylar
#body_on: '{"state": "unpause"}'
#body_off: '{"state": "pause"}'
#is_on_template: '{{ value_json is not none and value_json.state=="running" }}'
#- platform: rest
#name: 'Headphones Pause/Unpause'
#resource: http://192.168.1.115:8126/container/headphones
#body_on: '{"state": "unpause"}'
#body_off: '{"state": "pause"}'
#is_on_template: '{{ value_json is not none and value_json.state=="running" }}'
# - platform: zoneminder
# command_on: Record
# command_off: None
- platform: circadian_lighting
name: Household
lights_rgb:
- light.gateway_light_7811dc6c910e
- light.gateway_light_7811dcb05f07
lights_ct:
- light.dining_room_overhead
lights_brightness:
- light.yeelight_strip_7811dc690b4d
- light.living_room_overhead
- light.sengled_e11g13_0310f119_1
- light.bathroom_overhead
- light.sengled_e11g13_03116e79_1
- light.linen_closet
- light.kiddos_closet
- light.yeelight_rgb_7811dc6b82a0
sleep_entity: input_boolean.asleep
sleep_state: 'on'
sleep_brightness: 2
sleep_colortemp: 1000
min_brightness: 2
- platform: circadian_lighting
name: Hallway
lights_brightness:
- light.sengled_e11g13_0311d3f1_1
- light.vanity_lights
sleep_entity: input_boolean.asleep
sleep_state: 'on'
sleep_brightness: 5
min_brightness: 2
max_brightness: 50
- platform: circadian_lighting
name: Christmas Tree Circadian
lights_brightness:
- light.centralite_4257050zhac_02f7ac71_1
sleep_entity: input_boolean.asleep
sleep_state: 'on'
sleep_brightness: 1
min_brightness: 25
max_brightness: 65
- platform: circadian_lighting
name: Kiddo
lights_ct:
- light.kiddos_overhead
min_brightness: 2
- platform: wake_on_lan
name: "Kevins Computer"
mac_address: "00-23-54-82-03-72"
host: 192.168.1.153
#- platform: mqtt
#name: "Sonoff 08 X"
#command_topic: "cmnd/sonoff8/power"
#state_topic: "stat/sonoff8/RESULT"
#value_template: '{{ value_json.POWER1 }}'
#qos: 1
#payload_on: "ON"
#payload_off: "OFF"
#retain: false
#- platform: mqtt
#name: "S20-01"
#command_topic: "cmnd/S20-01/power"
#state_topic: "stat/S20-01/RESULT"
#value_template: '{{ value_json.POWER1 }}'
#qos: 1
#payload_on: "ON"
#payload_off: "OFF"
#retain: false
#- platform: mqtt
#name: "Sonoff 04"
#command_topic: "cmnd/sonoff4/power"
#state_topic: "stat/sonoff4/RESULT"
#value_template: '{{ value_json.POWER1 }}'
#qos: 1
#payload_on: "ON"
#payload_off: "OFF"
#retain: false
#- platform: mqtt
#name: "Sonoff 03"
#command_topic: "cmnd/sonoff3/power"
#state_topic: "stat/sonoff3/RESULT"
#value_template: '{{ value_json.POWER1 }}'
#qos: 1
#payload_on: "ON"
#payload_off: "OFF"
#retain: false
- platform: mqtt
name: "Christmas Lights"
command_topic: "cmnd/S20-05/power"
state_topic: "stat/S20-05/RESULT"
value_template: '{{ value_json.POWER1 }}'
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: false
#- platform: mqtt
#name: "S20-04"
#command_topic: "cmnd/S20-04/power"
#state_topic: "stat/S20-04/RESULT"
#value_template: '{{ value_json.POWER1 }}'
#qos: 1
#payload_on: "ON"
#payload_off: "OFF"
#retain: false
- platform: mqtt
name: "Kiddos Tree"
command_topic: "cmnd/sonoff/power"
state_topic: "stat/sonoff/RESULT"
value_template: '{{ value_json.POWER }}'
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: false
#- platform: mqtt
#name: "S20-06"
#command_topic: "cmnd/S20-06/power"
#state_topic: "stat/S20-06/RESULT"
#value_template: '{{ value_json.POWER1 }}'
#qos: 1
#payload_on: "ON"
#payload_off: "OFF"
#retain: false
#LIGHTS
light:
- platform: group
name: Vanity Lights
entities:
- light.sengled_e11g13_0302ac4d_1
- light.sengled_e11g13_03117d0a_1
- platform: group
name: Bathroom Overhead
entities:
- light.sengled_e11g13_030e229b_1
- light.sengled_e11g13_030e8f56_1
- platform: group
name: Bathroom Lights
entities:
- light.sengled_e11g13_030e229b_1
- light.sengled_e11g13_030e8f56_1
- light.sengled_e11g13_0302ac4d_1
- light.sengled_e11g13_03117d0a_1
- platform: group
name: Dining Room Overhead
entities:
- light.dining_room_1_3
- light.dining_room_2_3
- platform: group
name: Kiddo's Overhead
entities:
- light.bedroom_e
- light.bedroom_n
- light.bedroom_s
- platform: group
name: Bed Lamps
entities:
- light.kevins_lamp
- light.ashleys_lamp
- platform: group
name: Living Room Overhead
entities:
- light.sengled_e11g13_03114527_1
- light.sengled_e11g13_0311dca3_1
- platform: mqtt
name: "Kevin's Lamp"
command_topic: "cmnd/S20-03/power"
state_topic: "stat/S20-03/RESULT"
value_template: '{{ value_json.POWER1 }}'
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: false
- platform: mqtt
name: "Ashley's Lamp"
command_topic: "cmnd/S20-02/power"
state_topic: "stat/S20-02/RESULT"
value_template: '{{ value_json.POWER }}'
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: false
- platform: mqtt
name: "Master Bedroom Overhead"
command_topic: "cmnd/bedroom_fan/POWER1"
state_topic: "stat/bedroom_fan/RESULT"
value_template: '{{ value_json.POWER1 }}'
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: false
- platform: mqtt
name: "Kitchen Overhead"
command_topic: "cmnd/kitchen_fan/POWER1"
state_topic: "stat/kitchen_fan/RESULT"
value_template: '{{ value_json.POWER1 }}'
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: false
#BINARY SENSORS
binary_sensor:
- platform: template
sensors:
bp_motion:
friendly_name: "Back Porch Motion"
device_class: motion
value_template: "{{ is_state('input_boolean.bp_motion', 'on') }}"
- platform: template
sensors:
lr_office_motion_ext:
device_class: motion
friendly_name: "LR Office Motion Ext"
delay_off:
minutes: 6
value_template: "{{ is_state('binary_sensor.motion_sensor_158d0001e542cc', 'on') }}"
- platform: template
sensors:
lr_media_motion_ext:
device_class: motion
friendly_name: "LR Media Motion Ext"
delay_off:
minutes: 6
value_template: "{{ is_state('binary_sensor.motion_sensor_158d0001e541b7', 'on') }}"
- platform: template
sensors:
kitchen_motion_ext:
device_class: motion
friendly_name: "Kitchen Motion Ext"
delay_off:
minutes: 6
value_template: "{{ is_state('binary_sensor.motion_sensor_158d00022368ec', 'on') }}"
- platform: template
sensors:
spare_room_motion_ext:
device_class: motion
friendly_name: "Spare Room Motion Ext"
delay_off:
minutes: 6
value_template: "{{ is_state('binary_sensor.motion_sensor_158d00023db739', 'on') }}"
- platform: workday
country: "US"
- platform: trend
sensors:
showering:
entity_id: sensor.humidity_158d00023761ee
min_gradient: 0.00425
device_class: occupancy
max_samples: 5
sample_duration: 1200
- platform: bayesian
name: Living Room Presence
prior: 0.34
observations:
- entity_id: 'binary_sensor.lr_media_motion_ext'
prob_given_true: 0.75
prob_given_false: 0.2
platform: 'state'
to_state: 'on'
- entity_id: 'binary_sensor.lr_office_motion_ext'
prob_given_true: 0.75
prob_given_false: 0.2
platform: 'state'
to_state: 'on'
- entity_id: 'light.living_room_overhead'
prob_given_true: 0.9
platform: 'state'
to_state: 'on'
- entity_id: 'light.sengled_e11g13_0310f119_1'
prob_given_true: 0.9
platform: 'state'
to_state: 'on'
- entity_id: 'media_player.kodi'
prob_given_true: 0.9
platform: 'state'
to_state: 'playing'
- entity_id: 'media_player.kodi'
prob_given_true: 0.75
platform: 'state'
to_state: 'paused'
- entity_id: 'media_player.shield'
prob_given_true: 0.9
platform: 'state'
to_state: 'playing'
- entity_id: 'media_player.shield'
prob_given_true: 0.75
platform: 'state'
to_state: 'paused'
- entity_id: 'switch.kevins_computer'
prob_given_true: 0.75
platform: 'state'
to_state: 'on'
- platform: bayesian
name: Kitchen Presence
prior: 0.40
observations:
- entity_id: 'binary_sensor.kitchen_motion_ext'
prob_given_true: 0.70
prob_given_false: 0.2
platform: 'state'
to_state: 'on'
- entity_id: 'binary_sensor.spare_room_motion_ext'
prob_given_true: 0.70
prob_given_false: 0.2