uncle fabs
project 06 · ac fix

The AC that died every 56 minutes

One air conditioner went unavailable roughly every 56 minutes, and only came back when someone opened the vendor app.

Pythondebuggingupstream PRAI pair

root cause

fix

A small module that monkey-patches the transport: per-device lock, read until Content-Length, always close the socket. Plus 3 retries and a 10-minute grace period on the last known state. Code.

result

The unit that dropped every ~56 minutes: zero drops in 27+ hours. Then I did it properly: the fix went into the library itself, with tests that fail on the old code, and was sent upstream: daikin-br/pyiotdevice#2.

← all projects