kivancsikert / ugly-duckling

Firmware for FarmHub devices
0 stars 0 forks source link

Retry closing on leak #171

Open lptr opened 1 month ago

lptr commented 1 month ago

If the valve is supposed to be closed, but there is flow, try opening and closing the valve again.

The question is when tor un this check.

It should not run immediately after closing the valve. It should run regularly, though.

So maybe skip a short while after the valve changed state, and then run it every time the device reports telemetry.

Should we do the same if the valve is open but there is no flow?