shimmeringbee / controller

Implementation of home automation controller (a.k.a hub and gateway), initially focusing on Zigbee devices, written in Go.
https://shimmeringbee.io/
Apache License 2.0
6 stars 1 forks source link

Loading state into ZDA on load can cause events to be lost. #1

Closed pwood closed 3 weeks ago

pwood commented 3 years ago

If a large ZDA state is loaded into ZDA on start of the controller, there is nothing yet consuming the ReadEvent function, thus the channel can get full and messages can be lost.

We need to figure out how to change the API/loading process to prevent this being an issue, the current bodged solution is just a very large channel.

pwood commented 3 weeks ago

This is handled by ZDA now, loading is performed after controller results control.