-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9ac02b9
commit 8560dbe
Showing
1 changed file
with
85 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8560dbe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @frsantos, can you please check it for me?
8560dbe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @davidrapan
I get these errors in the logs:
I just replaced the yml file, no version update (running 24.10.04 right now), do I need to update the code? I don't think there is any change related to this?
8560dbe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can it be this
0x0054
?Changing it to 3301 seems to not fail. Waiting to get some result...
How can I test the values are correct?
8560dbe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure it's a typo: fix: Registers in custom sensor for KSTAR 😉
Thanks.
Try to calculate them yourself? Formulas are on the first wiki page.
8560dbe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I was thinking if I could just compare to any calculation HA does by itself.
8560dbe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤔
With Power losses no, that's brand new, but for example Today's Losses + Today's Load Consumption should show the value which is in the Energy Dashboard.
8560dbe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After 2 hours, it's still "unknown"
I'll check later
8560dbe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And what about those other two sensors?
8560dbe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same
8560dbe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like there is an error in the Power losses, should be like this:
But I don't see anything wrong with the other two... 🤔 And your values looks like they should produce valid results... what the heck...
8560dbe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which version you have installed though?
8560dbe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just replaced the yml file, no version update (running 24.10.04 right now), do I need to update the code? I don't think there is any change related to this?
8560dbe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was only asking if you for example don't run some older version but the most recent one is enough.
Still has no idea what it does not work. Entity descriptions fit the other sensors, I checked many times already....
Does the PV Power sensors work?
8560dbe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, yesterday was already dark, but now it reports data
8560dbe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see there custom sensor
PV Power
. OnlyPV1/2 Power
.8560dbe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah sorry, you meant the custom. Yes, it works
8560dbe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Logs seem to be OK, and I think all registers are requested for each custom sensor
home-assistant_solarman_2024-10-07T11-37-38.764Z.log
8560dbe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I can see what's going on... for example for power losses registers are not all in the same request... Register 3126 is then requested in new one...
8560dbe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, so the calculation is done per request, and not at the end?
8560dbe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exactly, it's because the calculation should be done over data which are in sync and that can't be ensured over multiple requests.
I'll have to think about it some more.
8560dbe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@githubDante? I how bad it is to do some calculations over data from separate modbus request responses?
8560dbe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think that's bad at all. 200-300ms between the responses won't make any difference.
8560dbe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay then! Thanks!
So I will change (soon) how are responses processed (to processing them all in bulk) and that should solve it. 😉
I'll let you know when it's done.
8560dbe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
refactor: Processing all modbus responses in bulk
Should solve those missing results from calculation across multiple responses from modbus.
It will proly need some more optimizations here and there but it's tested (and already deployed in production) and should retain functionality in other areas as expected.
8560dbe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems it works now
Out of curiosity, how do you compare in these figures? 6% of the total energy movement.
8560dbe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are asking if the results makes sense?
8560dbe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The total loss figure matches , but yes, I'm asking if a 6% total loss is a normal figure for you? Not sure if that's normal, low or high.
8560dbe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deye SG04LP3 daily losses are from 2,4 kWh (day with almost no sun) to up to 6 kWh (very sunny day, in this particular location with production around 60 kWh).
8560dbe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And to give you direct answer. To my knowledge the expected conversion efficiency of PV is I think around 93% so yes, it matches the expectations.
8560dbe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I thought it was around that. Just to check if I should call the installer or not.