XiaomiGateway3
XiaomiGateway3 copied to clipboard
Grouped entities triggered slow than single
I grouped 4 lights into a group using homeassistant group intergration and open it, the lights opened in 2 or 3 seconds and dimming immediately feature not works. It open immediately when I open single one and dimming immediately feature works correctly. Same situation when I group two switch. I don't know if this is a bug.
I don't understand the problem
I think I had encountered this problem either. I created a light group in Mi Home App, which is mijia.light.group3.
What I have tested:
- When turning on/off the lights throught the light group, the lights responses a lot slower than controlling single ones. In another word, higher latency.
- There is significant delay for the group entity to update the on/off state. By turning on → off → on → off in a rather short interval (1~2s), the lights sometimes won't turn off (in the 2nd action), sometimes won't turn on (in the 3rd action), sometimes ignore the 2nd the 3rd action. I think the reason is the delay between state changes.
Is there any clue to debug this?
This is a known problem of groups. It cannot be defeated on the component side. Unfortunately, that's how the gateway software works.
Is there any discussion history about this known problem? I'd like to know some insights.
Is it possible to force send on/off command to the gateway? For example I have a virtual switch entity. When the switch turns on a turn-on command will be sent to the gateway, so that the light group turns on. It is the same turning off. Since the switch entity is virtual, the state update does not depend on the real light group entity. The lights may be somehow synced with the virtual switch? (Sorry I'm not home at this time I cannot test this idea).
I don't remember about discussions, there are so many issues in the project already. You can enable debug logs and compare status updates from bulbs. Compare for group control and for single control.