Hello, I have configured an RGBWW strip in esphome without much hassle and I would like to create an automation based on the different stages of my 3D printing (Bambulab 3D printer). For example, turn it on blue when leveling the plateua, turn it off when using Lidar, white during printing and green when printing is finished. The problem is that I only have one entity ( light ). I would like to be able to trigger several types of color and I don’t see how.
Use the light turn on service.
e.g.
- service: light.turn_on
target:
entity_id: light.your_light_here
data:
color_name: blue
There are other options for the color, see: https://www.home-assistant.io/integrations/light/#service-lightturn_on
Ok fine! . Exactly what i wanted. Thanks a lot.
Just another question: where must I use the light turn on service? In the configuration yaml or in the configuration file of the esphome device or in the automations yaml?
It would be easiest to create an automation in Home assistant. Use the service in the actions.
It could be automated in ESPHome but you would also need to get the values from the 3D printer into ESPHome so you could trigger an automation on them. As these values would likely be coming from Home Assistant there is no advantage to doing it this way.
Ok, I understand. Thank you!