Closed daebikelinz closed 4 months ago
I stumbled on the same issue. I susspect it is due to the ussage of
dtostrf(bms.get.packCurrent, 4, 1, msgBuffer));
which will generate 4 charachter long strings minimum, however small numbers (0.0 ... 9,9) only have three characters, therfore a leading space will be added.
@felsenputzer you are right, thats my fail. @felsenputzer @daebikelinz try this version Daly2MQTT_d1_mini_2.13.0A1_debug.zip
@softwarecrash Thanks for the quick fix, just uploaded it and it works fine for me now.
@felsenputzer you are right, thats my fail. @felsenputzer @daebikelinz try this version Daly2MQTT_d1_mini_2.13.0A1_debug.zip
Problem solved. That was quick. Thank you!
Great, The fix comes Up with the next Bugfix Release. Tank you both for the Report and Help.
Is there an existing issue for this?
Used Hardware?
Wemos D1 Mini
What happened?
The payload of the current and power contain a space before the number if they are one digit before the decimal point. The payload for 1.0 A is " 1.0" instead of "1.0" The postprocessing OpenHAB item can't resolve the " 1.0" to a number: "2024-02-15 21:37:00.350 [WARN ] [ab.binding.mqtt.generic.ChannelState] - Incoming payload ' 0.0' not supported by type 'NumberValue'"
Screenshots / Fotos
Here the power is frozen to 2 digits before the comma 10.6 because the payload "10.6" can be converted. Values under 10.0 W can't be processed so OpenHAB item still shows 10.6 W besides being dark outside and should be 0.0 W.![image](https://github.com/softwarecrash/Daly2MQTT/assets/39101639/61867904-d78c-479c-81ea-7cd6a3abfda3)
Steps To Reproduce
No response
Version
2.x.x and above
Relevant livejson output
Which BMS is connected?
Daly BMS 16s 100A
What browsers are you seeing the problem on?
no Issue with the Browser or WebUI