I’m looking for a way to configure my red series switch notification LEDs in a more user friendly way than writing scripts to interact with zwave.js switch parameters. Ideally it would all be doable in the UI without writing a single line of code. Exactly as with light entity which, in essence, the notification LEDs are : RGB lights. Has anyone thought of creating independent light entity mapped to the right switch parameters?
You can use it to figure out the parameter values that you can use to directly control the LED bar color, intensity, and effects (notification patterns)
When you have the values then you just set the related parameter to the desired value. I don’t know specifically how to do that in HA, but its very easy in Hubitat and SmartThings and I suspect its similarly simple in HA with whatever method it uses to ‘set parameter = value’
thanks, I did not see that tool before but the maths are already part of the script in the link I provided “{# Preform the Inovelli mind bending mathmatics automatically for us! #}
{{ colors[color|title] + (level * 256) + (durations[duration|title] * 65536) + (effects[effect|title] * 16777216) }}”
Its also easy to control parameters in HA manually but it is not so easy to control multiple parameter on multiple switch simultaneously without writing some code and this is where I am looking for a way to abstract that complexity into an HA specific concept called an entity. It would be nice for a generic solution to exist but my focus is on the notification LED parameters which could be mapped to an already existing entity class for lights.
You’ve seen the template light entity, right? I’d think that’s what you’d want to build, but I really don’t know how. Maybe with it and Brian’s stuff you can come up with the values for each item for the template light.
It’d probably not be very easy to do fully. To change brightness you should read parameter 16, pull out the 3 parts not changing (color, effect duration and effect type) and then write it back with the new brightness ( brightness / 255 * 10)|int )
But, you could start with trying brightness and color temperature by fixing the effect duration to forever = 255 and the effect to solid = 1 and then templating the color temp and level into light and see what happens. Get the values from the switch only if it’s necessary.
Who is deciding what data point gets presented as an Entity and which is presented in some other manner? I’d think it’s the creator of the HASS integration and not the manufacturer?
I didn’t know there was a light templating option in HA. That’s probably what I was looking for. I’ll look into it but I agree that it doesnt look simple. Thanks.
Another option might be to bring the zwave devices into HA with MQTT (zwavejs2MQTT) and then use the MQTT light platform. Probably not ideal though, you’d have to disable all the duplicate entities that’d create that you don’t want, but then you also might be able to do that in zjs2MQTT.