This sounds like a software bug . I have to read through your post in detail and cross check the code base, I’ll get back to you. We found couple of doser bug (calibration logic is broken in 2.0) soon after release , it’s fixed in master . If this is a different bug I’ll fix it and cut a release during weekendSo I had some very strange behavior with reef-pi last night. I am still bench testing so it is not connected to my tank.
Sometime back I fried my ULN2803 by accidentally shorting the output so I removed the 2803 and everything tested out fine. I removed power last night to put in one of my new 2803's and on power up one of my dosers (built in RPI PWM) came on 100% and stayed on. I could manually run it and it would run at the timer set 50% speed, turn off, then eventually turn back on to 100% full time. Several reloads and reboots later it still did the same. I checked the wiring and all checked out fine so I deleted the jacks from the UI, re-added them, and rebooted. After doing that it no longer came on and ran manually via calibrate just fine.
I check the UI this morning one one doser was running as scheduled all night but the problematic one ran once as scheduled and did not run the rest of the night. I did some testing with the schedule and doser 2 always ran as expected. The timer did not work at all for doser 1. I did many different time combos and duplicated them on doser 2 so both should have acted the same. Always the same thing, doser 2 worked fine doser 1 did not run on its schedule time. I deleted every single light, temp probe, ato, timer, doser and rebooted. I rebuilt the doser rules and now both are working as expected. I am slowly adding rules and equipment to see if I can get the same thing to make sure there is no conflict anywhere.
The question is everything was working prior to powering down and adding the new chip. I currently have the 2803 chip back in and equipment re added with no issues yet. Now I have been tweaking the rules and equipment testing how the rules work and learning what I can and cant do. Is it possible the database somehow got corrupted? By removing and re adding I reset everything back to fresh?