Skip to content
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

Send default response to report #10

Merged
merged 2 commits into from
Jul 24, 2019
Merged

Send default response to report #10

merged 2 commits into from
Jul 24, 2019

Conversation

clockbrain
Copy link
Contributor

Refer Koenkk/zigbee2mqtt#1722

This patch works for me but it would be great if others could review and also confirm.

It sends a default response back whenever the coordinator receives an attribute report thereby heading off repeated sending of the report. I figured generating the response in zigbee-herdsman was easier than passing it up to zigbee2mqtt and back for what is effectively just an ack.

Here's the sort of traffic I see without the default response patch.
image

and here is the sort of traffic I see with this patch. The sequence number of the response have to match the report to prevent the repeated report messages.
image

@Koenkk
Copy link
Owner

Koenkk commented Jul 24, 2019

Awesome, I also prefer to solve it here! Can Koenkk/zigbee2mqtt#1722 be closed?

@Koenkk Koenkk merged commit 38f4337 into Koenkk:master Jul 24, 2019
@clockbrain clockbrain deleted the default-response branch July 24, 2019 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants