I’m having a weird problem with restoring number values for mm of rainfall with mapdb. Everything else is restoring on start up successfully, except these number.
Number:Length rain_23pm "Rain from 11pm [%.1f %unit%]" (gRain)
This value is updated every day at 11pm with the past hours rain fall. gRain calculates the total rainfall for the last 24 hours from the 24 hourly values.
When these values are updated each hour, the value is stored as mm:
2020-06-06 23:00:00.055 [vent.ItemStateChangedEvent] - rain_23pm changed from 0.0 mm to 0.25 mm
However, when these values are restored, they are all restored as 0.0m (not mm). Even in the above case where the value is 0.25mm, the stored value is 0.0m.
Here is the log from a system restore:
2020-06-06 23:36:04.313 [vent.ItemStateChangedEvent] - rain_23pm changed from NULL to 0.0 m
I’m thinking that is it maybe converting 0.25mm and rounding to 0.0m, but not sure.
Any ideas on what i’m doing wrong or why the values are not being restored correctly?