You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be feasible to make z2m groups discoverably by Home Assistant? They could be exposed as a single entity using HA's MQTT [discovery](https://www.home-assistant.io/docs/mqtt/discovery/) feature.
#7849
Closed
thomasfals opened this issue
Jun 22, 2021
· 2 comments
I highly doubt that this will be possible. A zigbee group is not the same as a HA group, by any stretch of the imagination.
Think of it this way:
each device has a set of "exposes" which define what sort of attributes get exposed, both to z2m Frontend and HA.
each of these attributes are of a certain type - e.g. binary, enum etc.
each of these types have a matching type in HA - so you have a 1 to 1 translation. 1 attribute to 1 entity
a zigbee group has no knowledge of attributes of each device inside the group. It just acts as a "traffic officer" saying "hey you 2 devices, you need to run this command", and then each device goes and does that.
so because of the above, you can't create a group in HA based on the devices inside per say.
I hope I have covered this correctly, and to my knowledge I think i did. But maybe I am overcomplicating.
In HA if you create a simple group, the group will not display the "type" specific attributes. For example there is a difference between a group and a light group, and only the light group would allow you to control brightness and effect for example.
A zigbee group has no such "type", so how would you judge that the group in HA needs to be a light group.
Would it be feasible to make z2m groups discoverably by Home Assistant? They could be exposed as a single entity using HA's MQTT discovery feature.
Originally posted by @m0wlheld in #764 (comment)
The text was updated successfully, but these errors were encountered: