Hello!
I bought two of these M5 lights to use as notification LEDs for things: ATOM Matrix ESP32 Development Kit | m5stack-store
I found a simple configuration to make it show up in Home Assistant as a light that I can change colors on but I would like to make it flash. Is this possible? Below is the code I found…not sure if I’m missing something to bring the ability to make it flash. It’s also kind of dim…I’m wondering if that can be adjusted with updated code or if that’s just how the light is. This is my first ESP device so I just got all of that installed this morning. Thank you very much for reading this!
Here’s the code I am using:
esphome:
name: esphome-web-0dec48
friendly_name: DoorAlertM5
esp32:
board: m5stack-atom
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "secret key here"
ota:
wifi:
ssid: TM-IoT
password: hunter2
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "DoorAlertM5"
password: "DoorAlertM5"
captive_portal:
binary_sensor:
- platform: gpio # btn
name: "Timer Button"
id: button1
pin:
number: 39
inverted: true
light:
- platform: neopixelbus
name: DoorAlertM5
type: GRB
variant: WS2812x
pin: 27
num_leds: 25
id: led_matrix_light
color_correct: [30%, 30%, 30%]
restore_mode: ALWAYS_OFF