I highly recommend you do not do this. I did it, I do not know what I am doing, and it worked for me. It could possibly blow up your house (okay, maybe only wreck your home assistant installation). Please use extreme caution.
cd /var/lib/docker/overlay2/[randomStringYouWillHaveToFigureOut]/merged/usr/src/homeassistant/homeassistant/components/zwave_js
mv discovery.py discover.py.orig
wget https://raw.githubusercontent.com/home-assistant/core/56ab1e52011c948e2ba96808c2ab9f4e518078a7/homeassistant/components/zwave_js/discovery.py
The above gives me a light in HA where I can click any color I like. However, I cannot figure out how to turn off the LED. Also making it blink is a mystery still.
EDIT: To turn off an LED, we can simply call the service mqtt.publish with
Sort of a hack right? And besides that, there is no âHome assistantâ tab when using default discovery (zwavejs integration).
I am pretty happy with my mqtt added light entities - but I really think these should be discovered as lights, without us doing anything.
The feature is there to change the config. It would be better if the discovery worked out of the box, but I am just not sure how to add it to the official release. I have looked into it, but not fully understand what it takes yet.
Anyone got the blinking feature working? I cannot understand the manual regarding this - we are supposed to use the command class switch color set, some bits of the warm white âŚ
So as far as I understand there is still no way to control the lights in the switch when using Z-wave js? The only way to do this so far are the methods mentioned by @ scaarup and @ Bayees
It would be a lot more elegant if the leds were exposed as regular .light in HA.
With my approach, I have the buttons as light entities. The only issue is when the button is lit with a specifik color and I press the button and it changes the LED to active. It will return to off and not notify HA.
Have you tried setting âInternal LED control is disabled, only externalâ for the button under Pushbutton 1 LED indication in the config for the switch?
That is how I set it up with the old z wave integration and I controlled the light on/off and color from HA.