-
Notifications
You must be signed in to change notification settings - Fork 24
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
Detection of MPPT trackers switches between settings and solarcharger upon reboot #191
Comments
Hi @sfstar. Were you able to look at that already? I am reluctant to install the new HA core update, because I do not want to have change all config again after a reboot. BTW: what just comes to my mind: might this also depend on the time of day, you do the reboot, e.g. if the MPPT is on during sunshine hours or off during the night? Best Amin |
Any news on this @sfstar? |
Hello AminShAT and thank you for opening this issue, This is an older present issue going back to #47. |
Hi, Will do so, you mentioned version 0.2 available already, right? In HA I still get pointed to the 0.1.7 release. Anything I need to do? |
Hello, Can not confirm my theory. Currently all parameters remain with the settings device regardless, if I restart during night or day times. Best Amin |
Update: I found out, that the rescan and startup sequence behave differently: rescan assigns the parameters to the MPPT-loader. I did a rescan this morning for the 4th inverter and got the parameters misassigned to the MPPT. After the update and reboot this evening, everything was fine. So I did a rescan again and saw the same issue as this morning. A reboot fixed it again for me. So the phenomenon should be reproducible. Best Amin |
Thank you for this insightfull finding. |
Thank you @AminShAT, My apologies for my late reply. |
The content is actually quite large. Do you need certain parts? |
Only the json part for the victron integration. |
Thank you for your help. If you need any additional info about my Victron system, let me know. Here you go: { |
Thank you for the config. |
@AminShAT could you perhaps test the main version of the integration? |
Hello, sorry for the delay, just tested. Unfortunately same behavior as before. |
No problem, I'm not really sure why it seems to solve the behaviour for the same issue that was reported in #47. |
Sorry my own instance was running an older version. 😅 |
First behavior is correct, but upon restart they get again assigned to 100 (settings) |
Hmm, could you share the entity id of one of the entities that get assigned to settings upon a restart? |
Thanks, could you also share the entity id of the entities "solarcharger alarm" and "PV Ost Kurz"? |
I pushed some debug logging to main. |
The new main version does not connect at all, all values unavailable. Had to go back to 2.0. |
Sorry, not all changes were included as they were supposed to be. |
No change. I installed version b18b063 (main). All connections gone. Back to v2.0 they are there again. |
I'm so sorry, I patched the commit on main (and tested it myself in my production environment this time). |
Mine was working (as in, not requiring reconfigure after restart). However its now stopped again. I've just re downloaded "main" and it still requires a reconfigure after each restart. |
Thank you for testing @subby28. |
of course no problem. See attached. One log following a restart, and another following a rescan, and full log - restart and rescan. Thanks for your support with this issue, and also for your time and effort with the integration. It is greatly appreciated. |
Thank you for testing the changes. |
Just tried the latest main, and it didn't work. Lost most entities, and wouldn't find them even following a rescan. Had to revert to 0.2 |
Weird I'm running the latest main commit on my production instance without issues. Did the entities dissapear completely or was it mostly the unit id 0 entities? |
I just tried the main again. Strangely it got most of the entities upon the first restart (other than the solarcharger @ 0), but when I did a rescan, it lost them all. Log here: https://drive.google.com/file/d/1aSXtoFWjPe2Bhgz1NuDprpu6A8I8Hxbq/view?usp=sharing |
It seems that the updates get send to the correct device id 0 for the solarcharger:
But that the entity isn't being registered with the new entity id. |
I've just tested and pushed a new commit to main. |
I've just tested it and it appears to be working correctly! As you said, It took a rescan following the first restart but each subsequent restart is now completely fine and doesn't require a rescan. I think you've cracked it ! |
Thanks for your quick testing and replies. |
The issue has been shipped in the latest release (v0.3.0) closing issue as resolved. |
0.3.0 installed and all good. |
Hi,
sometimes I need to reconfigure my MPPT trackers after reboot, because they are not found at the right device anymore. It looks a bit like, the device that is detected first gets the trackers assigned.
The text was updated successfully, but these errors were encountered: