Commit Graph
3 Commits
Author SHA1 Message Date
Chiuaua79andGitHub 8c3b22cfdd [modbus][sunspec] Fix acc32 and uint32 (#18370)
In 2020 the ACC32 fields were changed from unsigned int to signed, ref. #7826. This is incorrect.
The acc32 is an unsigned integer. On top of that, the sunspec meter handlers had values assigned with acc32 that are uint32 according to the sunspec specification.

https://sunspec.org/wp-content/uploads/2025/01/SunSpec-Device-Information-Model-Specificiation-V1-2-1-1.pdf

This is the latest specification from 2024. Here it is stated that:
acc32 = Unsigned 32-bit accumulator (deprecated in favor of uint32)

Basically both acc32 and uint32 can have values from 0 to 4294967294 acc32 even until 4294967295, which is due to uint32 0xFFFFFFFF is specified as "not implemented".

See also https://community.openhab.org/t/modbus-sunspec-showing-negative-total-exported-energy/161611/13 for the bug.

Please cherrypick to 4.3.x branch as well.

Signed-off-by: Cor Hoogendoorn <chiuaua@hotmail.com>
2025-03-08 23:55:33 +01:00
Chiuaua79andGitHub d72c5b565b [Meteostick] Add windvane calibration (#16270)
* [Meteostick] Add windvane calibration
* [Meteostick] Added daily rain accumulation

Signed-off-by: Cor Hoogendoorn <chiuaua@hotmail.com>
2024-02-10 17:03:31 +01:00
Chiuaua79andGitHub 21044f66f7 [velux] Fix limit minimum bug (#15088)
Also-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Cor Hoogendoorn <chiuaua@hotmail.com>
2023-06-27 23:00:32 +02:00