-
Notifications
You must be signed in to change notification settings - Fork 109
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
Upstream/general improvements #391
Upstream/general improvements #391
Conversation
- Add more sensors and rw sensors - improve power sensors with missing high words
…s and correcting sensor current limits for Battery 1 and Battery 2 BMS.
…matting in fault reporting. This update includes additional fault descriptions for improved diagnostics.
…load, and battery management. This update includes additional voltage and current sensors for multiple phases, as well as comprehensive battery configuration sensors. Documentation for the Power Flow Card and battery sensors has also been updated for clarity.
@kellerza Please review my handling of the issues with recursive sensor dependencies here: https://github.com/maslyankov/sunsynk/blob/main/src/ha_addon_sunsynk_multi/sensor_options.py (https://github.com/maslyankov/sunsynk/blob/39262f08ae6bd89dfefd123531e9eaebef435e48/src/ha_addon_sunsynk_multi/sensor_options.py#L49C1-L50C1) I have not added it to this PR. I'd like to hear your thoughts on it. |
…ectRWSensor with SwitchRWSensor for "Load Limit" and "Track Grid Phase".
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #391 +/- ##
==========================================
+ Coverage 70.93% 70.97% +0.04%
==========================================
Files 26 26
Lines 1899 1902 +3
==========================================
+ Hits 1347 1350 +3
Misses 552 552 ☔ View full report in Codecov by Sentry. |
The biggest drawback with the recursive method is that checking if a sensor (or its deps) is visible/first only is quite complex. With the current implementation sensor_options they are added in the following order, and visibility/first seems depends on the order. Adding deps are also delayed (since they could be visible) The order, as comments in the code
|
In the current implementation, do we add sensors as visible if they are defined in sensor group? |
Yes, the groups are expanded right at the start. Nothing depends on a group |
Okay. Any other changes to add to this branch? |
Thanks @maslyankov ! |
Since these changes, power sensors on my DEYE SUN 20K-SG01 HP3-EU-AM2 randomly jump to 65535 kW and -65509 kW. This has never happened before. |
Can you create an issue? I think I have an idea why this might happen and a PR for possible fix. Thanks. |
Improvements to sensor definitions for single and three-phase models. Ass well as new / updated sensor groups.
Sorry for big PR...
Addresses: