-
Notifications
You must be signed in to change notification settings - Fork 1
/
switch.yaml
executable file
·245 lines (214 loc) · 6.25 KB
/
switch.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
#####MQTT NodeMCU Switch#####
- platform: mqtt
name: "All Off"
state_topic: "home/433toMQTT"
command_topic: "home/commands/MQTTto433/PLSL_306/433_1"
payload_on: "5578552"
payload_off: "5578552"
optimistic: false
retain: true
- platform: mqtt
name: "Lights"
state_topic: "home/433toMQTT"
command_topic: "home/commands/MQTTto433/PLSL_306/433_1"
payload_on: "5578559"
payload_off: "5578551"
optimistic: false
retain: true
- platform: mqtt
name: "TV"
state_topic: "home/433toMQTT"
command_topic: "home/commands/MQTTto433/PLSL_306/433_1"
payload_on: "5578555"
payload_off: "5578547"
optimistic: false
retain: true
- platform: mqtt
name: "Bedroom Fan"
state_topic: "home/433toMQTT"
command_topic: "home/commands/MQTTto433/PLSL_306/433_1"
payload_on: "9112158"
payload_off: "9112150"
optimistic: false
retain: true
- platform: mqtt
name: "Fireplace"
state_topic: "home/433toMQTT"
command_topic: "home/commands/MQTTto433/PLSL_306/433_1"
payload_on: "5578558"
payload_off: "5578550"
optimistic: false
retain: true
- platform: mqtt
name: "Christmas Lights"
state_topic: "home/433toMQTT"
command_topic: "home/commands/MQTTto433/PLSL_306/433_1"
payload_on: "3124495"
payload_off: "3124487"
optimistic: false
retain: true
- platform: mqtt
name: "Sonoff1"
command_topic: "cmnd/sonoff1/power"
state_topic: "stat/sonoff1/POWER"
#qos: 1
payload_on: "ON"
payload_off: "OFF"
optimistic: false
retain: true
- platform: mqtt
name: "Light1"
command_topic: "cmnd/sonoff2/power"
state_topic: "stat/sonoff2/POWER"
#qos: 1
payload_on: "ON"
payload_off: "OFF"
optimistic: false
retain: true
- platform: mqtt
name: "Light2"
command_topic: "cmnd/sonoff3/power"
state_topic: "stat/sonoff3/POWER"
#qos: 1
payload_on: "ON"
payload_off: "OFF"
optimistic: false
retain: true
- platform: mqtt
name: "Sonoff Power Retain"
command_topic: "cmnd/sonoff/PowerRetain on"
optimistic: false
retain: true
- platform: mqtt
name: "Sonoff Light 1 Power Retain"
command_topic: "cmnd/sonoff2/PowerRetain on"
optimistic: false
retain: true
- platform: mqtt
name: "Sonoff Light 2 Power Retain"
command_topic: "cmnd/sonoff3/PowerRetain on"
optimistic: false
retain: true
- platform: mqtt
name: "Humax Mute"
state_topic: "home/IRtoMQTT/" # defined by subjectGTWIRtoMQTT in User_config.h
command_topic: "home/commands/WEMOS/IR_NEC"
payload_on: "530663"
payload_off: "530663"
optimistic: false
retain: true
- platform: mqtt
name: "Humax Power"
state_topic: "home/IRtoMQTT/" # defined by subjectGTWIRtoMQTT in User_config.h
command_topic: "home/commands/WEMOS/IR_NEC"
payload_on: "524543"
payload_off: "524543"
optimistic: false
retain: true
- platform: mqtt
name: "Humax Forward"
state_topic: "home/IRtoMQTT/" # defined by subjectGTWIRtoMQTT in User_config.h
command_topic: "home/commands/WEMOS/IR_NEC"
payload_on: "583193"
payload_off: "583193"
optimistic: false
retain: true
- platform: mqtt
name: "Humax Back"
state_topic: "home/IRtoMQTT/" # defined by subjectGTWIRtoMQTT in User_config.h
command_topic: "home/commands/WEMOS/IR_NEC"
payload_on: "550553"
payload_off: "550553"
optimistic: false
retain: true
- platform: mqtt
name: "Humax Channel Up"
state_topic: "home/IRtoMQTT/" # defined by subjectGTWIRtoMQTT in User_config.h
command_topic: "home/commands/WEMOS/IR_NEC"
payload_on: "526583"
payload_off: "526583"
optimistic: false
retain: true
- platform: mqtt
name: "Humax Channel Down"
state_topic: "home/IRtoMQTT/" # defined by subjectGTWIRtoMQTT in User_config.h
command_topic: "home/commands/WEMOS/IR_NEC"
payload_on: "585743"
payload_off: "585743"
optimistic: false
retain: true
- platform: mqtt
name: "Humax Volume Up"
state_topic: "home/IRtoMQTT/" # defined by subjectGTWIRtoMQTT in User_config.h
command_topic: "home/commands/WEMOS/IR_NEC"
payload_on: "587783"
payload_off: "587783"
optimistic: false
retain: true
- platform: mqtt
name: "Humax Volume Down"
state_topic: "home/IRtoMQTT/" # defined by subjectGTWIRtoMQTT in User_config.h
command_topic: "home/commands/WEMOS/IR_NEC"
payload_on: "525053"
payload_off: "525053"
optimistic: false
retain: true
- platform: mqtt
name: "Humax Info"
state_topic: "home/IRtoMQTT/" # defined by subjectGTWIRtoMQTT in User_config.h
command_topic: "home/commands/WEMOS/IR_NEC"
payload_on: "574013"
payload_off: "574013"
optimistic: false
retain: true
- platform: mqtt
name: "Humax Fake Command"
state_topic: "home/IRtoMQTT/" # defined by subjectGTWIRtoMQTT in User_config.h
command_topic: "home/commands/WEMOS/IR_NEC"
payload_on: "424543"
payload_off: "424543"
optimistic: false
retain: true
- platform: mqtt
name: "Sharp TV Channel Up"
state_topic: "home/IRtoMQTT/" # defined by subjectGTWIRtoMQTT in User_config.h
command_topic: "home/commands/WEMOS/IR_Sharp"
payload_on: "424543"
payload_off: "424543"
optimistic: false
retain: true
- platform: mqtt
name: "Sharp TV Channel Down"
state_topic: "home/IRtoMQTT/" # defined by subjectGTWIRtoMQTT in User_config.h
command_topic: "home/commands/WEMOS/IR_Sharp"
payload_on: "16674"
payload_off: "16674"
optimistic: false
retain: true
- platform: rpi_gpio
ports:
4: Red
17: Green
27: Blue
- platform: command_line
switches:
bmegreen:
command_on: 'curl -k http://192.168.0.113/control?cmd=PWM,0,100'
command_off: 'curl -k http://192.168.0.113/control?cmd=PWM,0,0'
- platform: command_line
switches:
bmered:
command_on: 'curl -k http://192.168.0.113/control?cmd=PWM,2,100'
command_off: 'curl -k http://192.168.0.113/control?cmd=PWM,2,0'
#- platform: template
#switches:
# lights_2:
# value_template: "{{ is_state('group.lights', 'on') }}"
# turn_on:
# service: switch.turn_on
# data:
# entity_id: group.lights
# turn_off:
# service: switch.turn_off
#data:
# entity_id: group.lights