Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request - invert current usage values #7

Open
anderhau2 opened this issue Apr 24, 2023 · 5 comments
Open

Feature Request - invert current usage values #7

anderhau2 opened this issue Apr 24, 2023 · 5 comments

Comments

@anderhau2
Copy link

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

@anderhau2 anderhau2 changed the title Feature Request Feature Request - invert current usage values Apr 24, 2023
@htool
Copy link
Owner

htool commented Apr 24, 2023

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?

@htool
Copy link
Owner

htool commented Apr 24, 2023

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.

@anderhau2
Copy link
Author

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.

@htool
Copy link
Owner

htool commented Apr 24, 2023

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.

@anderhau2
Copy link
Author

Ah, I see. Will try later. Have to be in the boat to test this... 😊👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants