-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflip-c3-alt.yaml
197 lines (170 loc) · 4.01 KB
/
flip-c3-alt.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
# DEPRECATED????? - 24.09
#
# All Modules 23.04-dev
# Voidbox Industries & Chloe Madison
# VDBX.io / @clomads
# CC-BY-SA 4.0
# Use this as a baseline to connect VDBX Flip Modules
#
substitutions:
name: "flip-c3-alt"
friendly_name: "FLIP-C3 ALT"
project_name: "vdbxio.FLIP-C3-alt"
project_version: "0.9.6"
ap_password: "GenericPassword"
package_git: "github://vdbxio/wiki/esphome/flip-c3-alt.yaml"
status_pin: "10"
rgb_pin: "8"
# FLIP C3 Baseline Package 23.04-dev
# Voidbox Industries & Chloe Madison
# VDBX.io / @clomads
# CC-BY-SA 4.0
dashboard_import:
package_import_url: ${package_git}
esphome:
name: ${name}
friendly_name: ${friendly_name}
name_add_mac_suffix: True
project:
name: "${project_name}"
version: "${project_version}"
esp32:
board: esp32-c3-devkitm-1
framework:
type: arduino
i2c:
sda: 1
scl: 0
scan: True
id: bus_a
frequency: 100k
logger:
api:
ota:
platform: esphome
time:
- platform: homeassistant
button:
- platform: restart
name: ${friendly_name} Restart
- platform: factory_reset
name: Restart with Factory Default Settings
disabled_by_default: True
# WIFI
wifi:
# ssid: initial_ap # !secret wifi_ssid
# password: asdfasdfasdfasdf # !secret wifi_password
ap:
password: ${ap_password}
# # default is 20, 17 is recommended.
# output_power: 17
# # using fast_connect as default since it is required for hidden networks.
# fast_connect: true
# forced_addr: 82
# global_addr: global_forced_addr
# ap:
# ap_timeout: $wifi_ap_timeout
captive_portal:
web_server:
local: True
sensor:
- platform: wifi_signal # Reports the WiFi signal strength/RSSI in dB
name: "WiFi Signal dB"
id: wifi_signal_db
update_interval: 30s
entity_category: "diagnostic"
- platform: copy # Reports the WiFi signal strength in %
source_id: wifi_signal_db
name: "WiFi Signal Percent"
filters:
- lambda: return min(max(2 * (x + 100.0), 0.0), 100.0);
unit_of_measurement: "%"
entity_category: "diagnostic"
- platform: internal_temperature
name: "ESP32-C3 Temperature"
- platform: adc
pin: 2
name: "ADC Pin 2"
accuracy_decimals: 5
update_interval: 1s
attenuation: auto
filters:
- multiply: 2.0
- platform: adc
pin: 2
name: "ADC Pin 2"
accuracy_decimals: 5
update_interval: 1s
attenuation: auto
filters:
- multiply: 2.0
- platform: adc
pin: 3
name: "ADC Pin 3"
accuracy_decimals: 5
update_interval: 1s
attenuation: auto
filters:
- multiply: 2.0
wled:
light:
- platform: status_led
name: "Status LED"
pin: ${status_pin}
- platform: neopixelbus
type: GRB
variant: WS2812
pin: ${rgb_pin}
restore_mode: RESTORE_AND_OFF
num_leds: 1
name: "RGB LEDs"
effects:
- pulse:
- pulse:
name: "Fast Pulse"
transition_length: 0.5s
update_interval: 0.5s
- pulse:
name: "Slow Pulse"
transition_length: 2s
update_interval: 2s
- strobe:
- strobe:
name: Strobe Custom
colors:
- state: true
brightness: 100%
red: 100%
green: 90%
blue: 0%
duration: 500ms
- state: false
duration: 250ms
- state: true
brightness: 100%
red: 0%
green: 100%
blue: 0%
duration: 500ms
- flicker:
- addressable_rainbow:
- addressable_rainbow:
name: "Rainbow Slow"
speed: 1
width: 1
- addressable_color_wipe:
- addressable_color_wipe:
name: Color Wipe Custom
colors:
- red: 100%
green: 100%
blue: 100%
num_leds: 1
- red: 0%
green: 0%
blue: 0%
num_leds: 1
add_led_interval: 100ms
reverse: false
- wled:
# port: 21324