Has anyone found out how to properly implement color prestaging for the 42’s such that when the lights are turned on they are already set at the proper color?
I use adaptive lighting integration, but haven’t been able to get this to set the lights properly without turning them on, even using the turn_on as false in the service call.
Just looking to see if anyone has figured this out? Thanks.
I just use MQTT to publish the message (the exact topic may vary depending on how you set up zwavejs2mqtt) Here is what mine would look like to set Node 8 to the color green. This works even if the bulb is off:
To set the default color, brightness and transition values when the light is turned on, create a custom light_profiles.csv, normally located in the default configuration folder where you find configuration.
I think that would work for a constant start, but I rely heavily on circadian rhythym via adaptive lighting integration. I’d like to pre-stage the color changes (2700K to 6500K) throughout the day.
There is a way to set the color via the ZWaveJSMQTT control panel (under the “Color Switch” settings, targetColor). You can pass a value like jtronicus mentioned: { "warmWhite": 0, "coldWhite": 0, "red": 0, "green": 255, "blue": 0 }. I believe the HA service zwave_js.set_value can be used to accomplish this… just need to figure out the proper parameters for things like Command Class ID and all that. I’m fiddling with it now, will report back if I figure it out.
Command Class ID is 51. Though I can’t figure out the value format for “targetColor”, but was able to get things working with hexColor. Here is an example service call.