-
Notifications
You must be signed in to change notification settings - Fork 117
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
Negative temperatures return 65.535-ish #491
Comments
I suggest Line 247 in eafd8f1
to:
this should handle both the 16 and 32 bit values with correct sign |
Do you have a growatt original record from the grott log for me so I can test it? |
I realised that I just need to the type of battemp, and other temperatures to 'numx' instead of 'num'. Running for a few days now with the numx setting and seem to convert correctly. Thus, I suggest the temperatures are by default set to numx types. This layout was tested: examples/Record Layout/t06NNNNXSPH.json |
Thanks for the solution. That is what I want to try also. I will update this in a next release. |
I would like to add to this issue some other examples of values with problems: I have an offgrid inverter that is using the layout I've seen the values for
My understanding is the inverter is simply sending I'm not really sure what is the best path of action here... IMO the value shouldn't be included in the response so home assistant would render it as undefined... Thanks for this amazing project btw! |
@mariano-dagostino Do you have th eoriginal data from the inverter/datalogger when this happens? I can then test with it (and change it). |
@johanmeijer Actually I haven't seen this behavior in a week so far. I think this was caused because I didn't configured the inverter type to be |
I have a similar issue with GROTT 2.8.3 with my inverter MOD 5kTL3-XH I configured my Inverter like as a MIN. I see in the grottconf.py for the T06NNNNXMIN" it is a "num" ( unsigned integer ) for the others it is a numx ( signed integer ) |
I do not think that it hurts to configure this a numx field. I am building a new version of Grott. I will review and try to test if the num fields can be changed to numx (supporting negative values). I am not sure if I can change al fields. |
I created a PR for the issue with the negative pvpowerout, |
I know it is not good, but it seems the temperature for my battery is below zero these days.
The temperature seem however to be treated as an unsigned integer, thus, resulting in temperature read-outs of 65.535-65.533 . Tempertures should simply be signed int16. if treated as signed int32 it will still fail
The text was updated successfully, but these errors were encountered: