-
Notifications
You must be signed in to change notification settings - Fork 4
/
configuration.yaml
1595 lines (1519 loc) · 47 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 lat
longitude: !secret long
# Impacts weather/sunrise data (altitude above sea level in meters)
elevation: 1556
# 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/Denver
# UI
customize: !include customize.yaml
weather:
- platform: darksky
api_key: !secret darksky
panel_iframe:
tasmoadmin:
title: 'TasmoAdmin'
icon: 'mdi:robot'
url: 'http://192.168.1.71:9541/'
# ide:
# title: 'IDE'
# icon: 'mdi:bomb'
# url: 'http://192.168.1.71:8321/'
nodered:
title: 'Node-Red'
icon: 'mdi:shuffle-variant'
url: 'http://192.168.1.71:1880/'
influxdb:
title: InfluxDB
icon: mdi:chart-areaspline
url: http://192.168.1.71:8888
# panel_custom:
# - name: floorplan
# sidebar_title: Floorplan
# sidebar_icon: mdi:home
# url_path: floorplan
# config: !include floorplan.yaml
zone: !include zones.yaml
######################################
mqtt:
broker: 192.168.1.71
port: 1883
client_id: home-assistant-1
username: !secret mqtt_user
password: !secret mqtt_pw
discovery: true
discovery_prefix: homeassistant
###################################################
##### OctoPrint #####
###################################################
#### Octoprint Server ####
octoprint:
host: 192.168.1.17
api_key: !secret octopi_key
###################################################
##### Web Camera #####
###################################################
ffmpeg:
camera:
# - platform: generic
# name: Friends Around the World
# still_image_url: https://www.google.com/maps/d/embed?mid=1sj3geKvWxU39VYUU5OSnp0_HaKJrqcwa
# limit_refresh_to_url_change: true
- platform: foscam
ip: 192.168.1.38
username: !secret foscam_user
password: !secret foscam_pw
# - platform: ring
- platform: mjpeg
mjpeg_url: http://192.168.1.17:8080/?action=stream/
name: _OctoPrint
- platform: amcrest
# - platform: arlo
# - platform: ffmpeg
# input:
amcrest:
- host: 192.168.1.38
username: admin
password: !secret foscam_pw
#################################################
##### Konnected Alarm ###########################
#################################################
konnected:
access_token: !secret konnected_token
api_host: http://192.168.1.71:8123
devices:
- id: dc4f220fb4c4
binary_sensors:
- zone: 1
type: door
name: Front Door
- zone: 2
type: door
name: Garage Entry
- zone: 3
type: door
name: Kitchen Door
- zone: 4
type: window
name: Kitchen Windows
- zone: 5
type: window
name: Front Windows
- zone: 6
type: window
name: Master Bath
- id: dc4f220fb350
binary_sensors:
- zone: 1
type: window
name: Master Bedroom
- zone: 2
type: window
name: Theater Windows
- zone: 3
type: door
name: Basement Doors
- zone: 4
type: window
name: Hafens Room
- zone: 5
type: window
name: Grandmas Room
- zone: 6
type: window
name: Gym Window
alarm_control_panel:
- platform: manual
name: Alarm
code: !secret alarm_code
trigger_time: 300
disarmed:
trigger_time: 0
armed_home:
delay_time: 0
pending_time: 0
armed_away:
delay_time: 60
pending_time: 30
triggered:
pending_time: 0
#######################################
############## Holiday Outside Lights ######
#######################################
light:
- platform: mqtt
name: "Boys Closet" #B1 in the closet
command_topic: "cmnd/Boys_Closet/power"
state_topic: "stat/Boys_Closet/POWER"
rgb_state_topic: "stat/Boys_Closet/color"
rgb_command_topic: "cmnd/Boys_Closet/color"
brightness_state_topic: "stat/Boys_Closet/dimmer"
brightness_command_topic: "cmnd/Boys_Closet/dimmer"
color_temp_state_topic: "stat/Boys_Closet/CT"
color_temp_command_topic: "cmnd/Boys_Closet/CT"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: false
- platform: mqtt
name: "Holiday Lights"
command_topic: "bruh/mqttstrip/setpower"
state_topic: "bruh/mqttstrip/setpowerpub"
rgb_state_topic: "bruh/mqttstrip/setcolorpub"
rgb_command_topic: "bruh/mqttstrip/setcolor"
brightness_state_topic: "bruh/mqttstrip/setbrightnesspub"
brightness_command_topic: "bruh/mqttstrip/setbrightness"
optimistic: false
- platform: mqtt
name: "Side Lights"
command_topic: "bruh/mqttstripSide/setpower"
state_topic: "bruh/mqttstripSide/setpowerpub"
rgb_state_topic: "bruh/mqttstripSide/setcolorpub"
rgb_command_topic: "bruh/mqttstripSide/setcolor"
brightness_state_topic: "bruh/mqttstripSide/setbrightnesspub"
brightness_command_topic: "bruh/mqttstripSide/setbrightness"
optimistic: false
- platform: mqtt
name: "Office Test Lights"
command_topic: "bruh/mqttstripTEST/setpower"
state_topic: "bruh/mqttstripTEST/setpowerpub"
rgb_state_topic: "bruh/mqttstripTEST/setcolorpub"
rgb_command_topic: "bruh/mqttstripTEST/setcolor"
brightness_state_topic: "bruh/mqttstripTEST/setbrightnesspub"
brightness_command_topic: "bruh/mqttstripTEST/setbrightness"
optimistic: false
- platform: mqtt
name: "Tree Lights"
command_topic: "bruh/mqttstripTree/setpower"
state_topic: "bruh/mqttstripTree/setpowerpub"
rgb_state_topic: "bruh/mqttstripTree/setcolorpub"
rgb_command_topic: "bruh/mqttstripTree/setcolor"
brightness_state_topic: "bruh/mqttstripTree/setbrightnesspub"
brightness_command_topic: "bruh/mqttstripTree/setbrightness"
optimistic: false
- platform: mqtt
name: "Magic Box"
command_topic: "bruh/mqttstripBox/setpower"
state_topic: "bruh/mqttstripBox/setpowerpub"
rgb_state_topic: "bruh/mqttstripBox/setcolorpub"
rgb_command_topic: "bruh/mqttstripBox/setcolor"
brightness_state_topic: "bruh/mqttstripBox/setbrightnesspub"
brightness_command_topic: "bruh/mqttstripBox/setbrightness"
optimistic: false
input_select:
desk_leds:
name: Desk LEDs
options:
- "Blue"
- "Maize"
- "Green"
- "Red"
- "Smooth"
#input_select:
projector_input:
name: Projector Input
options:
- "Roku" #VCR
- "Cable" #CBL
- "DVD" #Game
- "extra" #BD
holiday_led_effect:
name: Holiday LED Effect
options:
- "Christmas"
- "Candy Cane"
- "Holly Jolly"
- "Valentine"
- "Lovey Day"
- "St Patty"
- "Easter"
- "USA"
- "Independence"
- "Go Blue"
- "Hail"
- "Touchdown"
- "Halloween"
- "Punkin"
- "Thanksgiving"
- "Turkey Day"
- "BPM"
- "Confetti"
- "Cyclon Rainbow"
- "Dots"
- "Fire"
- "Glitter"
- "Juggle"
- "Lightning"
- "Police All"
- "Police One"
- "Rainbow"
- "Rainbow with Glitter"
- "Ripple"
- "Sinelon"
- "Solid"
- "Twinkle"
initial: "Solid"
side_led_effect:
name: Side LED Effect
options:
- "Christmas"
- "Candy Cane"
- "Holly Jolly"
- "Valentine"
- "Lovey Day"
- "St Patty"
- "Easter"
- "USA"
- "Independence"
- "Go Blue"
- "Hail"
- "Touchdown"
- "Halloween"
- "Punkin"
- "Thanksgiving"
- "Turkey Day"
- "BPM"
- "Confetti"
- "Cyclon Rainbow"
- "Dots"
- "Fire"
- "Glitter"
- "Juggle"
- "Lightning"
- "Police All"
- "Police One"
- "Rainbow"
- "Rainbow with Glitter"
- "Ripple"
- "Sinelon"
- "Solid"
- "Twinkle"
initial: "Solid"
all_leds:
name: All LEDs
options:
- "Christmas"
- "Candy Cane"
- "Holly Jolly"
- "Valentine"
- "Lovey Day"
- "St Patty"
- "Easter"
- "USA"
- "Independence"
- "Go Blue"
- "Hail"
- "Touchdown"
- "Halloween"
- "Punkin"
- "Thanksgiving"
- "Turkey Day"
- "BPM"
- "Confetti"
- "Cyclon Rainbow"
- "Dots"
- "Fire"
- "Glitter"
- "Juggle"
- "Lightning"
- "Police All"
- "Police One"
- "Rainbow"
- "Rainbow with Glitter"
- "Ripple"
- "Sinelon"
- "Solid"
- "Twinkle"
initial: "Solid"
office_test_led_effect:
name: Office Test LED Effect
options:
- "Christmas"
- "Candy Cane"
- "Holly Jolly"
- "Valentine"
- "Lovey Day"
- "St Patty"
- "Easter"
- "USA"
- "Independence"
- "Go Blue"
- "Hail"
- "Touchdown"
- "Halloween"
- "Punkin"
- "Thanksgiving"
- "Turkey Day"
- "BPM"
- "Confetti"
- "Cyclon Rainbow"
- "Dots"
- "Fire"
- "Glitter"
- "Juggle"
- "Lightning"
- "Police All"
- "Police One"
- "Rainbow"
- "Rainbow with Glitter"
- "Ripple"
- "Sinelon"
- "Solid"
- "Twinkle"
initial: "Solid"
tree_led_effect:
name: Tree LED Effect
options:
- "Christmas"
- "Candy Cane"
- "Holly Jolly"
- "Valentine"
- "Lovey Day"
- "St Patty"
- "Easter"
- "USA"
- "Independence"
- "Go Blue"
- "Hail"
- "Touchdown"
- "Halloween"
- "Punkin"
- "Thanksgiving"
- "Turkey Day"
- "BPM"
- "Confetti"
- "Cyclon Rainbow"
- "Dots"
- "Fire"
- "Glitter"
- "Juggle"
- "Lightning"
- "Police All"
- "Police One"
- "Rainbow"
- "Rainbow with Glitter"
- "Ripple"
- "Sinelon"
- "Solid"
- "Twinkle"
initial: "Solid"
box_led_effect:
name: Magic Box Effect
options:
- "Christmas"
- "Candy Cane"
- "Holly Jolly"
- "Valentine"
- "Lovey Day"
- "St Patty"
- "Easter"
- "USA"
- "Independence"
- "Go Blue"
- "Hail"
- "Touchdown"
- "Halloween"
- "Punkin"
- "Thanksgiving"
- "Turkey Day"
- "BPM"
- "Confetti"
- "Cyclon Rainbow"
- "Dots"
- "Fire"
- "Glitter"
- "Juggle"
- "Lightning"
- "Police All"
- "Police One"
- "Rainbow"
- "Rainbow with Glitter"
- "Ripple"
- "Sinelon"
- "Solid"
- "Twinkle"
initial: "Rainbow"
# hass_theme:
# name: HASS themes
# options:
# - default
# - solarized
# - PmxMononight
# - wood
# - Christmas
# - Tester
# initial: wood
# icon: mdi:theme-light-dark
# spotify_playlist:
# name: 'Playlist:'
# options:
# - Piano Guys
# - Kidz Bop
# - LDS Music
# - Broadway
# - Hair Bands
# - Elvis
# - MJ
# - Metallica
# - Country
# - Daddy
# icon: mdi:spotify
# spotify_source:
# name: 'Source:'
# options:
# - AudioCast
# initial: AudioCast
# icon: mdi:speaker-wireless
input_number:
# spotify_volume:
# name: Volume
# icon: mdi:volume-high
# min: 0
# max: 1
# step: 0.05
animation_speed:
name: Animation Speed
initial: 150
min: 1
max: 150
step: 10
all_animation_speed:
name: All Animation Speed
initial: 150
min: 1
max: 150
step: 10
side_animation_speed:
name: Side Animation Speed
initial: 150
min: 1
max: 150
step: 10
test_animation_speed:
name: Test Animation Speed
initial: 150
min: 1
max: 150
step: 10
tree_animation_speed:
name: Tree Animation Speed
initial: 150
min: 1
max: 150
step: 10
box_animation_speed:
name: Box Animation Speed
initial: 150
min: 1
max: 150
step: 10
# Enables the frontend
frontend:
themes: !include_dir_merge_named themes/
# extra_html_url:
# - /local/custom_ui/state-card-floorplan.html
http:
# Uncomment this to add a password (recommended!)
api_password: !secret http_password
# Uncomment this if you are using SSL or running in Docker etc
base_url: !secret http_url
# Checks for available updates
updater:
# Blink security camera system
blink:
username: !secret blink_user
password: !secret blink_pw
# 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:
history_graph:
gr1:
name: Xbox
entities:
- sensor.i_am_zerp
- sensor.bearbait16
- sensor.dr_zzs
hours_to_show: 168
refresh: 3600
# View all events in a logbook
logbook:
# Track the sun
sun:
# Weather Prediction
###################################################
##### Sensors #####
###################################################
sensor:
- platform: min_max
name: "Average Upstairs Temp"
type: "mean"
round_digits: 1
entity_ids:
- sensor.blink_toy_room_temperature
- sensor.blink_mountain_room_temperature
- sensor.upstairs_temp
- sensor.boys_room_temp
- sensor.girls_room_temp
- platform: min_max
name: "Average Kids Temp"
type: "mean"
round_digits: 1
entity_ids:
- sensor.boys_room_temp
- sensor.girls_room_temp
- sensor.blink_mountain_room_temperature
- platform: min_max
name: "Average Main Temp"
type: "mean"
round_digits: 1
entity_ids:
- sensor.master_bedroom_temp
- sensor.blink_piano_room_temperature
- sensor.kitchen_temp
- platform: mqtt
state_topic: 'tele/masterBR/SENSOR'
name: 'Master Bedroom Temp' #AM2301
unit_of_measurement: '°F'
value_template: '{{ value_json.AM2301.Temperature }}'
- platform: mqtt
state_topic: 'tele/GarageLights/SENSOR'
name: 'Kitchen Temp' #AM2301
unit_of_measurement: '°F'
value_template: '{{ value_json.AM2301.Temperature }}'
- platform: mqtt
state_topic: 'tele/boys/SENSOR'
name: 'Boys Room Temp' #AM2301
unit_of_measurement: '°F'
value_template: '{{ value_json.AM2301.Temperature }}'
- platform: mqtt
state_topic: 'tele/T1_US/SENSOR'
name: 'Girls Room Temp' #AM2301
unit_of_measurement: '°F'
value_template: '{{ value_json.AM2301.Temperature }}'
- platform: mqtt
state_topic: 'tele/officecrown/SENSOR'
name: 'Office Temp' #AM2301
unit_of_measurement: '°F'
value_template: '{{ value_json.AM2301.Temperature }}'
- platform: mqtt
state_topic: 'tele/ThermoZztat/SENSOR'
name: 'Upstairs Temp' #AM2301
unit_of_measurement: '°F'
value_template: '{{ value_json.AM2301.Temperature }}'
- platform: mqtt
state_topic: 'tele/ThermoZztat/SENSOR'
name: 'Upstairs Humidity'
unit_of_measurement: '%'
value_template: '{{ value_json.AM2301.Humidity }}'
# - platform: mqtt
# name: "Sub Count"
# state_topic: "youtubesubs/number"
# - platform: mqtt
# name: "Subs New"
# state_topic: "youtubesubs/change"
- platform: pvoutput
system_id: 61105
api_key: !secret Solar_API
scan_interval: 150
- platform: template
sensors:
# power_consumption:
# value_template: '{% if is_state_attr("sensor.pvoutput", "power_consumption", "NaN") %}0{% else %}{{ states.sensor.pvoutput.attributes.power_consumption }}{% endif %}'
# friendly_name: 'Using'
# unit_of_measurement: 'Watt'
# energy_consumption:
# value_template: '{{ "%0.1f"|format(states.sensor.pvoutput.attributes.energy_consumption|float/1000) }}'
# friendly_name: 'Used'
# unit_of_measurement: 'kWh'
power_generation:
value_template: '{% if is_state_attr("sensor.pvoutput", "power_generation", "NaN") %}0{% else %}{{ states.sensor.pvoutput.attributes.power_generation }}{% endif %}'
friendly_name: 'Generating'
unit_of_measurement: 'Watt'
energy_generation:
value_template: '{% if is_state_attr("sensor.pvoutput", "energy_generation", "NaN") %}0{% else %}{{ "%0.2f"|format(states.sensor.pvoutput.attributes.energy_generation|float/1000) }}{% endif %}'
friendly_name: 'Generated'
unit_of_measurement: 'kWh'
- platform: socialblade
channel_id: !secret socialblade
- platform: google_wifi
host: 192.168.1.1
name: Internet
- platform: mqtt
name: POW Current
state_topic: "stat/Taz_5/STATUS10"
value_template: "{{ value_json.StatusSNS.ENERGY.Current }}"
unit_of_measurement: 'amps'
- platform: mqtt
name: POW Power
state_topic: "stat/Taz_5/STATUS10"
value_template: "{{ value_json.StatusSNS.ENERGY.Power }}"
unit_of_measurement: 'watts'
- platform: mqtt
name: POW Voltage
state_topic: "stat/Taz_5/STATUS10"
value_template: "{{ value_json.StatusSNS.ENERGY.Voltage }}"
unit_of_measurement: 'volts'
- platform: history_stats
name: Zach Xbox
entity_id: sensor.i_am_zerp
state: 'Online'
type: time
start: '{{ as_timestamp( now().replace(hour=0).replace(minute=0).replace(second=0) ) - now().weekday() * 86400 }}'
end: '{{ now() }}'
- platform: history_stats
name: Jackson Xbox
entity_id: sensor.bearbait16
state: 'Online'
type: time
start: '{{ as_timestamp( now().replace(hour=0).replace(minute=0).replace(second=0) ) - now().weekday() * 86400 }}'
end: '{{ now() }}'
- platform: history_stats
name: DrZzs Xbox
entity_id: sensor.dr_zzs
state: 'Online'
type: time
start: '{{ as_timestamp( now().replace(hour=0).replace(minute=0).replace(second=0) ) - now().weekday() * 86400 }}'
end: '{{ now() }}'
- platform: history_stats
name: Work Week
entity_id: device_tracker.justin_iphone7
state: 'Work'
type: time
end: '{{ now().replace(hour=0).replace(minute=0).replace(second=0) }}'
duration:
days: 8
- platform: history_stats
name: Work Month
entity_id: device_tracker.justin_iphone7
state: 'Work'
type: time
end: '{{ now().replace(hour=0).replace(minute=0).replace(second=0) }}'
duration:
days: 30
- platform: xbox_live
api_key: !secret xboxapi_token
xuid:
- !secret DrZzs
- !secret IROTRAS
- !secret Zerp
- !secret BearBait
- !secret BlueMan
- platform: statistics
name: Leaf Watts Added
entity_id: sensor.adensville_energy_added
value_template: '{{ (states("sensor.adensville_energy_added") | int / 1000) }}'
- platform: ring
- platform: time_date
display_options:
- 'date_time'
# Weather
- platform: yr
monitored_conditions:
- temperature
- symbol
#### Templates ####
- platform: template
sensors:
# 3D Printer sensors
# hotend:
# friendly_name: 'Hotend'
# value_template: '{{ ((states.sensor.octoprint_actual_tool0_temp.state | float-32) | float*(5/9)) | round(1) }}'
# # NOT WORKING - unit_of_measurement: "°C"
# bed:
# friendly_name: "Bed"
# value_template: '{{ ((states.sensor.octoprint_actual_bed_temp.state | float-32) | float*(5/9)) | round(1) }}'
# # NOT WORKING - unit_of_measurement: "°C"
printing_status:
friendly_name: 'Printing Status'
value_template: '{{states.binary_sensor.octoprint_printing.state}}'
icon_template: '{% if is_state("binary_sensor.octoprint_printing", "off") %}mdi:sleep{% else %}mdi:printer-3d{% endif %}'
# printing_error_status:
# friendly_name: 'Printing Error Status'
# value_template: '{{states.binary_sensor.octoprint_printing_error.state}}'
# icon_template: '{% if is_state("binary_sensor.octoprint_printing_error", "off") %}mdi:thumb-up-outline{% else %}mdi:thumb-down{% endif %}'
#OctoPrint
- platform: octoprint
name: OctoPrint
monitored_conditions:
- Current State
# - Temperatures
- Job Percentage
# Time and Date
- platform: time_date
display_options:
#- 'time'
#- 'date'
#- 'beat'
###################################################
##### Binary Sensors #####
###################################################
binary_sensor:
- platform: mqtt
name: "Boys Toilet"
state_topic: "tele/RF_Bridge/RESULT"
value_template: '{{value_json.RfReceived.Data}}'
payload_on: "0F800E"
payload_off: "0F800A"
optimistic: false
qos: 1
retain: false
- platform: mqtt
name: "Main Toilet"
state_topic: "tele/RF_Bridge/RESULT"
value_template: '{{value_json.RfReceived.Data}}'
payload_on: "F7EF0E"
payload_off: "F7EF0A"
optimistic: false
qos: 1
retain: false
- platform: mqtt
name: "Master Toilet"
state_topic: "tele/RF_Bridge/RESULT"
value_template: '{{value_json.RfReceived.Data}}'
payload_on: "0DC30E"
payload_off: "0DC30A"
optimistic: false
qos: 1
retain: false
- platform: mqtt
state_topic: "tele/RF_Bridge/RESULT"
name: 'Garage Motion'
value_template: '{{value_json.RfReceived.Data}}'
payload_on: 'D54C1E'
payload_off: 'D54C1Eoff'
device_class: motion
optimistic: false
qos: 1
retain: false
- platform: mqtt
name: "Garage Fridge"
state_topic: "tele/RF_Bridge/RESULT"
value_template: '{{value_json.RfReceived.Data}}'
payload_on: "DF000A"
payload_off: "DF000E"
device_class: Cold
optimistic: false
qos: 1
retain: false
- platform: mqtt
name: "Shop Door"
state_topic: "tele/RF_Bridge/RESULT"
value_template: '{{value_json.RfReceived.Data}}'
payload_on: "F8030A"
payload_off: "F8030E"
device_class: Door
optimistic: false
qos: 1
retain: false
- platform: mqtt
name: "Basment Water"
state_topic: "tele/RF_Bridge/RESULT"
value_template: '{{value_json.RfReceived.Data}}'
payload_on: "84B90E"
device_class: Moisture
optimistic: false
qos: 1
retain: false
- platform: mqtt
name: "Office Wand"
state_topic: "tele/RF_Bridge/RESULT"
value_template: '{{value_json.RfReceived.Data}}'
payload_on: "D31421"
payload_off: "D31421off"
qos: 1
retain: false
- platform: mqtt
name: "Office Book"
state_topic: "tele/RF_Bridge/RESULT"
value_template: '{{value_json.RfReceived.Data}}'
payload_on: "C7C2A1"
payload_off: "C7C2A19off"
qos: 1
retain: false
# - platform: mqtt
# state_topic: dummy/floorplan/sensor
# name: Floorplan
- platform: ring
- platform: octoprint
monitored_conditions:
- Printing
- Printing Error
#########################################
################ Sonoffs & Switches ########
#########################################
switch:
- platform: mqtt
name: "Master Lights"
command_topic: "cmnd/Master_Lights/power3"
state_topic: "stat/Master_Lights/POWER3"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: false
- platform: mqtt
name: "Master Fan"
command_topic: "cmnd/Master_Lights/power2"
state_topic: "stat/Master_Lights/POWER2"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: false
- platform: mqtt
name: "Master Fire"
command_topic: "cmnd/Master_Lights/power1"
state_topic: "stat/Master_Lights/POWER1"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: false
- platform: mqtt
name: "Boys Bathroom Lock"
command_topic: "cmnd/Boys_Bathroom_Lock/power"
state_topic: "stat/Boys_Bathroom_Lock/POWER"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: false
- platform: mqtt
name: "Upstairs Fan"
command_topic: "cmnd/ThermoZztat/POWER1"
state_topic: "stat/ThermoZztat/POWER1"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: false
- platform: mqtt
name: "Upstairs AC"
command_topic: "cmnd/ThermoZztat/POWER2"
state_topic: "stat/ThermoZztat/POWER2"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: false
- platform: mqtt
name: "Upstairs Furnace"
command_topic: "cmnd/ThermoZztat/POWER3"
state_topic: "stat/ThermoZztat/POWER3"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: false
- platform: mqtt
name: "Kids Bedroom Heat"
command_topic: "cmnd/Radiant_Heat/POWER7"
state_topic: "stat/Radiant_Heat/POWER7"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: false
- platform: mqtt
name: "Toy Room Heat"
command_topic: "cmnd/Radiant_Heat/POWER6"
state_topic: "stat/Radiant_Heat/POWER6"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: false
- platform: mqtt
name: "Main Floor Fan"
command_topic: "cmnd/MainAC/POWER1"
state_topic: "stat/MainAC/POWER1"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: false
- platform: mqtt
name: "Main Floor AC"
command_topic: "cmnd/MainAC/POWER2"
state_topic: "stat/MainAC/POWER2"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: false
- platform: mqtt
name: "Main Floor Heat"
command_topic: "cmnd/MainAC/POWER3"
state_topic: "stat/MainAC/POWER3"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: false
- platform: mqtt
name: "Master Bedroom Heat"
command_topic: "cmnd/Radiant_Heat/POWER1"