-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfiguration.yaml
More file actions
750 lines (668 loc) · 19.1 KB
/
configuration.yaml
File metadata and controls
750 lines (668 loc) · 19.1 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
homeassistant:
name: Home
latitude: 13.1186552
longitude: 80.1821839
elevation: 6.7
unit_system: metric
time_zone: Asia/Kolkata
customize: !include customize.yaml
automation:
########### Office Automations ###################
- alias: Office AC On
trigger:
platform: event
event_type: click
event_data:
entity_id: binary_sensor.switch_158d00013ed1ec
click_type: single
action:
service: climate.set_temperature
entity_id: climate.office
data:
temperature: 27
- alias: Office AC Off
trigger:
platform: event
event_type: click
event_data:
entity_id: binary_sensor.switch_158d00013ed1ec
click_type: double
action:
service: climate.set_temperature
entity_id: climate.office
data:
temperature: 33
- alias: Motion Detected Office
trigger:
platform: state
entity_id: binary_sensor.motion_sensor_158d00014dc19f
to: 'on'
condition:
condition: state
entity_id: binary_sensor.door_window_sensor_158d000153b115
state: 'off'
action:
service: climate.set_temperature
entity_id: climate.office
data:
temperature: 27
- alias: No Motion Detected Office
trigger:
platform: state
entity_id: binary_sensor.motion_sensor_158d00014dc19f
to: 'off'
for:
hours: 0
minutes: 5
seconds: 0
condition:
condition: state
entity_id: binary_sensor.door_window_sensor_158d000153b115
state: 'off'
action:
service: climate.set_temperature
entity_id: climate.office
data:
temperature: 33
- alias: Office Door Open
trigger:
platform: state
entity_id: binary_sensor.door_window_sensor_158d000153b115
to: 'on'
action:
service: climate.set_temperature
entity_id: climate.office
data:
temperature: 33
########### End Office Automations ###################
########### Hall Automations ###################
- alias: TV Toggle
trigger:
platform: event
event_type: click
event_data:
entity_id: binary_sensor.switch_158d00013f6c86
click_type: single
action:
service: switch.toggle
entity_id: switch.tv
- alias: Speaker Toggle
trigger:
platform: event
event_type: click
event_data:
entity_id: binary_sensor.switch_158d00013f6c86
click_type: double
action:
service: switch.toggle
entity_id: switch.speaker
########### End Hall Automations ###################
########### Bedroom Automations ###################
- alias: Bedroom AC On
trigger:
platform: event
event_type: click
event_data:
entity_id: binary_sensor.switch_158d00013ecf62
click_type: single
action:
service: climate.set_temperature
entity_id: climate.bedroom
data:
temperature: 28.5
- alias: Bedroom AC Off
trigger:
platform: event
event_type: click
event_data:
entity_id: binary_sensor.switch_158d00013ecf62
click_type: double
action:
service: climate.set_temperature
entity_id: climate.bedroom
data:
temperature: 33
- alias: Bedroom TV Toggle
trigger:
platform: event
event_type: click
event_data:
entity_id: binary_sensor.switch_158d00013ecf62
click_type: long_click_press
action:
service: switch.toggle
entity_id: switch.bedroom_tv
- alias: Shield Playing
trigger:
platform: state
entity_id: media_player.shield_2
to: 'playing'
condition:
condition: state
entity_id: group.bedroomdoors
state: 'off'
action:
service: climate.set_temperature
entity_id: climate.bedroom
data:
temperature: 28.5
- alias: Shield Playing Cast
trigger:
platform: state
entity_id: media_player.shield
to: 'playing'
condition:
condition: state
entity_id: group.bedroomdoors
state: 'off'
action:
service: climate.set_temperature
entity_id: climate.bedroom
data:
temperature: 28.5
- alias: Doors Open
trigger:
platform: state
entity_id: group.bedroomdoors
to: 'on'
for:
hours: 0
minutes: 0
seconds: 15
action:
service: climate.set_temperature
entity_id: climate.bedroom
data:
temperature: 33
- alias: Motion Detected bedroom
trigger:
platform: state
entity_id: binary_sensor.motion_sensor_158d0001188c87
to: 'on'
condition:
condition: state
entity_id: group.bedroomdoors
state: 'off'
for:
hours: 0
minutes: 0
seconds: 10
action:
service: climate.set_temperature
entity_id: climate.bedroom
data:
temperature: 28.5
- alias: No Motion Detected bedroom
trigger:
platform: state
entity_id: binary_sensor.motion_sensor_158d0001188c87
to: 'off'
for:
hours: 0
minutes: 10
seconds: 0
condition:
condition: state
entity_id: group.bedroomdoors
state: 'off'
for:
hours: 0
minutes: 0
seconds: 10
action:
service: climate.set_temperature
entity_id: climate.bedroom
data:
temperature: 33
- alias: Bedroom Door Open
trigger:
platform: state
entity_id: group.bedroomdoors
to: 'on'
action:
service: climate.set_temperature
entity_id: climate.bedroom
data:
temperature: 33
- alias: Bedroom Light On
trigger:
platform: state
entity_id: binary_sensor.motion_sensor_158d0001188c87
to: 'on'
action:
service: homeassistant.turn_on
entity_id: switch.bedroom_light
- alias: Bedroom Light Off
trigger:
platform: state
entity_id: binary_sensor.motion_sensor_158d0001188c87
to: 'off'
for:
seconds: 30
action:
service: homeassistant.turn_off
entity_id: switch.bedroom_light
- alias: Bedroom Fan On
trigger:
platform: state
entity_id: binary_sensor.motion_sensor_158d0001188c87
to: 'on'
action:
service: homeassistant.turn_on
entity_id: switch.bedroom_fan
- alias: Bedroom Fan Off
trigger:
platform: state
entity_id: binary_sensor.motion_sensor_158d0001188c87
to: 'off'
for:
minutes: 15
action:
service: homeassistant.turn_off
entity_id: switch.bedroom_fan
########### end Bedroom Automations ###################
########### Hall Automations ###################
- alias: Hall Light On
trigger:
platform: state
entity_id: binary_sensor.motion_sensor_158d00014d2d9e
to: 'on'
action:
service: homeassistant.turn_on
entity_id: switch.dining_light
- alias: Hall Light Off
trigger:
platform: state
entity_id: binary_sensor.motion_sensor_158d00014d2d9e
to: 'off'
for:
seconds: 120
action:
service: homeassistant.turn_off
entity_id: switch.dining_light
- alias: Hall Fan On
trigger:
platform: state
entity_id: binary_sensor.motion_sensor_158d00014d2d9e
to: 'on'
action:
service: homeassistant.turn_on
entity_id: group.livingroom_fans
- alias: Hall Fan Off
trigger:
platform: state
entity_id: binary_sensor.motion_sensor_158d00014d2d9e
to: 'off'
for:
minutes: 2
action:
service: homeassistant.turn_off
entity_id: group.livingroom_fans
########### end Bedroom Automations ###################
# Show links to resources in log and frontend
# introduction:
# Enables the frontend
frontend:
# Enables configuration UI
config:
# upnp:
http:
# Uncomment this to add a password (recommended!)
# api_password: xxxx
# Uncomment this if you are using SSL or running in Docker etc
# base_url: example.duckdns.org:8123
server_port: 45910
# Checks for available updates
updater:
discovery:
history:
logbook:
recorder:
sun:
xiaomi_aqara:
gateways:
- sid: f0b429cc3c21
key: 30xoisruepsy1zww
device_tracker:
- platform: bluetooth_tracker
zone:
name: Home
latitude: 13.122402
longitude: 80.1882175
radius: 250
icon: mdi:account-multiple
zone 2:
name: School
latitude: 13.09624
longitude: 80.1938443
icon: mdi:school
# This will override the default home zone
zone 3:
name: Alex
latitude: 13.099412
longitude: 80.194488
radius: 100
# Google Home example configuration.yaml entry
emulated_hue:
host_ip: 192.168.1.123
# type: google_home
# Google Home does not work on different ports.
# listen_port: 80
exposed_domains:
- light
mqtt:
embedded:
broker: 128.199.179.143
port: 1883
client_id: home-assistant-1
keepalive: 60
protocol: 3.1
# Weather Prediction
sensor:
- platform: yr
monitored_conditions:
- temperature
- humidity
scene:
- name: shieldplaying
entities:
light.sleeproom: off
fan.sleeproom_fan: on
switch.bedroom_ac: on
- name: shieldidle
entities:
light.sleeproom: off
fan.sleeproom_fan: off
switch.bedroom_ac: off
- name: shieldpause
entities:
light.sleeproom: on
fan.sleeproom_fan: on
switch.bedroom_ac: off
switch 50:
- platform: mqtt
name: "Bedroom light"
state_topic: "stat/bedroomlight/POWER"
command_topic: "cmnd/bedroomlight/POWER"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
switch 51:
- platform: mqtt
name: "Bedroom Fan"
state_topic: "stat/bedroomfan/POWER"
command_topic: "cmnd/bedroomfan/POWER"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
switch 52:
- platform: mqtt
name: "Masterbedroom Fan"
state_topic: "stat/masterbedroomfan/POWER"
command_topic: "cmnd/masterbedroomfan/POWER"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
switch 53:
- platform: mqtt
name: "Masterbedroom Light"
state_topic: "stat/masterbedroomlight/POWER"
command_topic: "cmnd/masterbedroomlight/POWER"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
switch 54:
- platform: mqtt
name: "Livingroom Light"
state_topic: "stat/livingroomlight/POWER"
command_topic: "cmnd/livingroomlight/POWER"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
switch 55:
- platform: mqtt
name: "Dining Light"
state_topic: "stat/dininglight/POWER"
command_topic: "cmnd/dininglight/POWER"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
switch 56:
- platform: mqtt
name: "Livingroom Fan"
state_topic: "stat/livingroomfan/POWER"
command_topic: "cmnd/livingroomfan/POWER"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
switch 57:
- platform: mqtt
name: "Dining Fan"
state_topic: "stat/diningfan/POWER"
command_topic: "cmnd/diningfan/POWER"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
switch 58:
- platform: mqtt
name: "Office Fan"
state_topic: "stat/officefan/POWER"
command_topic: "cmnd/officefan/POWER"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
switch 59:
- platform: mqtt
name: "Office Light"
state_topic: "stat/officelight/POWER"
command_topic: "cmnd/officelight/POWER"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
switch 60:
- platform: mqtt
name: "Kitchen Light"
state_topic: "stat/kitchenlight/POWER"
command_topic: "cmnd/kitchenlight/POWER"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
switch 1:
platform: broadlink
host: 192.168.1.117
mac: 'b4:43:0d:f9:1d:34'
timeout: 15
switches:
bedroomac:
friendly_name: "Bedroom AC"
command_on: 'JgDmAGc0ESMPJRIIEwgSCxEjEQgUCBMjDyUSCBIjDwwSCBMjESMSCBMjDyURCRIJEiMSCBMIFCMRCBELEggRDBIIEwgUCBIJEwgTCBQIEwgSCxEIEwkTCBANESMRCBMKEiMRCBMJEiMRIxIIEwgUCBMIEgsRCBMjEiMRIxEjDwwSCBAMEggTCBQIEwgUBxMIFAgTCBMKEggSCRMIEQwSCBELEggTCBQIEwgUBxMIFAgTCBMKEgcTCRMIEgoTCBELEggTCBQIEwgUBxMIFAgTCBMKEgcTCRMjESMRCRMjEQgTCRMiEgcUAA0FAAA='
command_off: 'JgDmAGQ2DyUPJRAMDwwPDBAkEAsQDA8lDyUQDA8lDwwQCxAkDyUQDA8lDyUQDA8LECUQCw8MECQQDA8MEAsQCxAMDwwQCxALEAwPDBAMDwsQDA8MDwwQDA8MEAsPDBAMDyUQDA8LECQQJBAMDwwQDA8LEQsPDBAMDyUPDBAkEAsQDA8MDw0PCxALEAwPDBALEAsQDA8MEAwPCxELDwwQDA8LEAwPDA8MEAwPDBALDwwQDA8MEAsQCxAMDwwQCxALDw0PDA8MEAsQCxAMDwwQDA8LEQsPDBAMDyUPDBALDwwQDA8lDwwQAA0FAAA='
switch 2:
platform: broadlink
host: 192.168.1.105
mac: '34:ea:34:e0:bf:e3'
timeout: 15
switches:
workstationac:
friendly_name: "Workstation AC"
command_on: 'JgDmAGc0ESMPJRIIEwgSCxEjEQgUCBMjDyUSCBIjDwwSCBMjESMSCBMjDyURCRIJEiMSCBMIFCMRCBELEggRDBIIEwgUCBIJEwgTCBQIEwgSCxEIEwkTCBANESMRCBMKEiMRCBMJEiMRIxIIEwgUCBMIEgsRCBMjEiMRIxEjDwwSCBAMEggTCBQIEwgUBxMIFAgTCBMKEggSCRMIEQwSCBELEggTCBQIEwgUBxMIFAgTCBMKEgcTCRMIEgoTCBELEggTCBQIEwgUBxMIFAgTCBMKEgcTCRMjESMRCRMjEQgTCRMiEgcUAA0FAAA='
command_off: 'JgDmAGQ2DyUPJRAMDwwPDBAkEAsQDA8lDyUQDA8lDwwQCxAkDyUQDA8lDyUQDA8LECUQCw8MECQQDA8MEAsQCxAMDwwQCxALEAwPDBAMDwsQDA8MDwwQDA8MEAsPDBAMDyUQDA8LECQQJBAMDwwQDA8LEQsPDBAMDyUPDBAkEAsQDA8MDw0PCxALEAwPDBALEAsQDA8MEAwPCxELDwwQDA8LEAwPDA8MEAwPDBALDwwQDA8MEAsQCxAMDwwQCxALDw0PDA8MEAsQCxAMDwwQDA8LEQsPDBAMDyUPDBALDwwQDA8lDwwQAA0FAAA='
switch 3:
platform: broadlink
host: 192.168.1.103
mac: '34:ea:34:e0:bf:e0'
timeout: 15
switches:
masterbedroomac:
friendly_name: "Master Bedroom AC"
command_on: 'JgDmAGc0ESMPJRIIEwgSCxEjEQgUCBMjDyUSCBIjDwwSCBMjESMSCBMjDyURCRIJEiMSCBMIFCMRCBELEggRDBIIEwgUCBIJEwgTCBQIEwgSCxEIEwkTCBANESMRCBMKEiMRCBMJEiMRIxIIEwgUCBMIEgsRCBMjEiMRIxEjDwwSCBAMEggTCBQIEwgUBxMIFAgTCBMKEggSCRMIEQwSCBELEggTCBQIEwgUBxMIFAgTCBMKEgcTCRMIEgoTCBELEggTCBQIEwgUBxMIFAgTCBMKEgcTCRMjESMRCRMjEQgTCRMiEgcUAA0FAAA='
command_off: 'JgDmAGQ2DyUPJRAMDwwPDBAkEAsQDA8lDyUQDA8lDwwQCxAkDyUQDA8lDyUQDA8LECUQCw8MECQQDA8MEAsQCxAMDwwQCxALEAwPDBAMDwsQDA8MDwwQDA8MEAsPDBAMDyUQDA8LECQQJBAMDwwQDA8LEQsPDBAMDyUPDBAkEAsQDA8MDw0PCxALEAwPDBALEAsQDA8MEAwPCxELDwwQDA8LEAwPDA8MEAwPDBALDwwQDA8MEAsQCxAMDwwQCxALDw0PDA8MEAsQCxAMDwwQDA8LEQsPDBAMDyUPDBALDwwQDA8lDwwQAA0FAAA='
switch 4:
platform: broadlink
host: 192.168.1.112
mac: 'B4:43:0D:F9:2A:C0'
timeout: 15
switches:
livingroomtv:
friendly_name: "TV"
command_on: 'JgBQAAABJ5ATEBQQFDUUNRMRExAUNRQQFDUUEBM2ExAUEBQ1FDUUEBQQEzYTEBQ1FBATERMQFBAUNRQQFDUUEBM1FDUUNRQ1FQAFZQABJ0cVAA0FAAAAAAAAAAA='
command_off: 'JgBGAJGREjUSNBI1EhASEBEREhETEhI1EjQSNRIQEhARERIQEhASNRIQEhASNRI1ERESEBA5EhASNRI0EhASERE1EjUSEBEADQUAAA=='
switch 5:
platform: broadlink
host: 192.168.1.112
mac: 'B4:43:0D:F9:2A:C0'
timeout: 15
switches:
speaker:
friendly_name: "Speaker"
command_on: 'JgBQAAABKJIVEBM2ExITERMSExMSEhMSEhITEhMSExETExI2ExITNhMSExITEhMSEhITEhMSEzYTNhM2EzYTNxM2EzYTNhMSEwAF3QABJ0kTAA0FAAAAAAAAAAA='
command_off: 'JgBQAAABKJIVEBM2ExITERMSExMSEhMSEhITEhMSExETExI2ExITNhMSExITEhMSEhITEhMSEzYTNhM2EzYTNxM2EzYTNhMSEwAF3QABJ0kTAA0FAAAAAAAAAAA='
switch 6:
- platform: wake_on_lan
name: Hyperstone
mac_address: '60:A4:4C:5B:DE:27'
host: 192.168.1.201
turn_off:
service: hassio.addon_stdin
data:
addon: core_rpc_shutdown
input: Hyperstone
switch 7:
- platform: wake_on_lan
name: Haste
mac_address: '38:D5:47:13:8C:B5'
host: 192.168.1.200
turn_off:
service: hassio.addon_stdin
data:
addon: core_rpc_shutdown
input: Haste
switch 8:
platform: broadlink
host: 192.168.1.117
mac: 'b4:43:0d:f9:1d:34'
timeout: 15
switches:
bedroomac:
friendly_name: "Bedroom TV"
command_on: 'JgA+AJGSEjUSOwk3ERESEREREUEFNxI0EzQRGAwPEhASEBJZDhISEBI1DjoOExASETUQXw82ERERXgo2EhAWAA0FAAAAAAAAAAAAAA=='
command_off: 'JgBGAJOSETYPNxA3ERAQERASERAREBA8EDYQOBAREBESDxEQEBEREA8TEBERNRA3EREREA83ETYVNg83EREPEhA3DzgPERAADQUAAA=='
group:
default_view:
view: yes
entities:
# - group.ETA
# - group.TRACK
- group.climate
- group.ac
- group.pc
- group.light
- group.tv
- alarm_control_panel.home_alarm
- group.bedroom
- group.masterbedroom
- group.livingroom
- group.office
# - group.tranmission
# - group.scenes
# - camera.livingroom
- switch.tv
- switch.speaker
Climate: climate.bedroom,climate.masterbedroom,climate.office
Weather: sensor.yr_temperature,sensor.yr_humidity,sun.sun
Bedroom: switch.bedroom_light,switch.bedroom_fan,switch.bedroom_ac
Masterbedroom: switch.masterbedroom_light,switch.masterbedroom_fan,switch.masterbedroom_ac
LivingRoom: switch.livingroom_light,switch.dining_light,switch.livingroom_fan,switch.dining_fan
Office: switch.office_light,switch.office_fan
# Transmission: sensor.transmission_status,sensor.transmission_down_speed,sensor.transmission_up_speed
# Track: device_tracker.john_john,device_tracker.kevin_kevin,device_tracker.sheeba_sheeba
# ETA: sensor.john,sensor.sheeba,sensor.kevin
# Scenes: input_boolean.sleepmode,scene.shieldplaying
Doors: binary_sensor.door_window_sensor_158d0001112dc9,binary_sensor.door_window_sensor_158d00013079a3,binary_sensor.door_window_sensor_158d000149abd8,binary_sensor.door_window_sensor_158d00014db6ab,binary_sensor.door_window_sensor_158d00014db7e3,binary_sensor.door_window_sensor_158d00014db937,binary_sensor.door_window_sensor_158d000153afa8,binary_sensor.door_window_sensor_158d000153b0ac,binary_sensor.door_window_sensor_158d000153b115,binary_sensor.door_window_sensor_158d0001596881
LivingRoom Fans: switch.livingroom_fan,switch.dining_fan
BedroomDoors: binary_sensor.door_window_sensor_158d00013079a3,binary_sensor.door_window_sensor_158d00014db937
LivingRoomRemote: switch.tv,switch.speaker
Temperature: sensor.temperature_158d000156a522,sensor.temperature_158d00012d9bc8,sensor.temperature_158d00012d9bb8,sensor.temperature_158d00012cbd72
Motion: binary_sensor.motion_sensor_158d0001188c87,binary_sensor.motion_sensor_158d00014d2d9e,binary_sensor.motion_sensor_158d00014dc19f,binary_sensor.motion_sensor_158d00014dc360,binary_sensor.motion_sensor_158d00014dc5e9
PC: switch.haste,switch.hyperstone
AC: switch.bedroom_ac,switch.workstation_ac,switch.master_bedroom_ac
TVs: switch.speaker,switch.tv
Sensors:
view: yes
entities:
- group.motion
- group.temperature
- group.doors
climate:
- platform: generic_thermostat
name: Bedroom
ac_mode: 1
heater: switch.bedroom_ac
target_sensor: sensor.temperature_158d000156a522
min_temp: 20
max_temp: 35
target_temp: 33
tolerance: 0.3
min_cycle_duration:
seconds: 5
keep_alive:
minutes: 10
- platform: generic_thermostat
name: Office
ac_mode: 1
heater: switch.workstation_ac
target_sensor: sensor.temperature_158d00012cbd72
min_temp: 20
max_temp: 35
target_temp: 33
tolerance: 0.3
min_cycle_duration:
seconds: 5
keep_alive:
minutes: 10
- platform: generic_thermostat
name: Masterbedroom
ac_mode: 1
heater: switch.master_bedroom_ac
target_sensor: sensor.temperature_158d00012d9bc8
min_temp: 20
max_temp: 35
target_temp: 33
tolerance: 0.3
min_cycle_duration:
seconds: 5
keep_alive:
minutes: 10
script:
acsleep:
alias: acsleep
sequence:
- alias: acon
service: homeassistant.turn_on
data:
entity_id: switch.bedroom_ac
- delay:
# time for flash light on
minutes: 40
- alias: acoff
service: homeassistant.turn_off
data:
entity_id: switch.bedroom_ac
- delay:
# time for flash light off
minutes: 20
- alias: loop
service: script.turn_on
data:
entity_id: script.acsleep