AndreasOttiger / homebridge-twiline

Homebridge plugin for TWILINE - smart home
Apache License 2.0
0 stars 0 forks source link

Handling multiple commands at the same time is buggy #1

Closed AndreasOttiger closed 1 month ago

AndreasOttiger commented 1 month ago

Describe The Bug:

When for example turning multiple lights on with HomeKit the plugin doesn't handle that correctly. Only none or one of the lights gets turned on.

To Reproduce:

Add multiple (3 or more) light accessories. And then in Homekit turn them on all toghether (i.e. "Hey Siri, turn on all lights"). Usually only some of the lights will be turned on.

Expected behavior:

All lights are turned on.

Logs:

Show the Homebridge logs here, remove any sensitive information.

Plugin Config:

Show your Homebridge config.json here, remove any sensitive information.

Screenshots:

Environment:

AndreasOttiger commented 1 month ago

Fixed by implementing a queue that only posts messages every 50ms (just a random number I picked but which seems to work just fine).