diff --git a/common/status_led_atom.yaml b/common/status_led_atom.yaml new file mode 100644 index 0000000..1ced824 --- /dev/null +++ b/common/status_led_atom.yaml @@ -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 diff --git a/mcu-echo-1.yaml b/mcu-echo-1.yaml index d0d9379..fac21fe 100644 --- a/mcu-echo-1.yaml +++ b/mcu-echo-1.yaml @@ -5,7 +5,7 @@ # GPIO22 -> speaker_id (speaker i2s_audio i2s_dout_pin) # GPIO23 -> echo_microphone (microphone i2s_audio i2s_din_pin) # 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 # GPIO33 -> speaker_bus (i2s_audio i2s_lrclk_pin) # GPIO39 -> Button (binary_sensor gpio) (inverted) @@ -30,6 +30,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: neo_buildin external_components: # speaker media player: skip a failed playlist item (esphome#19862), drop once merged diff --git a/mcu-fireplace.yaml b/mcu-fireplace.yaml index 0c82313..da8387e 100644 --- a/mcu-fireplace.yaml +++ b/mcu-fireplace.yaml @@ -10,7 +10,7 @@ # GPIO23 RS485 Tx # GPIO25 I2C1 SDA - red -> i2c (i2c sda) # GPIO26 I2C0 SDA - white -# GPIO27 NEO 1x +# GPIO27 NEO 1x -> atom_led (status LED, common/status_led_atom.yaml) # GPIO32 I2C0 SCL # GPIO33 RS485 Rx # GPIO39 BUTTON -> Status Button (binary_sensor gpio) @@ -46,6 +46,7 @@ external_components: packages: common: !include common/common.yaml ipv6_only: !include common/ipv6_only.yaml + status_led: !include common/status_led_atom.yaml i2c: diff --git a/mcu-gate.yaml b/mcu-gate.yaml index a489152..97d6d33 100644 --- a/mcu-gate.yaml +++ b/mcu-gate.yaml @@ -10,7 +10,7 @@ # GPIO23 RS485 TX # GPIO25 I2C1 SDA red # 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) # GPIO33 RS485 RX # GPIO39 BUTTON @@ -35,6 +35,7 @@ esp32: packages: common: !include common/common.yaml ipv6_only: !include common/ipv6_only.yaml + status_led: !include common/status_led_atom.yaml button: - platform: output diff --git a/mcu-heater.yaml b/mcu-heater.yaml index 2a743df..5170d5b 100644 --- a/mcu-heater.yaml +++ b/mcu-heater.yaml @@ -10,7 +10,7 @@ # GPIO23 UART1 RX -> uart_modbus (uart rx_pin) # GPIO25 I2C1 SDA -> i2c (i2c sda) # GPIO26 I2C0 SDA -# GPIO27 NEO +# GPIO27 NEO -> atom_led (status LED, common/status_led_atom.yaml) # GPIO32 I2C0 SCL # GPIO33 UART1 TX -> uart_modbus (uart tx_pin) # GPIO39 BUTTON @@ -56,6 +56,7 @@ external_components: packages: common: !include common/common.yaml ipv6_only: !include common/ipv6_only.yaml + status_led: !include common/status_led_atom.yaml #logger: # level: VERBOSE diff --git a/mcu-kitchen.yaml b/mcu-kitchen.yaml index 2a26d62..7713820 100644 --- a/mcu-kitchen.yaml +++ b/mcu-kitchen.yaml @@ -10,7 +10,7 @@ # GPIO23 RS485 Tx # GPIO25 I2C1 SDA - red -> i2c (i2c sda) # GPIO26 I2C0 SDA - white -# GPIO27 NEO 1x +# GPIO27 NEO 1x -> atom_led (status LED, common/status_led_atom.yaml) # GPIO32 I2C0 SCL # GPIO33 RS485 Rx # GPIO39 BUTTON -> Status Button (binary_sensor gpio) @@ -54,6 +54,7 @@ esp32: packages: common: !include common/common.yaml ipv6_only: !include common/ipv6_only.yaml + status_led: !include common/status_led_atom.yaml api: reboot_timeout: 300s diff --git a/mcu-mains-power.yaml b/mcu-mains-power.yaml index fa730d6..098be42 100644 --- a/mcu-mains-power.yaml +++ b/mcu-mains-power.yaml @@ -10,7 +10,7 @@ # GPIO23 UART1 RX # GPIO25 I2C1 SDA # 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) # GPIO33 UART1 TX # GPIO39 BUTTON @@ -42,6 +42,7 @@ esp32: packages: common: !include common/common.yaml ipv6_only: !include common/ipv6_only.yaml + status_led: !include common/status_led_atom.yaml modbus: uart_id: uart_modbus diff --git a/mcu-patio.yaml b/mcu-patio.yaml index fc96b8a..031df26 100644 --- a/mcu-patio.yaml +++ b/mcu-patio.yaml @@ -10,7 +10,7 @@ # GPIO23 RS485 Tx # GPIO25 I2C1 SDA - red -> i2c (i2c sda) # GPIO26 I2C0 SDA - white -# GPIO27 NEO 1x +# GPIO27 NEO 1x -> atom_led (status LED, common/status_led_atom.yaml) # GPIO32 I2C0 SCL # GPIO33 RS485 Rx # GPIO39 BUTTON -> Status Button (binary_sensor gpio) @@ -55,6 +55,7 @@ esp32: packages: common: !include common/common.yaml ipv6_only: !include common/ipv6_only.yaml + status_led: !include common/status_led_atom.yaml i2c: diff --git a/mcu-rf.yaml b/mcu-rf.yaml index 06fde92..a9af2e3 100644 --- a/mcu-rf.yaml +++ b/mcu-rf.yaml @@ -7,6 +7,7 @@ # GPIO23 -> spi (spi clk_pin) # GPIO25 -> rf_rx (remote_receiver) # GPIO26 Grove SDA +# GPIO27 NEO (ATOM RGB LED) -> atom_led (status LED, common/status_led_atom.yaml) # GPIO32 Grove SCL # GPIO33 -> cc1101 (cc1101 cs_pin) substitutions: @@ -30,6 +31,7 @@ esp32: packages: common: !include common/common.yaml ipv6_only: !include common/ipv6_only.yaml + status_led: !include common/status_led_atom.yaml spi: clk_pin: 23 diff --git a/mcu-shed.yaml b/mcu-shed.yaml index a96fba4..ed46ef8 100644 --- a/mcu-shed.yaml +++ b/mcu-shed.yaml @@ -6,6 +6,7 @@ # GPIO22 -> Garden Light (switch gpio) # GPIO25 -> i2c (i2c sda) # GPIO26 Grove SDA +# GPIO27 NEO (ATOM RGB LED) -> atom_led (status LED, common/status_led_atom.yaml) # GPIO32 Grove SCL # I2C: # 0x27 pca9554_module (pca9554) @@ -32,6 +33,7 @@ esp32: packages: common: !include common/common.yaml ipv6_only: !include common/ipv6_only.yaml + status_led: !include common/status_led_atom.yaml i2c: sda: 25 diff --git a/mcu-well.yaml b/mcu-well.yaml index 5f28a74..d23e1f7 100644 --- a/mcu-well.yaml +++ b/mcu-well.yaml @@ -5,6 +5,7 @@ # GPIO23 -> modbus_uart (uart tx_pin) # GPIO25 -> i2c (i2c sda) # GPIO26 Grove SDA +# GPIO27 NEO (ATOM RGB LED) -> atom_led (status LED, common/status_led_atom.yaml) # GPIO32 Grove SCL # GPIO33 -> modbus_uart (uart rx_pin) # I2C: @@ -45,6 +46,7 @@ esp32: packages: common: !include common/common.yaml ipv6_only: !include common/ipv6_only.yaml + status_led: !include common/status_led_atom.yaml api: actions: