mirror of
https://github.com/randybb/esphome-configs.git
synced 2026-10-14 08:35:12 +02:00
Add status_led package: network, API, error and OTA status on a visible RGB light
Red blink without network, orange without an API client, purple on a component error, blue blink during OTA, green when things are back to normal, then the light returns to its previous state. echo uses it on the gateway LED ring; drop its status_led on GPIO23, which never worked because the ledc output owns that pin.
This commit is contained in:
1 parent
6845679bc0
commit
6a3002d9b7
2 files changed
+132
-9
No files matched your search
+6
-9
@@ -5,7 +5,7 @@
|
||||
# GPIO19 -> speaker_bus (i2s_audio i2s_bclk_pin)
|
||||
# GPIO21 Gateway LED ring red -> led_red (output ledc)
|
||||
# GPIO22 -> speaker_id (speaker i2s_audio i2s_dout_pin)
|
||||
# GPIO23 Gateway LED ring blue -> led_status (light status_led); led_blue (output ledc)
|
||||
# GPIO23 Gateway LED ring blue -> led_blue (output ledc)
|
||||
# GPIO25 Gateway LED ring green -> led_green (output ledc)
|
||||
# GPIO26 Grove SDA -> i2c (i2c sda)
|
||||
# GPIO27 ATOM onboard RGB LED (inside, not visible)
|
||||
@@ -33,6 +33,10 @@ esp32:
|
||||
packages:
|
||||
common: !include common/common.yaml
|
||||
ipv6_only: !include common/ipv6_only.yaml
|
||||
status_led: !include
|
||||
file: common/status_led.yaml
|
||||
vars:
|
||||
light_id: led_light
|
||||
|
||||
external_components:
|
||||
# speaker media player: skip a failed playlist item (esphome#19862), drop once merged
|
||||
@@ -90,11 +94,6 @@ light:
|
||||
red: led_red
|
||||
green: led_green
|
||||
blue: led_blue
|
||||
- platform: status_led
|
||||
id: led_status
|
||||
pin:
|
||||
number: 23
|
||||
allow_other_uses: true
|
||||
|
||||
output:
|
||||
- platform: ledc
|
||||
@@ -105,9 +104,7 @@ output:
|
||||
pin: 25
|
||||
- platform: ledc
|
||||
id: led_blue
|
||||
pin:
|
||||
number: 23
|
||||
allow_other_uses: true
|
||||
pin: 23
|
||||
|
||||
i2s_audio:
|
||||
- id: speaker_bus
|
||||
|
||||
Reference in new issue
Block a user