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

Do not send any event to disabled devices #23058

Merged
merged 1 commit into from
Jun 15, 2024

Conversation

ghoz
Copy link
Contributor

@ghoz ghoz commented Jun 14, 2024

Some devices require active polling that is setup using onEvent triggers
When the device is disabled we should stop polling them to avoid unnecessary traffic, errors in logs etc

Following up Koenkk/zigbee-herdsman-converters#7619, rather than implement the test on a device level, handle it at Z2M level, avoiding the call for disabled devices
As z2m requires a restart for enable/disable to be effective, we don't need to handle changes at runtime (stop events etc)

As z2m requires a restart for  enable/disable to be effective,
we don't need to handle changes at runtime (stop events etc)
@Koenkk
Copy link
Owner

Koenkk commented Jun 15, 2024

Thanks!

@Koenkk Koenkk disabled auto-merge June 15, 2024 08:25
@Koenkk Koenkk merged commit ef2c939 into Koenkk:dev Jun 15, 2024
11 checks passed
@Koenkk
Copy link
Owner

Koenkk commented Jun 15, 2024

Thanks!

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