mirror of
https://github.com/randybb/esphome-configs.git
synced 2026-10-14 08:35:12 +02:00
Status LED on every ATOM device (except the vehicle beacons)
common/status_led_atom.yaml puts common/status_led.yaml on the ATOM Lite's own RGB LED (G27, 64 RMT symbols to leave room for IR/RF). echo-1 uses its existing LED light.
This commit is contained in:
1 parent
422b334582
commit
7517c301ac
11 files changed
+41
-7
No files matched your search
@@ -0,0 +1,18 @@
|
|||||||
|
---
|
||||||
|
# Status LED on the M5Stack ATOM Lite's own RGB LED (G27), see common/status_led.yaml
|
||||||
|
packages:
|
||||||
|
status_led: !include
|
||||||
|
file: status_led.yaml
|
||||||
|
vars:
|
||||||
|
light_id: atom_led
|
||||||
|
|
||||||
|
light:
|
||||||
|
- platform: esp32_rmt_led_strip
|
||||||
|
id: atom_led
|
||||||
|
internal: true
|
||||||
|
pin: 27
|
||||||
|
num_leds: 1
|
||||||
|
rmt_symbols: 64 # 1 LED is 24 bits; leave RMT memory for remote_transmitter/receiver
|
||||||
|
chipset: ws2812
|
||||||
|
channel_colors: GRB
|
||||||
|
restore_mode: ALWAYS_OFF
|
||||||
+5
-1
@@ -5,7 +5,7 @@
|
|||||||
# GPIO22 -> speaker_id (speaker i2s_audio i2s_dout_pin)
|
# GPIO22 -> speaker_id (speaker i2s_audio i2s_dout_pin)
|
||||||
# GPIO23 -> echo_microphone (microphone i2s_audio i2s_din_pin)
|
# GPIO23 -> echo_microphone (microphone i2s_audio i2s_din_pin)
|
||||||
# GPIO26 Grove SDA
|
# GPIO26 Grove SDA
|
||||||
# GPIO27 -> LED (light esp32_rmt_led_strip)
|
# GPIO27 ATOM RGB LED -> LED [neo_buildin] (light esp32_rmt_led_strip), also status
|
||||||
# GPIO32 Grove SCL
|
# GPIO32 Grove SCL
|
||||||
# GPIO33 -> speaker_bus (i2s_audio i2s_lrclk_pin)
|
# GPIO33 -> speaker_bus (i2s_audio i2s_lrclk_pin)
|
||||||
# GPIO39 -> Button (binary_sensor gpio) (inverted)
|
# GPIO39 -> Button (binary_sensor gpio) (inverted)
|
||||||
@@ -30,6 +30,10 @@ esp32:
|
|||||||
packages:
|
packages:
|
||||||
common: !include common/common.yaml
|
common: !include common/common.yaml
|
||||||
ipv6_only: !include common/ipv6_only.yaml
|
ipv6_only: !include common/ipv6_only.yaml
|
||||||
|
status_led: !include
|
||||||
|
file: common/status_led.yaml
|
||||||
|
vars:
|
||||||
|
light_id: neo_buildin
|
||||||
|
|
||||||
external_components:
|
external_components:
|
||||||
# speaker media player: skip a failed playlist item (esphome#19862), drop once merged
|
# speaker media player: skip a failed playlist item (esphome#19862), drop once merged
|
||||||
|
|||||||
+2
-1
@@ -10,7 +10,7 @@
|
|||||||
# GPIO23 RS485 Tx
|
# GPIO23 RS485 Tx
|
||||||
# GPIO25 I2C1 SDA - red -> i2c (i2c sda)
|
# GPIO25 I2C1 SDA - red -> i2c (i2c sda)
|
||||||
# GPIO26 I2C0 SDA - white
|
# GPIO26 I2C0 SDA - white
|
||||||
# GPIO27 NEO 1x
|
# GPIO27 NEO 1x -> atom_led (status LED, common/status_led_atom.yaml)
|
||||||
# GPIO32 I2C0 SCL
|
# GPIO32 I2C0 SCL
|
||||||
# GPIO33 RS485 Rx
|
# GPIO33 RS485 Rx
|
||||||
# GPIO39 BUTTON -> Status Button (binary_sensor gpio)
|
# GPIO39 BUTTON -> Status Button (binary_sensor gpio)
|
||||||
@@ -46,6 +46,7 @@ external_components:
|
|||||||
packages:
|
packages:
|
||||||
common: !include common/common.yaml
|
common: !include common/common.yaml
|
||||||
ipv6_only: !include common/ipv6_only.yaml
|
ipv6_only: !include common/ipv6_only.yaml
|
||||||
|
status_led: !include common/status_led_atom.yaml
|
||||||
|
|
||||||
|
|
||||||
i2c:
|
i2c:
|
||||||
|
|||||||
+2
-1
@@ -10,7 +10,7 @@
|
|||||||
# GPIO23 RS485 TX
|
# GPIO23 RS485 TX
|
||||||
# GPIO25 I2C1 SDA red
|
# GPIO25 I2C1 SDA red
|
||||||
# GPIO26 I2C0 SDA white
|
# GPIO26 I2C0 SDA white
|
||||||
# GPIO27 NEO
|
# GPIO27 NEO -> atom_led (status LED, common/status_led_atom.yaml)
|
||||||
# GPIO32 I2C0 SCL -> gate_ogi_state (binary_sensor gpio) (inverted); gate_ogi_blink (binary_sensor gpio) (inverted)
|
# GPIO32 I2C0 SCL -> gate_ogi_state (binary_sensor gpio) (inverted); gate_ogi_blink (binary_sensor gpio) (inverted)
|
||||||
# GPIO33 RS485 RX
|
# GPIO33 RS485 RX
|
||||||
# GPIO39 BUTTON
|
# GPIO39 BUTTON
|
||||||
@@ -35,6 +35,7 @@ esp32:
|
|||||||
packages:
|
packages:
|
||||||
common: !include common/common.yaml
|
common: !include common/common.yaml
|
||||||
ipv6_only: !include common/ipv6_only.yaml
|
ipv6_only: !include common/ipv6_only.yaml
|
||||||
|
status_led: !include common/status_led_atom.yaml
|
||||||
|
|
||||||
button:
|
button:
|
||||||
- platform: output
|
- platform: output
|
||||||
|
|||||||
+2
-1
@@ -10,7 +10,7 @@
|
|||||||
# GPIO23 UART1 RX -> uart_modbus (uart rx_pin)
|
# GPIO23 UART1 RX -> uart_modbus (uart rx_pin)
|
||||||
# GPIO25 I2C1 SDA -> i2c (i2c sda)
|
# GPIO25 I2C1 SDA -> i2c (i2c sda)
|
||||||
# GPIO26 I2C0 SDA
|
# GPIO26 I2C0 SDA
|
||||||
# GPIO27 NEO
|
# GPIO27 NEO -> atom_led (status LED, common/status_led_atom.yaml)
|
||||||
# GPIO32 I2C0 SCL
|
# GPIO32 I2C0 SCL
|
||||||
# GPIO33 UART1 TX -> uart_modbus (uart tx_pin)
|
# GPIO33 UART1 TX -> uart_modbus (uart tx_pin)
|
||||||
# GPIO39 BUTTON
|
# GPIO39 BUTTON
|
||||||
@@ -56,6 +56,7 @@ external_components:
|
|||||||
packages:
|
packages:
|
||||||
common: !include common/common.yaml
|
common: !include common/common.yaml
|
||||||
ipv6_only: !include common/ipv6_only.yaml
|
ipv6_only: !include common/ipv6_only.yaml
|
||||||
|
status_led: !include common/status_led_atom.yaml
|
||||||
|
|
||||||
#logger:
|
#logger:
|
||||||
# level: VERBOSE
|
# level: VERBOSE
|
||||||
|
|||||||
+2
-1
@@ -10,7 +10,7 @@
|
|||||||
# GPIO23 RS485 Tx
|
# GPIO23 RS485 Tx
|
||||||
# GPIO25 I2C1 SDA - red -> i2c (i2c sda)
|
# GPIO25 I2C1 SDA - red -> i2c (i2c sda)
|
||||||
# GPIO26 I2C0 SDA - white
|
# GPIO26 I2C0 SDA - white
|
||||||
# GPIO27 NEO 1x
|
# GPIO27 NEO 1x -> atom_led (status LED, common/status_led_atom.yaml)
|
||||||
# GPIO32 I2C0 SCL
|
# GPIO32 I2C0 SCL
|
||||||
# GPIO33 RS485 Rx
|
# GPIO33 RS485 Rx
|
||||||
# GPIO39 BUTTON -> Status Button (binary_sensor gpio)
|
# GPIO39 BUTTON -> Status Button (binary_sensor gpio)
|
||||||
@@ -54,6 +54,7 @@ esp32:
|
|||||||
packages:
|
packages:
|
||||||
common: !include common/common.yaml
|
common: !include common/common.yaml
|
||||||
ipv6_only: !include common/ipv6_only.yaml
|
ipv6_only: !include common/ipv6_only.yaml
|
||||||
|
status_led: !include common/status_led_atom.yaml
|
||||||
|
|
||||||
api:
|
api:
|
||||||
reboot_timeout: 300s
|
reboot_timeout: 300s
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
# GPIO23 UART1 RX
|
# GPIO23 UART1 RX
|
||||||
# GPIO25 I2C1 SDA
|
# GPIO25 I2C1 SDA
|
||||||
# GPIO26 I2C0 SDA -> uart_modbus (uart rx_pin)
|
# GPIO26 I2C0 SDA -> uart_modbus (uart rx_pin)
|
||||||
# GPIO27 NEO
|
# GPIO27 NEO -> atom_led (status LED, common/status_led_atom.yaml)
|
||||||
# GPIO32 I2C0 SCL -> uart_modbus (uart tx_pin)
|
# GPIO32 I2C0 SCL -> uart_modbus (uart tx_pin)
|
||||||
# GPIO33 UART1 TX
|
# GPIO33 UART1 TX
|
||||||
# GPIO39 BUTTON
|
# GPIO39 BUTTON
|
||||||
@@ -42,6 +42,7 @@ esp32:
|
|||||||
packages:
|
packages:
|
||||||
common: !include common/common.yaml
|
common: !include common/common.yaml
|
||||||
ipv6_only: !include common/ipv6_only.yaml
|
ipv6_only: !include common/ipv6_only.yaml
|
||||||
|
status_led: !include common/status_led_atom.yaml
|
||||||
|
|
||||||
modbus:
|
modbus:
|
||||||
uart_id: uart_modbus
|
uart_id: uart_modbus
|
||||||
|
|||||||
+2
-1
@@ -10,7 +10,7 @@
|
|||||||
# GPIO23 RS485 Tx
|
# GPIO23 RS485 Tx
|
||||||
# GPIO25 I2C1 SDA - red -> i2c (i2c sda)
|
# GPIO25 I2C1 SDA - red -> i2c (i2c sda)
|
||||||
# GPIO26 I2C0 SDA - white
|
# GPIO26 I2C0 SDA - white
|
||||||
# GPIO27 NEO 1x
|
# GPIO27 NEO 1x -> atom_led (status LED, common/status_led_atom.yaml)
|
||||||
# GPIO32 I2C0 SCL
|
# GPIO32 I2C0 SCL
|
||||||
# GPIO33 RS485 Rx
|
# GPIO33 RS485 Rx
|
||||||
# GPIO39 BUTTON -> Status Button (binary_sensor gpio)
|
# GPIO39 BUTTON -> Status Button (binary_sensor gpio)
|
||||||
@@ -55,6 +55,7 @@ esp32:
|
|||||||
packages:
|
packages:
|
||||||
common: !include common/common.yaml
|
common: !include common/common.yaml
|
||||||
ipv6_only: !include common/ipv6_only.yaml
|
ipv6_only: !include common/ipv6_only.yaml
|
||||||
|
status_led: !include common/status_led_atom.yaml
|
||||||
|
|
||||||
|
|
||||||
i2c:
|
i2c:
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
# GPIO23 -> spi (spi clk_pin)
|
# GPIO23 -> spi (spi clk_pin)
|
||||||
# GPIO25 -> rf_rx (remote_receiver)
|
# GPIO25 -> rf_rx (remote_receiver)
|
||||||
# GPIO26 Grove SDA
|
# GPIO26 Grove SDA
|
||||||
|
# GPIO27 NEO (ATOM RGB LED) -> atom_led (status LED, common/status_led_atom.yaml)
|
||||||
# GPIO32 Grove SCL
|
# GPIO32 Grove SCL
|
||||||
# GPIO33 -> cc1101 (cc1101 cs_pin)
|
# GPIO33 -> cc1101 (cc1101 cs_pin)
|
||||||
substitutions:
|
substitutions:
|
||||||
@@ -30,6 +31,7 @@ esp32:
|
|||||||
packages:
|
packages:
|
||||||
common: !include common/common.yaml
|
common: !include common/common.yaml
|
||||||
ipv6_only: !include common/ipv6_only.yaml
|
ipv6_only: !include common/ipv6_only.yaml
|
||||||
|
status_led: !include common/status_led_atom.yaml
|
||||||
|
|
||||||
spi:
|
spi:
|
||||||
clk_pin: 23
|
clk_pin: 23
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
# GPIO22 -> Garden Light (switch gpio)
|
# GPIO22 -> Garden Light (switch gpio)
|
||||||
# GPIO25 -> i2c (i2c sda)
|
# GPIO25 -> i2c (i2c sda)
|
||||||
# GPIO26 Grove SDA
|
# GPIO26 Grove SDA
|
||||||
|
# GPIO27 NEO (ATOM RGB LED) -> atom_led (status LED, common/status_led_atom.yaml)
|
||||||
# GPIO32 Grove SCL
|
# GPIO32 Grove SCL
|
||||||
# I2C:
|
# I2C:
|
||||||
# 0x27 pca9554_module (pca9554)
|
# 0x27 pca9554_module (pca9554)
|
||||||
@@ -32,6 +33,7 @@ esp32:
|
|||||||
packages:
|
packages:
|
||||||
common: !include common/common.yaml
|
common: !include common/common.yaml
|
||||||
ipv6_only: !include common/ipv6_only.yaml
|
ipv6_only: !include common/ipv6_only.yaml
|
||||||
|
status_led: !include common/status_led_atom.yaml
|
||||||
|
|
||||||
i2c:
|
i2c:
|
||||||
sda: 25
|
sda: 25
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
# GPIO23 -> modbus_uart (uart tx_pin)
|
# GPIO23 -> modbus_uart (uart tx_pin)
|
||||||
# GPIO25 -> i2c (i2c sda)
|
# GPIO25 -> i2c (i2c sda)
|
||||||
# GPIO26 Grove SDA
|
# GPIO26 Grove SDA
|
||||||
|
# GPIO27 NEO (ATOM RGB LED) -> atom_led (status LED, common/status_led_atom.yaml)
|
||||||
# GPIO32 Grove SCL
|
# GPIO32 Grove SCL
|
||||||
# GPIO33 -> modbus_uart (uart rx_pin)
|
# GPIO33 -> modbus_uart (uart rx_pin)
|
||||||
# I2C:
|
# I2C:
|
||||||
@@ -45,6 +46,7 @@ esp32:
|
|||||||
packages:
|
packages:
|
||||||
common: !include common/common.yaml
|
common: !include common/common.yaml
|
||||||
ipv6_only: !include common/ipv6_only.yaml
|
ipv6_only: !include common/ipv6_only.yaml
|
||||||
|
status_led: !include common/status_led_atom.yaml
|
||||||
|
|
||||||
api:
|
api:
|
||||||
actions:
|
actions:
|
||||||
|
|||||||
Reference in new issue
Block a user