panhans / HomeAssistant

Home Asisstant related stuff like blueprints for automations and scripts.
90 stars 25 forks source link

Zigbee requests lead to busy network #15

Closed JN-Jones closed 10 months ago

JN-Jones commented 11 months ago

Hi,

first of all thanks for the great heating blueprint, it covers pretty much all of the use cases I have. However after switching all four of my thermostats to the blueprint I noticed that quite often the temperatures weren't adjusted even though the blueprint itself was executed as expected. After some debugging I found a lot of "NETWORK_BUSY" errors in the logs which meant that HA didn't send the change properly to the devices. This was caused by the automations sending new requests whenever they were executed even if there was no actual change. As I had motion sensors hooked up as presence detection for each room the automation was executed quite often. After removing the presence detection (was nice to have anyways) the automations are executed far less often and therefore don't spam the network anymore. I haven't observed the Zigbee error anymore.

TL;DR: Would it be possible to only call the climate services if actually required?

panhans commented 11 months ago

Thanks for your feedback. Could you tell me the version you are running? A first hotfix could be to switch the automation mode to queued instead of parallel. I will add some checks if calling the services is necessary.

JN-Jones commented 11 months ago

I'm running version 2.10 of the blueprint on HA 2023.11 on a Home Assistant Yellow

panhans commented 11 months ago

I switched mode to queued as hot fix. Just reimport the blueprint. Hope it helps for now. I will implement a new logic to version 3. There is a test branch for this. I will get in touch if I have implented it.

panhans commented 10 months ago

More optimizations are now live on the v3 test version. I think I will release it as final this days since it runs pretty stable. However, if you want you cant test it:

https://github.com/panhans/homeassistant/blob/heating_control_v3/blueprints/automation/panhans/heating_control_v3.yaml

panhans commented 10 months ago

Just released v3 with some under the hood enhancements. The problem should be solved so I will close that issue! Thanks for reporting anyway!