Closed Pho3niX90 closed 3 months ago
@slipx06 the isNaN wasn't properly doing what is was intended. the ||
was defaulting to the right true
whenever the left was falsey, so it would always return true
in most cases, it was changed only to nullish ??
so that it only defaults to the right hand side IF the value is null.
Just not sure how this would affect the rest of the sensors, if you can test please.
Ok I see the issue there, thanks
If you could please test the last commit
If you could please test the last commit
Working perfectly from what I can tell, will be 100% sure tomorrow when the sun comes up.
okay this change didn't fix it, will investigate what the diff between yours and mine are now.
@slipx06 okay this pr works (including your recent commits), master doesn't as well as latest release doesn't.
Great will merge
@slipx06 one thing I have noticed now is that I have some weird unit conversions. Are you seeing the same?
@Pho3niX90 Have not noticed. The only change was kw ->w and mw ->kw if values are <1. What are you seeing?
@Pho3niX90 Have not noticed. The only change was kw ->w and mw ->kw if values are <1. What are you seeing?
It seems it might have just been my local dev branch that was incorrectly locally merged with the changes. Resetting it to head fixed the issue.
This commit refines the validation of custom entity's state - ensuring it is not null, empty, undefined, or 'unknown'. It also revamps unit conversion functions for better accuracy and precision, specifically the conversion to power and optimizing conversions for kilowatt units in InverterModel.Solis. These changes enhance the representational accuracy and clarity of data.
fixes: #322