I currently have 28 ZEN76 on/off switches, and 4 ZEN77 dimmer switches.
The former are in the switch domain, and the later are in the light domain.
Is there any way to group these two types into one ? The UI does not allow it because of mismatched domains.
It is notable that Zooz recently added a new Z-Wave parameter 33 in the firmware, which, when set to 1, changes the behavior of the ZEN77 to be the same as that of a ZEN76 switch (minus the clicking relay sound). Ie. it behaves exactly the same as a switch. Unfortunately, Home assistant isn’t aware of this, and still reports it as being in the light domain, rather than switch domain. Is there a way to manually change its domain from light to switch ?
There are a couple of ways to do it.
One way is to use the “Change device type of a switch” helper to create 28 matching light entities, one for each switch. Then you can use the UI to create a light group of all 32 light entities. Light groups are special because they maintain the ability to set brightness levels of the group members.
To convert a light entity into a switch you would have to use template switch helpers instead. If you’re grouping them anyway you could probably make one template switch that turns all four lights on and off and sets their brightness level. Again you can then create a normal group of all the switches.
Lastly you might be able to define an old-school group in YAML that contains both the lights and switch entities but note this requires using homeassistant.turn_on/off actions to control it.
Thanks ! One use case is to group them all, but it’s not the only one. There are some rooms with a mix of ZEN76 and ZEN77, and I may need to create per-room groups as well. And there are a lot of rooms.
I will look into the template switch. It really only needs to initiate on/off commands on the ZEN77 dimmer. There is no need to set the brightness - that command is just ignored by the switch once parameter 33 is set. Unfortunately, even after re-interviewing the device, Z-Wave JS still considers it to be a light.
Perhaps I can create 4 single-member template switches, one for each of the ZEN77, then use them as switches in all my switch-based automations, grouped or not.
Edit: that worked perfectly.
Another advantage is that all 4 should now show up in my auto entities card of switches. At least in theory. I am keying on the zwave_js integration . Not sure how to include the templated ones there too.