forked from glmnet/esphome_devices
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.rcswitch.tx.yaml
More file actions
183 lines (168 loc) · 4.01 KB
/
Copy pathtest.rcswitch.tx.yaml
File metadata and controls
183 lines (168 loc) · 4.01 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
esphome:
name: test_local
platform: ESP8266
board: nodemcu
platformio_options:
upload_speed: 921600
logger:
level: DEBUG
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_pass
fast_connect: true
# manual_ip:
# static_ip: 10.0.1.199
# gateway: 10.0.1.1
# subnet: 255.0.0.0
api:
# ota:
remote_transmitter:
pin: D7
# RF uses a 100% carrier signal
carrier_duty_percent: 100%
switch:
- platform: template
id: C3_Lock
turn_on_action:
- remote_transmitter.transmit_rc_switch_raw:
code: '110100000011010100001100'
protocol: 1
repeat:
times: 5
wait_time: 2ms
- platform: template
id: C3_UnLock
turn_on_action:
- remote_transmitter.transmit_rc_switch_raw:
code: '110100000011010100110000'
protocol: 1
repeat:
times: 5
wait_time: 2ms
- platform: template
id: C3_Bajar
turn_on_action:
- remote_transmitter.transmit_rc_switch_raw:
code: '110100000011010100000011'
protocol: 1
repeat:
times: 5
wait_time: 2ms
- platform: template
id: C3_Subir
turn_on_action:
- remote_transmitter.transmit_rc_switch_raw:
code: '110100000011010111000000'
protocol: 1
repeat:
times: 5
wait_time: 2ms
- platform: template
id: C4_Lock
turn_on_action:
- remote_transmitter.transmit_rc_switch_raw:
code: '110111010100001100001100'
protocol: 1
repeat:
times: 5
wait_time: 2ms
- platform: template
id: C4_UnLock
turn_on_action:
- remote_transmitter.transmit_rc_switch_raw:
code: '110111010100001100110000'
protocol: 1
repeat:
times: 5
wait_time: 2ms
- platform: template
id: C4_Bajar
turn_on_action:
- remote_transmitter.transmit_rc_switch_raw:
code: '110111010100001111000000'
protocol: 1
repeat:
times: 5
wait_time: 2ms
- platform: template
id: C4_Subir
turn_on_action:
- remote_transmitter.transmit_rc_switch_raw:
code: '110111010100001100000011'
protocol: 1
repeat:
times: 5
wait_time: 2ms
- platform: template
id: C9_Lock
turn_on_action:
- remote_transmitter.transmit_rc_switch_raw:
code: '110100000011110100001100'
protocol: 1
repeat:
times: 5
wait_time: 2ms
- platform: template
id: C9_UnLock
turn_on_action:
- remote_transmitter.transmit_rc_switch_raw:
code: '110100000011110100110000'
protocol: 1
repeat:
times: 5
wait_time: 2ms
- platform: template
id: C9_Bajar
turn_on_action:
- remote_transmitter.transmit_rc_switch_raw:
code: '110100000011110100000011'
protocol: 1
repeat:
times: 5
wait_time: 2ms
- platform: template
id: C9_Subir
turn_on_action:
- remote_transmitter.transmit_rc_switch_raw:
code: '110100000011110111000000'
protocol: 1
repeat:
times: 5
wait_time: 2ms
cover:
- platform: time_based
device_class: blind
name: "Cortina 9 Muro"
open_action:
- switch.turn_on: C9_Subir
open_duration: 20s
close_action:
- switch.turn_on: C9_Bajar
close_duration: 20s
stop_action:
- switch.turn_on: C9_UnLock
has_built_in_endstop: true
- platform: time_based
device_class: shade
name: "Cortina 4 Centro"
open_action:
- switch.turn_on: C4_Subir
open_duration: 20s
close_action:
- switch.turn_on: C4_Bajar
close_duration: 20s
stop_action:
- switch.turn_on: C4_UnLock
has_built_in_endstop: true
- platform: time_based
device_class: shutter
name: "Cortina 3 Pasillo"
open_action:
- switch.turn_on: C3_Subir
open_duration: 20s
close_action:
- switch.turn_on: C3_Bajar
close_duration: 20s
stop_action:
- switch.turn_on: C3_UnLock
has_built_in_endstop: true