-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsampleRFBridge
More file actions
309 lines (309 loc) · 7.7 KB
/
Copy pathsampleRFBridge
File metadata and controls
309 lines (309 loc) · 7.7 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
substitutions:
reboot_timeout_wifi: 900s
reboot_timeout_api: 1800s
output_power: 17dB
# Change these below
device_name: sonoff_rf1
ip_address: 10.10.1.54
friendly_name: "sonoff_RF_1"
temp_name: WW Led
humid_name: WW Led
esphome:
name: ${device_name}
platform: ESP8266
board: esp01_1m
wifi:
ssid: !secret wifi_home
password: !secret wifi_home_pw
manual_ip:
static_ip: ${ip_address}
gateway: 10.10.1.1
subnet: 255.255.0.0
fast_connect: on
reboot_timeout: ${reboot_timeout_wifi}
output_power: ${output_power}
ap: # Enable fallback hotspot (captive portal) in case wifi connection fails
ssid: ${device_name}
password: !secret wifi_esp_ap
captive_portal:
logger:
api:
reboot_timeout: ${reboot_timeout_api}
ota:
password: !secret esphome_ota_pw
time:
- platform: sntp
web_server:
port: 80
sensor:
- platform: wifi_signal
name: "${friendly_name} WiFi"
update_interval: 130s
- platform: uptime
name: Uptime Sensor
binary_sensor: #RF stuff in here
- platform: status
name: "${friendly_name}Status"
- platform: remote_receiver #Motion1
name: rf_motion_01
device_class: motion
rc_switch_raw:
code: '001001100000110101100110'
protocol: 1
filters:
delayed_off: 10s
- platform: remote_receiver #Motion2
name: rf_motion_02
device_class: motion
rc_switch_raw:
code: '010011100011111001100110'
protocol: 1
filters:
delayed_off: 10s
- platform: remote_receiver #Motion3
name: rf_motion_03
device_class: motion
rc_switch_raw:
code: '111011001111000101100110'
protocol: 1
filters:
delayed_off: 10s
- platform: remote_receiver #Motion4
name: rf_motion_04
device_class: motion
rc_switch_raw:
code: '100101100100100101100110'
protocol: 1
filters:
delayed_off: 10s
- platform: remote_receiver #Motion5
name: rf_motion_05
device_class: motion
rc_switch_raw:
code: '000001011010011001100110'
protocol: 1
filters:
delayed_off: 10s
- platform: remote_receiver #Door 1
id: door_window_open
internal: true
rc_switch_raw:
code: '010001101011010000001010'
protocol: 2
filters:
delayed_off: 100ms
- platform: remote_receiver #Door 1
id: door_window_closed
internal: true
rc_switch_raw:
code: '010001101011010000001110'
protocol: 2
filters:
delayed_off: 100ms
- platform: template #Door 1
name: door01
device_class: door
lambda: |-
if (id(door_window_open).state) {
// door window is open
return true;
} else if (id(door_window_closed).state) {
// door window closed
return false;
} else {
return {};
}
- platform: remote_receiver #Door 2
id: door_window_open_02
internal: true
rc_switch_raw:
code: '010011011000101000001010'
protocol: 2
filters:
delayed_off: 100ms
- platform: remote_receiver #Door 2
id: door_window_closed_02
internal: true
rc_switch_raw:
code: '010011011000101000001110'
protocol: 2
filters:
delayed_off: 100ms
- platform: template #Door 2
name: door02
device_class: door
lambda: |-
if (id(door_window_open_02).state) {
// door window is open
return true;
} else if (id(door_window_closed_02).state) {
// door window closed
return false;
} else {
return {};
}
- platform: remote_receiver #Door 3
id: door_window_open_03
internal: true
rc_switch_raw:
code: '010001011000001100001010'
protocol: 2
filters:
delayed_off: 100ms
- platform: remote_receiver #Door 3
id: door_window_closed_03
internal: true
rc_switch_raw:
code: '010001011000001100001110'
protocol: 2
filters:
delayed_off: 100ms
- platform: template #Door 3
name: door03
device_class: door
lambda: |-
if (id(door_window_open_03).state) {
// door window is open
return true;
} else if (id(door_window_closed_03).state) {
// door window closed
return false;
} else {
return {};
}
- platform: remote_receiver #Door 4
id: door_window_open_04
internal: true
rc_switch_raw:
code: '001111001111010000001010'
protocol: 2
filters:
delayed_off: 100ms
- platform: remote_receiver #Door 4
id: door_window_closed_04
internal: true
rc_switch_raw:
code: '001111001111010000001110'
protocol: 2
filters:
delayed_off: 100ms
- platform: template #Door 4
name: door03
device_class: door
lambda: |-
if (id(door_window_open_04).state) {
// door window is open
return true;
} else if (id(door_window_closed_04).state) {
// door window closed
return false;
} else {
return {};
}
- platform: remote_receiver #LWRF Panel 1 BOf
name: lwrf_button1_bigoff
device_class: moving
rc_switch_raw:
code: '1110111011110101111010111101001011111111010101011110101110101111'
protocol: 8
filters:
delayed_off: 3s
- platform: remote_receiver #LWRF Panel 1 BOn
name: lwrf_button1_bigon
device_class: moving
rc_switch_raw:
code: '1111101011110101111010111011001011111111010101011110101110101111'
protocol: 8
filters:
delayed_off: 3s
- platform: remote_receiver #LWRF Panel 1 LOf
name: lwrf_button1_littleoff
device_class: moving
rc_switch_raw:
code: '1011110111110100101111111101001011111111010101011110101110101111'
protocol: 8
filters:
delayed_off: 3s
- platform: remote_receiver #LWRF Panel 1 -1
name: lwrf_button1_1
device_class: moving
rc_switch_raw:
code: '1101110111101010101111111010101011111111010101011110101110101111'
protocol: 8
filters:
delayed_off: 3s
- platform: remote_receiver #LWRF Panel 1 -2
name: lwrf_button1_2
device_class: moving
rc_switch_raw:
code: '1101110111100110101111111010101011111111010101011110101110101111'
protocol: 8
filters:
delayed_off: 3s
- platform: remote_receiver #LWRF Panel 1- 3
name: lwrf_button1_3
device_class: moving
rc_switch_raw:
code: '1101110111011100101111111010101011111111010101011110101110101111'
protocol: 8
filters:
delayed_off: 3s
- platform: remote_receiver #SOS Button #1
name: sos_button#1
device_class: moving
rc_switch_raw:
code: '111001101000001000011000'
protocol: 2
filters:
delayed_off: 1s
- platform: remote_receiver #SOS Button #2
name: sos_button#2
device_class: moving
rc_switch_raw:
code: '110101110010000111111000'
protocol: 2
filters:
delayed_off: 1s
- platform: remote_receiver #SOS Button #3
name: sos_button#3
device_class: moving
rc_switch_raw:
code: '000011011001111011011000'
protocol: 2
filters:
delayed_off: 1s
- platform: remote_receiver #SOS Button #4
name: sos_button#4
device_class: moving
rc_switch_raw:
code: '101111010001011000111000'
protocol: 2
filters:
delayed_off: 1s
- platform: remote_receiver #SOS Button #5
name: sos_button#5
device_class: moving
rc_switch_raw:
code: '010111001011110011101000'
protocol: 2
filters:
delayed_off: 1s
switch:
- platform: restart
name: "${friendly_name} Restart"
text_sensor:
- platform: version
name: ${friendly_name} ESPhome Version
remote_receiver: #RF Master
pin: 4
dump: rc_switch
tolerance: 50
filter: 4us
idle: 4ms
remote_transmitter: #RF Master
pin: 5
carrier_duty_percent: 100%
status_led:
pin:
number: GPIO13
inverted: false