forked from Yonsm/.homeassistant
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfiguration.yaml
More file actions
executable file
·652 lines (611 loc) · 24.1 KB
/
configuration.yaml
File metadata and controls
executable file
·652 lines (611 loc) · 24.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
homeassistant:
name: 物联智能
latitude: 30.23927
longitude: 120.05633
elevation: 32
unit_system: metric
time_zone: Asia/Shanghai
customize: !include customize.yaml
logger:
default: warning
logs:
custom_components.sensor.aircat: debug
system_health:
frontend:
config:
http:
base_url: !secret http_base_url
ssl_key: ~/.homeassistant/privkey.pem
ssl_certificate: ~/.homeassistant/fullchain.cer
history:
exclude:
domains:
- sun
- group
- script
- climate
- automation
- input_text
- input_select
- input_boolean
logbook:
sun:
tts:
#- platform: google
- platform: baidu
app_id: !secret baidu_app_id
api_key: !secret baidu_api_key
secret_key: !secret baidu_secret_key
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
mqtt:
broker: localhost
modbus:
type: rtuovertcp
host: ModBus
port: 8899
homekit:
#ip_address: 192.168.1.40
filter:
exclude_domains:
- script
- automation
- input_boolean
exclude_entities:
- switch.benq
- switch.himedia
# - switch.study_power
- switch.projector_power
- light.study_light2
- light.study_light3
- light.parlor_light2
- light.diningroom_light2
- light.passage_light2
- binary_sensor.switch_158d0001e59b33
- binary_sensor.switch_158d000201a73f
entity_config:
switch.outlet:
type: outlet
media_player.x9300d:
feature_list:
- feature: on_off
media_player.x9400e:
feature_list:
- feature: on_off
#TODO
# device_tracker:
# - platform: asuswrt
# host: Router
# username: admin
# password: !secret http_password
# interval_seconds: 120
# new_device_defaults:
# track_new_devices: false
# hide_if_away: true
# binary_sensor:
# - platform: mqtt
# device_class: light
# state_topic: NodeMCU3/digital
# payload_on: 1
# payload_off: 0
# name: Lightness
# availability_topic: NodeMCU3/status
weather:
- platform: caiyun
sensor:
- platform: mqtt
device_class: illuminance
state_topic: Sonoff3/lux
name: Study Lightness
unit_of_measurement: lm
availability_topic: Sonoff3/status
- platform: mqtt
device_class: temperature
state_topic: NodeMCU2/temperature
name: Balcony Temperature
unit_of_measurement: °C
availability_topic: NodeMCU2/status
- platform: mqtt
device_class: humidity
state_topic: NodeMCU2/humidity
name: Balcony Humidity
unit_of_measurement: '%'
availability_topic: NodeMCU2/status
- platform: mqtt
state_topic: NodeMCU2/pm2dot5
name: Balcony PM25
unit_of_measurement: μg/m³
availability_topic: NodeMCU2/status
- platform: mqtt
device_class: temperature
state_topic: NodeMCU6/temperature
name: Purifier6 Temperature
unit_of_measurement: °C
availability_topic: NodeMCU6/status
- platform: mqtt
device_class: humidity
state_topic: NodeMCU6/humidity
name: Purifier6 Humidity
unit_of_measurement: '%'
availability_topic: NodeMCU6/status
- platform: mqtt
state_topic: NodeMCU6/pm2dot5
name: Purifier6 PM25
unit_of_measurement: μg/m³
availability_topic: NodeMCU6/status
- platform: mqtt
state_topic: NodeMCU6/co2
name: Purifier6 CO2
unit_of_measurement: ppm
availability_topic: NodeMCU6/status
- platform: mqtt
device_class: temperature
state_topic: NodeMCU7/temperature
name: Purifier7 Temperature
unit_of_measurement: °C
availability_topic: NodeMCU7/status
- platform: mqtt
device_class: humidity
state_topic: NodeMCU7/humidity
name: Purifier7 Humidity
unit_of_measurement: '%'
availability_topic: NodeMCU7/status
- platform: mqtt
state_topic: NodeMCU7/pm2dot5
name: Purifier7 PM25
unit_of_measurement: μg/m³
availability_topic: NodeMCU7/status
# - platform: mqtt
# state_topic: NodeMCU7/hcho
# name: Purifier7 HCHO
# unit_of_measurement: mg/m³
# availability_topic: NodeMCU7/status
- platform: mqtt
state_topic: NodeMCU7/co2
name: Purifier7 CO2
unit_of_measurement: ppm
availability_topic: NodeMCU7/status
# - platform: phicomm
# name: AirCat
# username: !secret phicomm_username
# password: !secret phicomm_password
- platform: aircat
mac: ['B0F8931EA148', 'B0F893249132']
- platform: template
sensors:
purifier_temperature:
device_class: temperature
friendly_name: Purifier Temperature
value_template: '{{ states.fan.purifier.attributes.temperature }}'
unit_of_measurement: °C
purifier_humidity:
device_class: humidity
friendly_name: Purifier Humidity
value_template: '{{ states.fan.purifier.attributes.humidity }}'
unit_of_measurement: '%'
purifier_pm25:
friendly_name: Purifier PM25
value_template: '{{ states.fan.purifier.attributes.aqi }}'
unit_of_measurement: 'μg/m³'
fresher_temperature:
device_class: temperature
friendly_name: Fresher Temperature
value_template: '{{ states.fan.fresher.attributes.temperature }}'
unit_of_measurement: °C
fresher_humidity:
device_class: humidity
friendly_name: Fresher Humidity
value_template: '{{ states.fan.fresher.attributes.humidity }}'
unit_of_measurement: '%'
fresher_pm25:
friendly_name: Fresher PM25
value_template: '{{ states.fan.fresher.attributes.aqi }}'
unit_of_measurement: 'μg/m³'
fresher_co2:
friendly_name: Fresher CO2
value_template: '{{ states.fan.fresher.attributes.co2 }}'
unit_of_measurement: 'ppm'
fresher2_temperature:
device_class: temperature
friendly_name: Fresher2 Temperature
value_template: '{{ states.fan.fresher2.attributes.temperature }}'
unit_of_measurement: °C
fresher2_humidity:
device_class: humidity
friendly_name: Fresher2 Humidity
value_template: '{{ states.fan.fresher2.attributes.humidity }}'
unit_of_measurement: '%'
fresher2_pm25:
friendly_name: Fresher2 PM25
value_template: '{{ states.fan.fresher2.attributes.aqi }}'
unit_of_measurement: 'μg/m³'
fresher2_co2:
friendly_name: Fresher2 CO2
value_template: '{{ states.fan.fresher2.attributes.co2 }}'
unit_of_measurement: 'ppm'
switch:
#TODO
- platform: wake_on_lan
name: Storage
mac_address: 00-11-32-6B-75-F7
#broadcast_address: 192.168.1.255
host: Storage
turn_off:
service: shell_command.turn_off_storage
- platform: mqtt
name: Washroom Fan
state_topic: Hassmart6/relay/1
command_topic: Hassmart6/relay/1/set
availability_topic: Hassmart6/status
- platform: mqtt
name: Projector Power
state_topic: Sonoff3/relay/1
command_topic: Sonoff3/relay/1/set
availability_topic: Sonoff3/status
- platform: mqtt2
name: Speaker
state_topic: NodeMCU3/relay/0
command_topic: NodeMCU3/relay/0/set
availability_topic: NodeMCU3/status
value_template: '{% if value == "关闭" %}toggle{% else %}ON{% endif %}'
icon_template: '{% if value == "关闭" %}mdi:speaker-off{% elif value == "蓝牙" %}mdi:speaker-bluetooth{% elif value == "光纤" %}mdi:speaker-wireless{% elif value == "优盘" %}mdi:usb{% elif value == "辅助" %}mdi:video-input-component{% else %}mdi:speaker{% endif %}'
payload_off: 'toggle'
- platform: broadlink
host: Outlet
mac: 34:EA:34:B8:36:AC
friendly_name: Outlet
type: spmini2
# - platform: broadlink
# host: Outlet2
# mac: 78:0f:77:cc:cc:be
# friendly_name: Outlet2
# type: spmini2
- platform: broadlink
friendly_name: Remote
host: Remote
mac: 34:EA:34:58:73:5D
type: rm2_pro_plus
switches:
mitsubishi:
friendly_name: Mitsubishi
command_on: 'JgBMAnE2DykPKQ8NDg4ODg4qDw0ODg8pDykPDQ0rDwwODg4qDyoODg4qDykODg4ODSsODg0ODioPDQ4ODg4ODg4ODg4ODg4ODg4ODg4ODQ8NDg4ODg4ODg4ODg4ODg4ODioODg4ODg4ODg0PDSoOKg4ODioPDQ4ODg4ODg4qDg4ODg4ODg4ODg0rDioODg4ODQ4OKw0ODioOKg4ODg4ODg4qDioODg4qDioOKg4qDg4ODg4ODioODg4ODg4ODg4ODg4ODg0PDQ4ODg4ODg4ODg4ODg4PDQ4ODg4PDQ8NDQ8PDBAMDg4QDA4OEAwQDBAoDg4ODg4ODw0ODg8NDQ8PDA4ODg4QDA4OEAwODhAMDg4PDQ8NDw0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ODQ8NDw0ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg0PDQ4ODg4ODg4ODg4ODg4ODg4qDg4ODg4ODg4NDw0PDQ4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODQ8NKw4NDg4ODg4qDioODg4ODQANBQAAAAAAAAAAAAAAAA=='
benq:
friendly_name: BenQ
command_on: 'JgDYAAABJ5QSExITEhMRFBEUERMSExITEhMRFBEUERMSOBE4EhMSExI4ETgSOBE4EhMSExI4ERQRExITEhMSExE4EjgSExE4EgAF='
command_off: 'JgAgAQABJ5QSExITEhITEhMSEhMSExITEhITEhMSEhMSOBI3ExISExITEjcTNxI3ExITEhI4EhITNxITEhMSExI3EzcSExI3EwAF='
himedia:
friendly_name: HiMedia
command_on: 'JgBgAAABJ5QSExITExITExI4EhMSExITEjgSOBI4EjgTEhM4EjgSOBI4EhMSOBI4EjgTEhM4EhMSExI4EhMSExITEjgSExM3EwAFGQABJksSAAxWAAEnSxIADFYAASZLEgANBQAAAAAAAAAA'
command_off: 'JgBgAAABJ5QSExITExITExI4EhMSExITEjgSOBI4EjgTEhM4EjgSOBI4EhMSOBI4EjgTEhM4EhMSExI4EhMSExITEjgSExM3EwAFGQABJksSAAxWAAEnSxIADFYAASZLEgANBQAAAAAAAAAA'
# airer_light:
# friendly_name: Airer Light
# command_on: ''
# command_off: ''
#TODO
# - platform: broadlink
# friendly_name: Remote2
# host: Remote2
# mac: 78:0F:77:47:AA:8F
# type: rm_mini
- platform: template
switches:
projector:
friendly_name: Projector
value_template: "{{ is_state('switch.projector_power', 'on') }}"
turn_on:
service: script.turn_on_projector
turn_off:
service: script.turn_off_projector
light:
- platform: yeelight
devices:
Lamp:
name: Lamp
transition: 1000
- platform: mqtt
name: Hallway Spotlight
state_topic: Hassmart1/relay/0
command_topic: Hassmart1/relay/0/set
availability_topic: Hassmart1/status
- platform: mqtt
name: Hallway Light
state_topic: Hassmart1/relay/1
command_topic: Hassmart1/relay/1/set
availability_topic: Hassmart1/status
- platform: mqtt
name: Diningroom Light2
state_topic: Hassmart1/relay/2
command_topic: Hassmart1/relay/2/set
availability_topic: Hassmart1/status
- platform: mqtt
name: Diningroom light
state_topic: Hassmart2/relay/0
command_topic: Hassmart2/relay/0/set
availability_topic: Hassmart2/status
- platform: mqtt
name: Passage Spotlight
state_topic: Hassmart2/relay/1
command_topic: Hassmart2/relay/1/set
availability_topic: Hassmart2/status
- platform: mqtt
name: Parlor Light
state_topic: Hassmart3/relay/0
command_topic: Hassmart3/relay/0/set
availability_topic: Hassmart3/status
- platform: mqtt
name: Parlor Spotlight
state_topic: Hassmart3/relay/1
command_topic: Hassmart3/relay/1/set
availability_topic: Hassmart3/status
- platform: mqtt
name: Diningroom Spotlight
state_topic: Hassmart3/relay/2
command_topic: Hassmart3/relay/2/set
availability_topic: Hassmart3/status
- platform: mqtt
name: Parlor Light2
state_topic: Hassmart4/relay/0
command_topic: Hassmart4/relay/0/set
availability_topic: Hassmart4/status
- platform: mqtt
name: Balcony Light
state_topic: Hassmart4/relay/1
command_topic: Hassmart4/relay/1/set
availability_topic: Hassmart4/status
- platform: mqtt
name: Passage Light
state_topic: Hassmart5/relay/0
command_topic: Hassmart5/relay/0/set
availability_topic: Hassmart5/status
- platform: mqtt
name: Study Light2
state_topic: Hassmart5/relay/1
command_topic: Hassmart5/relay/1/set
availability_topic: Hassmart5/status
- platform: mqtt
name: Study Light3
state_topic: Hassmart5/relay/2
command_topic: Hassmart5/relay/2/set
availability_topic: Hassmart5/status
- platform: mqtt
name: Washroom Light
state_topic: Hassmart6/relay/0
command_topic: Hassmart6/relay/0/set
availability_topic: Hassmart6/status
- platform: mqtt
name: Passage Backlight
state_topic: Sonoff1/relay/0
command_topic: Sonoff1/relay/0/set
availability_topic: Sonoff1/status
- platform: mqtt
name: Passage Light2
state_topic: Sonoff1/relay/1
command_topic: Sonoff1/relay/1/set
availability_topic: Sonoff1/status
# - platform: mqtt
# name: Ceiling Light
# state_topic: Sonoff2/relay/0
# command_topic: Sonoff2/relay/0/set
# availability_topic: Sonoff2/status
- platform: mqtt
name: Study Light
state_topic: Sonoff3/relay/0
command_topic: Sonoff3/relay/0/set
availability_topic: Sonoff3/status
- platform: mqtt
name: Kids Light
command_topic: NodeMCU6/irout/set
availability_topic: NodeMCU6/status
payload_on: 3526,1658,426,418,426,1292,426,420,426,1288,428,418,426,1290,430,418,426,1290,428,418,426,418,426,416,426,1290,428,416,430,1290,428,1290,428,418,428,1288,428,416,428,418,426,418,428,1288,428,1288,428,1290,428,418,428,1290,428,418,428,1290,428,416,428,1290,428,1290,428,416,428,418,426,418,428,416,428,418,426,416,428,418,426,416,428,416,428,418,426,1292,426,418,428,1290,428,416,428,1292,424,1292,424,1294,424,418,426,1290,426,420,424,418,426,420,424,422,424,1294,424,420,424,420,424,1294,424,420,424,422,422,422,422,1298,422,422,422,1296,422,422,422,1,2,38
payload_off: 3528,1658,426,418,426,1292,380,462,382,1334,382,464,382,1338,380,462,382,1336,382,462,382,462,382,462,382,1336,382,462,382,1336,380,1336,382,464,382,1338,378,462,384,462,382,464,380,1336,382,1336,382,1336,382,462,382,1334,384,464,382,1336,382,462,382,1336,382,1336,382,464,382,462,382,464,382,464,380,462,382,462,382,464,382,464,380,464,382,464,382,464,380,1338,380,462,382,464,382,462,380,464,380,464,380,464,380,1334,382,464,380,464,380,464,380,464,382,1336,382,464,382,462,382,1334,382,464,382,464,382,464,380,1336,382,1336,382,464,382,1338,380,1,2,38
shell_command:
turn_off_storage: 'ssh root@Storage shutdown -h now'
xiaomi_aqara:
#interface: 192.168.2.40
gateways:
- mac: 34CE0090901A
key: 3ECB50168D7F4AEB
vacuum:
- platform: xiaomi_miio
name: Vacuum
host: Vacuum
token: 526373684671464d35724d3478667530
fan:
- platform: xiaomi_miio
name: Purifier
host: Purifier
model: zhimi.airpurifier.m1
token: FE2D793B34DCE57F32BF50B2E6B00874
# - platform: xiaomi_miio
# name: Purifier2
# host: Purifier2
# model: zhimi.airpurifier.v6
# token: 40aaf8a828797657328319e0c6cf761a
#- platform: xiaomi_miio
# name: Fan
# host: Fan
# model: zhimi.fan.v3
# token: 62df0c2f98752f87aa3c6258bf862c9b
- platform: xiaomi_miio
name: Fresher
host: Fresher
model: zhimi.airfresh.va2
token: bb1ee8999ee6bc7ce075a424bca664c3
- platform: xiaomi_miio
name: Fresher2
host: Fresher2
model: zhimi.airfresh.va2
token: 17487f22521cf634c50b64f5f95c96cb
- platform: mqtt
name: Purifier4
state_topic: NodeMCU4/relay/0
command_topic: NodeMCU4/relay/0/set
availability_topic: NodeMCU4/status
oscillation_state_topic: NodeMCU4/relay/1
oscillation_command_topic: NodeMCU4/relay/1/set
speed_state_topic: NodeMCU4/relay/0
speed_command_topic: NodeMCU4/relay/0/set
state_value_template: "{% if value == '0' %}OFF{% else %}ON{% endif %}"
payload_low_speed: '1'
payload_medium_speed: '2'
payload_high_speed: '3'
- platform: mqtt
name: Purifier5
state_topic: NodeMCU5/relay/0
command_topic: NodeMCU5/relay/0/set
availability_topic: NodeMCU5/status
oscillation_state_topic: NodeMCU5/relay/1
oscillation_command_topic: NodeMCU5/relay/1/set
speed_state_topic: NodeMCU5/relay/0
speed_command_topic: NodeMCU5/relay/0/set
state_value_template: "{% if value == '0' %}OFF{% else %}ON{% endif %}"
payload_low_speed: '1'
payload_medium_speed: '5'
payload_high_speed: '4'
- platform: mqtt
name: Purifier6
state_topic: NodeMCU6/relay/0
command_topic: NodeMCU6/relay/0/set
availability_topic: NodeMCU6/status
oscillation_state_topic: NodeMCU6/relay/1
oscillation_command_topic: NodeMCU6/relay/1/set
speed_state_topic: NodeMCU6/relay/0
speed_command_topic: NodeMCU6/relay/0/set
state_value_template: "{% if value == '0' %}OFF{% else %}ON{% endif %}"
payload_low_speed: '1'
payload_medium_speed: '5'
payload_high_speed: '6'
- platform: mqtt
name: Purifier7
state_topic: NodeMCU7/relay/0
command_topic: NodeMCU7/relay/0/set
availability_topic: NodeMCU7/status
oscillation_state_topic: NodeMCU7/relay/1
oscillation_command_topic: NodeMCU7/relay/1/set
speed_state_topic: NodeMCU7/relay/0
speed_command_topic: NodeMCU7/relay/0/set
state_value_template: "{% if value == '0' %}OFF{% else %}ON{% endif %}"
payload_low_speed: '1'
payload_medium_speed: '5'
payload_high_speed: '6'
#TODO
# - platform: template
# fans:
# wall_fan:
# friendly_name: "Wall Fan"
# value_template: "{{ states('input_boolean.wall_fan_state') }}"
# speed_template: "{{ states('input_select.wall_fan_speed') }}"
# direction_template: "{% if is_state('input_boolean.wall_fan_direction', 'on') %}forward{% else %}reverse{% endif %}"
# oscillating_template: "{% if is_state('input_boolean.wall_fan_osc', 'on') %}True{% else %}False{% endif %}"
# turn_on:
# - condition: template
# value_template: "{{ is_state('input_boolean.wall_fan_state', 'off') }}"
# - service: switch.broadlink_send_packet_remote2
# data:
# packet: 'JgDCACkOKg4OKCoOKQ4OKQ4pDioOKQ4pDikp6SkOKg0OKSoOKQ4OKQ4pDikOKQ8pDSop6CoOKQ4OKSkOKg4OKQ4pDikOKQ4pDikq6CoOKQ4OKSkOKQ4PKQ4pDikOKQ4pDikq6ykOKg0OKSoNKg4OKQ4pDikOKQ4qDSop7CoNKg4OKSkOKQ4OKQ4qDSoOKQ4pDikq6ykOKg4OKSkOKg0PKQ0qDikOKQ4pDikq6ykOKg4OKSkOKQ4PKQ4pDikOKQ4pDikqAA0FAAAAAAAA'
# - service: input_boolean.turn_on
# data:
# entity_id: input_boolean.wall_fan_state
# turn_off:
# - condition: template
# value_template: "{{ is_state('input_boolean.wall_fan_state', 'on') }}"
# - service: switch.broadlink_send_packet_remote2
# data:
# packet: 'JgDCACkOKg4OKCoOKQ4OKQ4pDioOKQ4pDikp6SkOKg0OKSoOKQ4OKQ4pDikOKQ8pDSop6CoOKQ4OKSkOKg4OKQ4pDikOKQ4pDikq6CoOKQ4OKSkOKQ4PKQ4pDikOKQ4pDikq6ykOKg0OKSoNKg4OKQ4pDikOKQ4qDSop7CoNKg4OKSkOKQ4OKQ4qDSoOKQ4pDikq6ykOKg4OKSkOKg0PKQ0qDikOKQ4pDikq6ykOKg4OKSkOKQ4PKQ4pDikOKQ4pDikqAA0FAAAAAAAA'
# - service: input_boolean.turn_off
# data:
# entity_id: input_boolean.wall_fan_state
# set_speed:
# - condition: template
# value_template: "{{ not is_state('input_select.wall_fan_speed', speed) }}"
# - service: switch.broadlink_send_packet_remote2
# data:
# packet: 'JgDCACkOKg4OKSoNKg4qDg4pDikOKQ4qKQ4q6SoOKQ4OKSoOKg4pDg4pDioOKQ4pKg4q6SoOKQ4OKSoOKg0qDg4pDioOKQ4pKg4q6SoOKQ4OKSoOKg0qDg4pDioOKQ4pKg4q6yoOKQ4OKSoOKg0qDg4pDioNKg4pKg4p7CkOKg0PKSkOKg4pDg4pDioOKQ4pKg4p6yoNKg4OKSkOKg4pDg4pDioOKQ4pKQ4q6yoNKg4OKSkOKg4pDg4pDikOKg4pKQ4qAA0FAAAAAAAA'
# - service: input_select.select_next
# data:
# entity_id: input_select.wall_fan_speed
# set_oscillating:
# - service: switch.broadlink_send_packet_remote2
# data:
# packet: 'JgDqACkOKg0PKSkOKQ4OKQ4qKQ4OKQ4pDikPAAEDKg4pDg4pKQ4qDg4pDikpDg8pDikOKQ4AAQQpDioODikpDikODykOKSkODikOKQ4qDgABBCkOKQ4OKSoNKg4OKQ4pKg4OKQ4pDikOAAEHKg0qDg4pKQ4pDg4pDykpDg4pDikOKQ4AAQgqDSoODikpDioODikOKSkODikPKQ4pDgABByoNKg4OKSkOKg4OKQ4pKg0OKQ4qDikOAAEHKQ4qDQ8oKg4pDg4pDykpDg4pDikOKQ4AAQcqDikODikpDioODikOKSkODykOKQ4pDgANBQAAAAAAAAAAAAAAAAAA'
# - service: input_boolean.toggle
# data:
# entity_id: input_boolean.wall_fan_osc
# set_direction:
# - service: switch.broadlink_send_packet_remote2
# data_template:
# packet: "{% if direction == 'forward' %}'JgDyACwLLAwQJywLLAwsCxApDigQJw8oLAwr5ywMLAsQJywMLAssDBAnECcQKA8oKQ4s5ywMKwwQJyoOLAssDBAnDykQJw8oLAwr6CsMLAwQJywLLAwsCxEnECcPKA8pKwws6SwMLAsRJysMLAwrDBAoECcQJxAnLAws6SwLLAwQJywMKwwsDBAnECcQJxAoKQ4s6SsMLAsRJysMLAwrDBAnECcRJxAnKQ4s6SsMLAsQJywMKwwsDBAnDygQJxAoKwwr6isMLAsQKCsMKwwsDBAnECcQJxAnLAwr6iwLLAwQKCoMLAwrDBAnECcQKA4pKQ4sAA0FAAAAAAAA'{% else %}'JgDqACkOKQ8NKikPKQ4qDg0qDSoOKigPKQ8NAAEGKA8pDw0qKQ8oDykPDSoNKw0qKQ8oDw0AAQcoDykPDSoqDigPKQ8NKg8pECcrDSgPDQABBisNKQ8NKikOKQ8pDw8oECcQKCsMKw0PAAEFLAwqDQ8pKwwrDSoNDykQJxAnKw0qDQ8AAQYrDCsNECcrDCsNKg0PKRAnECcsDCoNDwABBSwMKA8NKiwMKA8pDw0qECcQJywMKA8NAAEIKg0pDg4qKg0pDygPDSoQJxAoKwwpDg8AAQYsDCoNDygsDCoNKg0PKRAnECcrDCsNDwANBQAAAAAAAAAAAAAAAAAA'{% endif %}"
# - service: input_boolean.toggle
# data:
# entity_id: input_boolean.wall_fan_direction
climate:
- platform: saswell
username: !secret saswell_username
password: !secret saswell_password
- platform: modbus2
name: Daikin
temperature: { registers: [3, 6, 9, 12], register_type: input, scale: 0.1 }
target_temperature: { registers: [4, 8, 12, 16] }
operation: { registers: [5, 9, 13, 17] }
fan: { registers: [6, 10, 14, 18] }
is_on: { registers: [1, 2, 3, 4], register_type: coil }
operation_list: ['off', cool, heat, dry, fan]
fan_list: [自动, 一级, 二级, 三级, 四级, 五级]
cover:
- platform: broadlink
host: Remote
mac: 34:EA:34:58:73:5D
covers:
study_cover:
name: Study Cover
travel_time: 13
command_open: 'sgD8AJ8wGAwNFxgMGAwYDAwYFwwYDQwYGAsNFw0XDRcYDAwYDBgNFxkMDBgYDBgMDBcNFw0XGQsNFxgMGAwMGAwYDBgXDQwYDB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''
# command_stop: ''
# command_close: ''
media_player:
- platform: braviatv
host: X9300d
name: X9300d
- platform: braviatv
host: X9400e
name: X9400e
- platform: dlna_dmr
url: http://Magic:7300/mdr/desc.xml
name: Magic
panel_iframe:
dash:
title: 面板
icon: mdi:microsoft
url: /local/dash.html
nodemcu:
title: 室内
icon: mdi:chart-line
url: !secret nodemcu_url
nodemcu2:
title: 阳台
icon: mdi:chart-areaspline
url: !secret nodemcu2_url
aligenie:
hello_miai:
miid: !secret miai_miid
password: !secret miai_password
input_text:
miai:
name: MiAI
initial: 我是小爱
#TODO
# input_boolean:
# wall_fan_state:
# wall_fan_osc:
# wall_fan_direction:
# input_select:
# wall_fan_speed:
# options: [low, medium, high]