When uploading the firmware based on your m5stack_air_quality.yaml my M5stack display stays black. The backlight is working and the device is also recognized by Home-Assistant and my router though. The middle button is switching off the display too. So everything is working okay, except for the display.
To get the display to work I had to define the colors like this:
color:
- id: RED
red: 100%
green: 0%
blue: 0%
- id: BLUE
red: 0%
green: 0%
blue: 100%
- id: WHITE
red: 100%
green: 100%
blue: 100%
and remove the old color definitions in the lambda
When uploading the firmware based on your m5stack_air_quality.yaml my M5stack display stays black. The backlight is working and the device is also recognized by Home-Assistant and my router though. The middle button is switching off the display too. So everything is working okay, except for the display.
To get the display to work I had to define the colors like this:
and remove the old color definitions in the lambda