Through some searching and help I have managed to get this hardware running via hassio and I can display on the matrix and also use the button on the device to trigger events.
What I am struggling with is trying to get the ‘display’ to be identified in hassio where I can trigger the display to be turned on when another event triggers. Right now I cant find the light or display entities below in hassio.
First esphome setup so appreciate some help.
esphome:
name: esphome-web-0dec48
friendly_name: M5 Matrix
esp32:
board: m5stack-atom
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "xxx"
ota:
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Esphome-Web-0Dec48"
password: "xxx"
captive_portal:
binary_sensor:
- platform: gpio # btn
name: "Timer Button"
id: button1
pin:
number: 39
inverted: true
light:
- platform: neopixelbus
type: GRB
variant: WS2812x
pin: 27
num_leds: 25
id: led_matrix_light
color_correct: [30%, 30%, 30%]
restore_mode: ALWAYS_OFF
display:
- platform: addressable_light
id: led_matrix_display
addressable_light_id: led_matrix_light
width: 5
height: 5
rotation: 180
update_interval: 16ms
lambda: |-
// Draw a bulls-eye pattern
Color red = Color(0xFF0000);
Color green = Color(0x00FF00);
Color blue = Color(0x0000FF);
it.rectangle(0, 0, 5, 5, red);
it.rectangle(1, 1, 5, 5, green);
it.rectangle(2, 2, 4, 4, blue);
it.rectangle(3, 3, 2, 2, red);