Feature Request - invert current usage values
Opened this issue · 5 comments
Hi again! 😊
After using your plugin for Pico2SignalK for some time now, it works great!! 😊 I have noticed that from 1 to 3 times a day, the data stops coming from Simarine. I have made a «watchdog routine» in my Homey to reset a counter everytime values are updated. If the counter is not reset and reaches 5 minutes it will cut power to Simarine, wait 3 sconds, and power it up again. This makes data come back every time within seconds. So this missing data is due to the horrible Wifi implementation from Simarine. The periods data is missing is also the periods the Simarine app cant contact Simarine. When rebooted all data is back up at once, so the only weak link is the Simarine system. I do not reboot RPI, Homey or anything. Just cut power to the Pico display.
But I have one change request, if I may...:-)
Simarine is messing with the terms + and – when measuring battery charge/discharge data. When I’m USING power, SignalK is getting positive values, and when I’m charging SignalK gets negative values. This goes both for the batterys and the shunts. Inside Simarine it’s indicated with blue/orange colors and it’s somewhat more logical to watch, but when graphing and using data from SignalK it’s not intuitive.
I could invert the devices inside simarine, but then it won’t calculate SOC correct, since it thinks it’s charging when it’s discharging.
Mabe a switch to «invert currents» to make discharge data become negative, and charge data become positive in SignalK? 😊
Best Regards
Anders Hauge
Blue = charging and Orange = usage, right?
For shunts there's an option to 'reverse' the shunt when measuring power. I don't recall if I did this for the one shunt I have. Have you set this?
The thing is that for each shunt, the reverse option could be set.
What would help is a comparison of the config between one where reverse if off and one where reverse is on. Only needed for one shunt, to see if this is stored in the config.
If so, I could apply the same setting per shunt.
I could invert the devices inside simarine, but then it won’t calculate State Of Charge correct, since it thinks it’s charging when it’s discharging.
It's only for a few minutes to capture the config state. Can be done for something small like lights.
Run the python script and save results.
Reverse, then save again.
Reverse to go back to normal.
Diff on fileA and fileB should tell where the config bit sits.
Ah, I see. Will try later. Have to be in the boat to test this... 😊👍