-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathswitches.yaml
executable file
·68 lines (59 loc) · 3.33 KB
/
switches.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
### switches.yaml
### broadlink SP-Mini3 switch #############################################
### 博联 SP-Mini3 插座 #####################################################
- platform: broadlink
host: 192.168.50.231
mac: 'C8:F7:42:91:C5:A2'
type: spmini2
### broadlink RM switch #########################################
### 博联RM-Pro红外遥控 ############################################
- platform: broadlink
host: 192.168.50.117
mac: '34:EA:34:44:3E:7D'
friendly_name: 博联控制主机
type: rm2_pro_plus2
switches:
#############################################################
# Hisense TV switch
hisense_switch:
command_on: 'JgBYAAABKZQTEhISExISEhISExISEhISEzYSNhM2EjcSNxM2EhISNxI2EhMSNhM2EhITEhISEhITEhI2ExISEhI2EzYSNxE3EgAFKQABKUoSAAxYAAEpShMADQU='
command_off: 'JgBYAAABKJUSExETEhMRExETEhMRExETEjcRNxM2EjcSNxI3EhISNxI2ExISNhM2EhITEhISEhITEhI2EhITEhI2EzYSNxI2EwAFKQABKUoTAAxXAAEpShMADQU='
# TEAC media player
teac_switch:
command_on: 'JgBgAAABK5USExETEhMRFBETEhMRFBETEjoROhE6EjkSOhE6EjkSOhE6EToSExE6EhMRFBETEhMRFBETEjkSExI6EToROhI5EgAFFwABK0sSAAyZAAEqTBAADJwAASpLEAANBQAAAAAAAAAA'
command_off: 'JgBgAAABK5UTERMSExISEhMSEhITEhMSEzgTOBM5EjkTOBM5EjkTOBM4EzkTEhI5ExISEhMSExISEhMSEzgTEhM4EzgTORM4EwAFFgABLEoTAAyYAAEsShMADJgAAS1LEgANBQAAAAAAAAAA'
# Living room light
# 以下为射频码
livingroom_switch:
command_on: 'dQY0ABkLGQsZCxkLCBwHHAgcBxwIHBkLCBwHH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IHAgcGgoaCgcAARsZCxkLGQsZCwcdBx0HHAgc
CB0ZCggcBx0IHAcdBx0ZCwcdBx0HHQccCBwIHRgLGgoHAAEbGQsZCxkLGQsGHQcdBx0HHQcdGQsH
HQcdBx0HHQYdGQwGHQgcBx0HHQcdBxwaChoLBgAF3A=='
livingroom_yellow:
command_on: 'dAY0AAgeCB4aDAgdCB4IHggeCB4aCwgeBx4aDBoLCB4IHQgeCB4IAAEdGgsaCxoLGgwIHQgdCB4AAAAA=='
command_off: 'dAY0AAgeCB4aDAgdCB4IHggeCB4aCwgeBx4aDBoLCB4IHQgeCB4IAAEdGgsaCxoLGgwIHQgdCB4AAAAA=='
# 用于构建可反馈的电视开关方案 #
- platform: template
switches:
hisense_state:
value_template: "{{ is_state('binary_sensor.hisensetv_state', 'on') }}"
turn_on:
service: switch.turn_on
entity_id: switch.hisense_switch
turn_off:
service: switch.turn_off
entity_id: switch.hisense_switch