doudz/homeassistant-zigate

Zigate almost unusable after latest update

Closed this issue · 9 comments

Hi, yesterday I updated your module after some time.
Everything went crazy: a lot of delay for turning on/off lights, almost no Xiaomi sensors working, and it even slowed down Home Assistant.

https://termbin.com/cw2g

BTW: status are unsynced on almost every light. WiFi lights are working good, Zigbee lights are now a mess, almost none light/outlet synced with Home Assistant status (and discovery / refresh doesn't work anymore).

biau commented

Try to rollback to version 0.29.x
It looks like an issue with the new state polling policy introduced in 0.30

I reverted all polling but climate changes in code.
No effect, my configuration stay unusable.
It seems that light are synced for a while after HA restart, then they go out of sync.
It just happens with zigbee lights (and outlets), WiFi ones like Yeelights are solid.

doudz commented

I think the current polling is too agressive, I will try to make it more smart

It seems much better with latest version.
It just seems a little slower to react to commands, but at least I didn't lose all devices control after few hours

doudz commented

Recent changes are :
Polling every 60sec instead of 30sec
Polling only ask for pertinent attribute
When turn on/off, assume the state without waiting polling

Polling is needed when some devices don't report their state automatically and when the state can change outside of HA, like a wall switch for example
The side effect is polling is enabled for device with working reporting too.

If you have a lot of switch, the system could be slow, maybe 60sec is too agressive
I planned to implement polling in the zigate lib instead of using HA to have a better control

Jsl-1 commented

Hi @doudz,

If you do that in zigate lib, can we have a parameter to disable polling ?

doudz commented

why not

Hi @doudz,

If you do that in zigate lib, can we have a parameter to disable polling ?

Jsl-1 commented

Would be great!
If you want, I will make a PR to make this option available at homeassistant-zigate side. I will do it for me anyway.

doudz commented

Would be great!
If you want, I will make a PR to make this option available at homeassistant-zigate side. I will do it for me anyway.

yes, any contribution is appreciate 😄