kivancsikert / ugly-duckling

Firmware for FarmHub devices
0 stars 0 forks source link

Restore previous valve state upon boot #160

Closed lptr closed 3 months ago

lptr commented 3 months ago

When the device boots, do not report an "unknown" valve state. Instead, try to figure it out. For normally open and normally closed valves assume it's whatever the normal state of the valve is. For latching valves store the valve state in NVS, and load it on next boot.

Fixes #61