-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathesp-c3-12f.yaml
219 lines (207 loc) · 4.91 KB
/
esp-c3-12f.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
esphome:
name: esp-c3-12f
platformio_options:
board_build.flash_mode: dio
esp32:
board: esp32-c3-devkitm-1
framework:
type: esp-idf
version: recommended
# Custom sdkconfig options
sdkconfig_options:
CONFIG_COMPILER_OPTIMIZATION_SIZE: y
# Advanced tweaking options
advanced:
ignore_efuse_mac_crc: false
variant: esp32c3
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: !secret api_key
ota:
password: !secret api_key
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
fast_connect: on
power_save_mode: none
manual_ip:
static_ip: 192.168.1.51
gateway: 192.168.1.1
subnet: 255.255.255.0
preferences:
flash_write_interval: 15min
button:
- platform: restart
name: "ESP-C3-12F Restart"
- platform: shutdown
name: "ESP-C3-12F Shutdown"
output:
- platform: ledc
pin: GPIO4
id: cold_white_output
- platform: ledc
pin: GPIO5
id: warm_white_output
- platform: ledc
pin: GPIO18
id: hall_night_light
light:
- platform: cwww
name: "Mood Lights"
cold_white: cold_white_output
warm_white: warm_white_output
cold_white_color_temperature: 6500K
warm_white_color_temperature: 3000K
effects:
- pulse:
- random:
- strobe:
- flicker:
- platform: monochromatic
name: "Hall Night Light"
output: hall_night_light
restore_mode: RESTORE_DEFAULT_OFF
remote_receiver:
pin:
number: GPIO10
tolerance: 25%
filter: 250us
idle: 5ms
buffer_size: 4kb
rmt_channel: 2
binary_sensor:
# - platform: gpio
# pin:
# number: GPIO6
# mode: INPUT_PULLUP
# inverted: true
# filters:
# - delayed_on_off: 40ms
# name: "Light Switch Left"
# on_multi_click:
# - timing: # Click
# - ON for at most 0.25s
# - OFF for at least 0.05s
# then:
# - homeassistant.service:
# service: input_boolean.toggle
# data:
# entity_id: input_boolean.light_switch_left_click
# - timing: # Hold
# - ON for at least 0.3s
# then:
# - homeassistant.service:
# service: input_boolean.toggle
# data:
# entity_id: input_boolean.light_switch_left_hold
- platform: gpio
pin:
number: GPIO7
mode: INPUT_PULLUP
inverted: true
filters:
- delayed_on_off: 40ms
name: "Light Switch"
on_multi_click:
- timing: # Click
- ON for at most 0.8s
- OFF for at least 0.05s
then:
- homeassistant.service:
service: input_boolean.toggle
data:
entity_id: input_boolean.light_switch_press
- timing: # Hold
- ON for at least 1s
then:
- homeassistant.service:
service: input_boolean.toggle
data:
entity_id: input_boolean.light_switch_hold
- platform: remote_receiver
filters:
- delayed_off: 500ms
name: "RF Power"
rc_switch_raw:
code: "100110001101111100000001"
protocol: 1
- platform: remote_receiver
filters:
- delayed_off: 500ms
name: "RF Light"
rc_switch_raw:
code: "100110001101111100000100"
protocol: 1
- platform: remote_receiver
filters:
- delayed_off: 500ms
name: "RF Brightness Up"
rc_switch_raw:
code: "100110001101111100000101"
protocol: 1
- platform: remote_receiver
filters:
- delayed_off: 500ms
name: "RF Brightness Down"
rc_switch_raw:
code: "100110001101111100000110"
protocol: 1
- platform: remote_receiver
filters:
- delayed_off: 500ms
name: "RF 100%"
rc_switch_raw:
code: "100110001101111100000111"
protocol: 1
- platform: remote_receiver
filters:
- delayed_off: 500ms
name: "RF 50%"
rc_switch_raw:
code: "100110001101111100001000"
protocol: 1
- platform: remote_receiver
filters:
- delayed_off: 500ms
name: "RF 25%"
rc_switch_raw:
code: "100110001101111100001001"
protocol: 1
- platform: remote_receiver
filters:
- delayed_off: 500ms
name: "RF Mode Up"
rc_switch_raw:
code: "100110001101111100001011"
protocol: 1
- platform: remote_receiver
filters:
- delayed_off: 500ms
name: "RF Mode Down"
rc_switch_raw:
code: "100110001101111100010001"
protocol: 1
- platform: remote_receiver
filters:
- delayed_off: 500ms
name: "RF Speed Up"
rc_switch_raw:
code: "100110001101111100001111"
protocol: 1
- platform: remote_receiver
filters:
- delayed_off: 500ms
name: "RF Speed Down"
rc_switch_raw:
code: "100110001101111100001101"
protocol: 1
- platform: remote_receiver
filters:
- delayed_off: 500ms
name: "RF Speed Both"
rc_switch_raw:
code: "100110001101111100111111"
protocol: 1