WTH Is device binding a second-class citizen?

Direct device binding (like Zigbee binding or Z-Wave associations, Matter Bindings) is the holy grail of smart home reliability. It allows a smart switch to talk directly to a smart bulb or relay, irrespective of HA’s availability.

Yet, for a platform that champions local control, Home Assistant treats device binding like a second-class citizen.

While it is technically possible to set up bindings depending on the integration you use (ZHA, Zigbee2MQTT, or Z-Wave JS), Home Assistant Core has no overarching architectural concept of a “bound device.” This leads to a cascade of frustrating limitations:

  1. No UI Visualization: There is no native, unified way in the Home Assistant UI to see which devices are physically bound to one another or to edit the bindings. If you have a house full of smart switches bound directly to smart bulbs, managing or visualizing that mesh topology requires digging through integration-specific panels or external tools.

  2. Blind Activity Logs: The Logbook fundamentally doesn’t understand bindings. If a bound Zigbee switch turns on a light, Home Assistant just sees that the light’s state changed. It doesn’t correctly attribute the action to the switch, making troubleshooting or tracking history incredibly confusing. Even when it (a) knows the switch event fired (b) knows the device state changed and (c) could know/remember the binding table.

  3. No Failure Detection: If a direct binding breaks or fails to execute, Home Assistant has no idea - but it could. (ZHA IKEA Tradfri on/off switch binding backup and self healing)

This feels like a oversight when you look at Paulus’ original vision for the perfect smart home. One of the foundational philosophies of Home Assistant is that a smart home should maintain its “dumb” functionality. If your server crashes, your SD card corrupts, or you are doing a core update, your light switch should still turn on your light.

I suggest a “Device Binding” architecture in Core. Home Assistant should be able to visualize these direct links in the device pages, interpret the state changes correctly in the logbook (“Light turned on by Bound Switch X”), and actively manage these connections across supported protocols.

If we want the smart home to be as reliable as a dumb home, device binding needs to be a first-class feature, not a hidden integration-specific afterthought.

The purpose of binding is to explicitly bypass the coordinator (and HA itself). It is no different than hooking up a dumb switch to a smart light, which is why the activity logs are “blind”

What you are proposing essentially is to rewrite the ZigBee spec in general (which is definitely out of HA’s hands), so that direct bound signals also pass through the coordinator.

I do agree with your first point though. That’s a more reasonable ask & is already possible via custom integrations.

Absence of easy bindings management/visualisation within ZHA is exactly what I was going to raise for this WTH. A 3rd party tool is available (ZHA bindings manager: GitHub page, Community thread), but it would be good to see something built directly into ZHA.

UI visualisation, failure detection, drag and drop:

Your #2 here is not feasible… this is by design as @ShadowFist already pointed out. Association commands purposely bypass the controller.

That being said, I am a huge proponent of using Z-wave Associations, especially for creating virtual 3-way light switch groups in kitchens, hallways, etc.

For the Z-wave (and i believe Zigbee also) use-case, the association attributes are stored in each device and one has to manually query (for example) ZwaveJS to retrieve them. I propose a button/function of some sort in the UI which could on-demand enumerate all the devices for a given device driver and retrieve the associations at that point in time, display them in the UI in a list. Would make troubleshooting/documentation a whole lot easier.

Thanks @ozaz and @RedKing for the mentions. I’m the author of ZHA Bindings Manager and I had exactly the same issues. I’m a big fan of direct binding as it’s pretty important to me that my light switches work, even when either HA or Zigbee coordinator is offline!

@HarvsG taking your points in order, for ZHA at least:

Visualisation. This is the core of what it does today. There’s a map of every device and group with an arrow for each binding: drag one device onto another to bind, and click an arrow to inspect or remove it. There’s also a searchable bindings table, and a view of each device showing what it controls and what controls it. It lives in its own sidebar page rather than on the device page, and that’s the main thing a built-in solution would do better.

Failure detection. This is partly covered. Binding Health flags bindings that point at devices, endpoints or groups that no longer exist. It also flags duplicates left behind by re-pairing, and commands the target device doesn’t support. The integration raises a notification when you remove a device that others are still bound to. What it can’t do yet is notice a binding silently disappearing, for example after a device is factory reset. I’ll add that on to my list.

Logbook attribution. I agree with @ShadowFist and @JohnBeMe. The command goes straight from device to device, so HA never sees it. The most we could do is say “probably by X” when a light changes state and only one device is bound to it.

Core and cross-protocol. I agree this belongs in core long-term and I believe it’s something the ZHA team is looking at. Anything learned from Bindings Manager, including the community device capability data it collects, is there to be reused.

@JohnBeMe, your “query every device on demand and list its associations” button is essentially the binding scan in Bindings Manager, for Zigbee. It would be great to see the same for Z-Wave.

I’m also considering showing a device’s bindings, plus a “Rescan bindings” button, directly on its normal device page.

If there’s anything else you’d want from a bindings tool, I’d love to hear it. Ideas are welcome in the Bindings Manager thread or on GitHub Discussions.

Whilst it may not be true for every device combination in every protocol, it is at least true that in some cases the HA coordinator receives (or could receive) enough information to know what triggered the event as I mentioned in #1

… it (a) knows the switch event fired (b) knows the device state changed and (c) could know/remember the binding table.

It is at least true that for all my IKEA buttons any button press event reaches the coordinator, irrespective as to whether it is also bound. Is this because, by default, all devices added through ZHA are bound to the coordinator?

In fact I have an automation that relies on just that concept to heal broken bindings: ZHA IKEA Tradfri on/off switch binding backup and self healing

I also have this WTH asking for support for “virtual” or cross-device binding support in HA. These would, obviously, be less performant than real bindings, and also not operate when HA is down, but there’s a lot of value in getting the native-style syncing behavior when there’s a mismatch in protocol between a light switch and smart bulbs (ZWave in particular, has tons of switch models out there, but effectively no lightbulbs.)

@HarvsG you were right… When ZHA pairs a remote it also binds its On/Off and Level clusters to the coordinator, and a remote sends each command to everything bound for that cluster, so HA hears the press too.

ZHA Bindings Manager 1.4.0 uses that. Turn on “Say in the logbook which remote switched a light” and, when a light that a remote is bound to (directly or through a group) changes within 3 seconds of a press, the logbook says e.g. “Spots turned on by Hall dimmer (direct binding)”. It knows which lights each remote is bound to from its binding table, and it never credits a remote with changes HA made itself. Feedback very welcome.

BACNet is another example. Direct binding is table stakes for reliable operation. The fundamental issue is how “ground truth” of entity state is managed. HA does what most do - punt federated state management as “out of scope”. I upvoted the “virtual” device WTH, another related one, and this in the hopes it will get more attention even thought there’s no on size fits all solution. Right now there’s nothing at all.

Home Assistant treats device binding like a second-class citizen.

FYI and for reference, this lack of a unified UX/UI support for Z-Wave associations, Zigbee binding, and Matter Bindings have previously been indirectly raised in these goals and roadmap discussions:

As well as missing coherent for protocol-native groups handling across ZWave, Zigbee & Matter:

And a more consistent cross-protocol credential management approach to unify those protocols:

Those would really benefit of shared UI and underlying building blocks for a more coherent UX.