-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add group membership command #1056
Conversation
Great, I would like to request one minor change. Could you also post the results to the following MQTT topic? |
To clarify, that’s the friendly name of the device? And the payload would
contain capacity and group list?
…On Sun, Feb 10, 2019 at 13:43 Koen Kanters ***@***.***> wrote:
Great, I would like to request one minor change. Could you also post the
results to the following MQTT topic?
zigbee2mqtt/bridge/group/[friendly_name]?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1056 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA-bL4CJTpO37i9X6F2wPGs-ve8oS6SUks5vMGhqgaJpZM4ay4SM>
.
|
After thinking more about this, I think this makes more sense: To request: The results are then send to |
Perfect, I’ll update me PR accordingly
…On Sun, Feb 10, 2019 at 14:50 Koen Kanters ***@***.***> wrote:
After thinking more about this, I think this makes more sense:
To request:
topic:
zigbee2mqtt/bridge/device/[DEVICE_FRIENDLY_NAME]/get_group_membership
payload: `` (emtpy)
The results are then send to zigbee2mqtt/[DEVICE_FRIENDLY_NAME] (just use
the publishDeviceState with cache: false.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1056 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA-bLwMgRBeVj5fNvIRduf3_q8O3pO_Nks5vMHgSgaJpZM4ay4SM>
.
|
70e2843
to
397772b
Compare
@Koenkk updated! Let me know if that's what you want published to the MQTT topic. |
Perfect! |
* Group membership * Fix lint * Update deviceGroupMembership.js * Update deviceGroupMembership.js
From docs at http://www.zigbee.org/wp-content/uploads/2014/11/docs-07-5123-04-zigbee-cluster-library-specification.pdf section 3.6.2.3.3.2, sending the
getMembership
command withgroupcount
=0
andgrouplist
=[]
returns all the groups a device is a part of.This worked against the Sengled element classic E11-G13 lights I had in my network, but I don't have any other devices to test against.
Example of using the command:
n.b. reading https://www.nxp.com/docs/en/user-guide/JN-UG-3077.pdf says that 255 means group capacity is unknown, 254 means that there is space for at least 1 more group but how many more is unknown.