Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
11.73k stars 1.64k forks source link

[Feature request]: add friendly name to group member objects: zigbee2mqtt/bridge/groups #20865

Closed schwalbe13 closed 3 weeks ago

schwalbe13 commented 7 months ago

Is your feature request related to a problem? Please describe

Based on the data coming from the MQTT topic: "zigbee2mqtt/bridge/groups", I want to add a device with its friendly name to a group, or remove it. This is currently not possible, because the member objects only contain the ieee_address.

image

Describe the solution you'd like

Add to those member objects the friendly_name of the device.

Describe alternatives you've considered

In Node-Red, combining the information from "zigbee2mqtt/bridge/groups" and "zigbee2mqtt/bridge/devices"

Additional context

image

danieledwardgeorgehitchcock commented 7 months ago

I think this may be quite difficult to implement as Groups are a function of a Zigbee network and are much more than logical buckets for device organisation - Z2M just provides functionality / wrappers around this.

If a devices friendly name is used, this would require the Z2M group function to enumerate device friendly names to extract the IEEE address so that it can be added via Zigbee commands.

What if a Device friendly name were to change? Zigbee2MQTT would have to have a mechanism for tracking the friendly names / changes with IEEE addresses to be able to also ensure that the group is correctly administered and no devices are orphaned.

github-actions[bot] commented 1 month ago

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days