I am in the unfortunate situation of owning many (nice, really) Z-Wave smart switches. There’s effectively no light bulb products on the market that are based on Z-Wave. Even when there still were bulbs available, good luck getting anything other than the dead standard E26-base stereotypical light bulb form factor. GU10? E12? Floodlights? Not happening.
That’s fine when using dumb bulbs, but it becomes a mess in the few locations where smart bulbs are needed (wanting color and / or temperature control, fixtures where the current is fed through the fixture before it reaches the switch, etc.)
It would be really helpful if HA facilitated simulating zwave, zigbee or matter nodes to enable the built in device binding/associations/pairing functionality native to those protocols. While it wouldn’t be as quick to respond as a true native binding/association/pairing relationship, and it wouldn’t work at all in cases where HA is down, it’d be a great improvement over the current option: trying to make it work with automations.
The underlying problem is that, in particular for smart switches, they often don’t behave as desired if their current state is out of sync with the light source’s state. If the switch thinks the bulb is at full brightness, you’re not going to be able to make the light that’s actually at 50% brighter from the physical control. If it thinks the bulb is “on”, but it’s actually off, not all switches will send a repeated “on” command. It’s been my experience that writing automations to maintain this state sync is problematic and unreliable, while native zwave associations are rock solid.
In the case of zwave, there’s already a feature built into the protocol "virtual nodes’ that’d likely facilitate this use case, but presumably the HA matter server and Zigbee stacks could probably do the same or similar.
Basically, I’d like to be able to create some sort of “virtual node” to bind/associate in the light switch’s native protocol stack, and another in the bulbs’ native protocol stack (or perhaps an entity/group if it’s generic wifi or whatever) and let HA manage the syncing between them. If I use the HA app to turn on the bulbs or change their brightness, the virtual node associated to the switch would receive the update to keep the switch’s local state correct, and if someone used the physical switch to turn things on/off or change brightness, the update would get to the virtual node and change the bulb state.
The issue goes even deeper. As a protocol bridge HA seems to have the right hooks. The deeper issue is how “ground truth” is discovered and updated. We’ve got Z-Wave, Zigbee, Matter, HUE (and its other vendor specific ilk), BACNet, and I’m sure plenty others. Each of these make their own assumption about what the “ground truth” is, and where it lives. It could be the entity itself, on the controller on RAM or disk, in the cloud, or elsewhere. There’s no one size fits all solution, which is why academics still write research papers about it. But punting to “handle your own unique needs in a blueprint” is still a punt.
I read the github thread on this. The fact that there are “100s of blueprints that do this already” seems to prove the OPs point. If HA could provide an entity type whose purpose is to serve as a source of ground truth or a connection/mirror of ground truth kept elsewhere then instead of another 100 or so blueprints being invented to do this, maybe only a dozen might have to be invented.
If this WTH? gets enough attention then the details can get worked out in the github/Discord discussions.
But why reinvent the wheel. We have an automation engine that does this and limited resources. I personally rather have those resources work on things we don’t have. Just look at all these other WTHs.
This is in fact an automation of some type. If devices are based on different protocol stacks then how could they have direct control over each other?
You can do direct associations with Zwave to Zwave devices.
You do light and group bindings within Zigbee devices.
In both of these cases the devices are speaking to each other in their native protocols and bypassing the controller. But a Zwave device can’t possibly directly control a Zigbee device.
What you are asking for is in fact “follow me” or “linked device”, one of the other home automation platforms I use has this feature built-in.
Under the hood it is just a predefined automation. It’s also limited since you can’t do a one-to-many type linking. Also, bidirectional control becomes an issue because of the ping-pong effect.
The whole point of bindings is the fact it does not need a controller. You want to make the controller act like it is not needed while in fact it is?
I use bindings so I do not have to worry the lights won’t come on when HA is down. I’m glad I did, because I almost dies and my wife would shut down HA because she has no clue how to do updates or fix the constant stream of breaking changes. HA is far from stable enough to run for years without intervention.
Under the hood it is just a predefined automation. It’s also limited since you can’t do a one-to-many type linking. Also, bidirectional control becomes an issue because of the ping-pong effect.
The whole point of bindings is the fact it does not need a controller. You want to make the controller act like it is not needed while in fact it is?
That’s one of the reasons that what’s available via automations doesn’t really work great.
Native bindings come with the semantics that while control may flow both ways, action in response from the other end of the binding does not result in a command flowing the other direction.
The point isn’t to try and take HA out of the equation, the point is to duplicate the behavior of native bindings. Z-wave has a concept of virtual nodes. If I could associate a Z-wave dimmer with a virtual zwave node that represents a light (or light group in HA), HA is in the best position to duplicate the semantics of a zwave association- forward state changes initiated from the light switch that arrive at the virtual node to the light group, but not having the switch change state in response to the lights following the commanded update, while also allowing changes initiated from the bulb side to unidirectionally apply to the switch..
Right now, the smooth dimming you’d get from an associated switch / bulb in zwave isn’t possible with the available automation tools.
What you keep describing is what’s known as Zwave multi-casting. Zigbee already does this and it’s best used in something like Philips Hue smart light bulbs since they are Zigbee devices themselves.
There are no more Zwave bulbs being made, so no real benefit to that in Zwave. Could it be used with a group of Zwave dimmers? Sure.
What you really should be doing is a feature request for HA to support Zwave multicasting in ZwaveJS
No, that’s a completely different feature than simulating associations.
My issue is specifically down to having a house full of Zwave switches and there being zero availability of zwave bulbs on the market.
I’m completely lost at this point. How is the above HA’s problem to solve?
You seem to have difficulty simply stating your use case.
I’m going to assume you have some Zigbee smart bulbs that you are trying to control with a Zwave dimmer?? I do that all time.
The use case is very simple:
I want to have the native-style binding / association behavior built into the various protocols usable across protocols through HA.
In the zwave case, there’s functionality in the standard virtual nodes, matter has virtual devices, zigbee probably has something, but I’m not gonna look that up right now.
I want to be able to create a virtual node in zwave js, or a virtual device in the HA matter server, and then associate/bind it with the device in the respective native stack (ie: zwave switch, matter bulb.) HA would be responsible for taking the association/binding commands received at one of these virtual nodes/devices and issue them as outgoing commands in the virtual device/nodes in the other protocol. This would mean that the behavior and semantics of handling / issuing commands to the paired device would match the native protocol behavior instead of the very unpolished behavior that can be achieved with HA automations for anything more complex than a binary switch.
In the case that one end isn’t a custom protocol, I’d expect that HA could manage routing the commands received at the virtual node (on/off/dimming) to a target entity, and only send updates from the target entity to the virtual node when the target entity state was changed by something other than the virtual node.
I’m out.
From my research, it seems you’ve posted this request across various message boards on the Internet and received little feedback from what I’ve seen. You’re intent on specifying the technical details rather than solve for a real-world use case. I’ve been doing Zwave integrations for close to two decades, those virtual nodes you keep calling out are just broadcast and multicast groups. The Broadcast group (node 255) have always existed for as far back as i can remember. Multicast was ratified in the standard at a later date.
Once the home automation platform gets involved in the “routing”, issues start to arrive, mainly around latency and network saturation. These are problems easily solved for by properly constructed automation scripts and code modules (I know because I’ve coded some in the past). A simple “command router” will not know how to deal with all the variables that affect things like smooth dimming for example from a Zwave dimmer to a Zigbee smart bulb. We’re talking about things like millisecond timing adjustments so as to not overload the target network but yet seem like a smooth experience for the user. These are things that have to be solved for each individual installation because network sizes and complexity differ.
I’ve only posted here and on the github Feature Requests page, anything you’re seeing elsewhere is someone else wanting the same thing.
The real-world use case is dimmer switches with smart lights on differing protocols. There’s existing blueprints and automations, and they just don’t work well at all for anything beyond syncing the binary on/off state (ie: getting a bulb to dim or brighten while a household member is holding down the paddle on the switch.)
The zwave spec specifically calls out virtual nodes as being precisely for this purpose.
The Bridge application interface is an extended Static Controller application interface, which besides the
Static Controller application interface functionality gives the application the possibility to manage Virtual
Slave nodes. Virtual Slave nodes is a routing slave node without repeater and assign return route
functionality, which physically resides in the Bridge Controller. This makes it possible for other Z-Wave
nodes to address up to 128 Slave nodes that can be bridged to some functionality or to devices, which
resides on a foreign Network type.
I don’t do it myself, but enough people seem to run their zwave-js and/or matter server separately from HA, so using these features of the protocols would probably facilitate creating bindings that work while HA is down (so long as the coordinator/controllers are still up) for people who run them outside of HA.
I do not think Matter server speak Z-Wave and I do not think Z-Wave hubs speak Matter, so HA is needed.
If Z-Wave do speak Matter, then it is already available that way.
Automations can also solve this for all other setups.
Maybe the devs can see an idea in it, but it really is just what I call a solution to laziness.
Zwave JS supports MQTT and so does the matter-js server, so there’s mechanisms to hook them together if someone were inclined to do so.
In any case, this isn’t a solution to “laziness” it’s a solution to the existing options do not provide an acceptable household experience when there’s some native protocol functionality that HA could enable to unlock a far superior one.
What you are requesting is essentially multi-protocol comms.
You want various devices to be able to communicate directly with each other without requiring automations.
You also need HA to be up & running to transform these protocol specific comms into something all protocols can understand.
You are ignoring the fact that these bindings were specifically created so that the collapse of any middleman means that the 2 (or more) devices can communicate directly.
Basically, you’re suggesting a Catch-22. “Direct” binding, but using a middleman for protocol translation.
If the middleman is up, then you can do this via automation & you don’t need this feature.
If the middleman is down, then there’s no one to translate 1 protocol to another, so your request won’t work.
Well, it is really not a HA issue then.
MQTT is really just a broker with no option to do any actions on data, so the two protocols need to have a common set of data structures.
I have an actual use case:
Smart dimmer switches with smart bulbs of differing protocols.
It’s not possible to get bulbs to dim while someone is holding the dimmer switch with the tools available in current automations.