frodeheg / no.hoiax

Adds Høiax devices to Homey
GNU General Public License v3.0
7 stars 3 forks source link

Timeout when trying on/off button #3

Closed frodeheg closed 1 year ago

frodeheg commented 1 year ago

Piggybank is sending onOff signal at an excessive rate, however Høiax is stuck in a forever loop re-trying its old signals. Since there is no mutex this adds on to an insane amount of retries towards myUplink. This causes myUplink to rate-limit the app in the end, which causes a never-ending livelock because Piggy will always retry when there is an error.

Some kind of mutex is needed to avoid ending up in the rate-limiting.

frodeheg commented 1 year ago

Another fix was posted here: https://github.com/frodeheg/no.hoiax/commit/5bdf339e3173e3da2f5192495ffdb783d1a624bd