Upgrading from 2.3 to 2.4, I noticed upon restart, my persistence values restored from rrd4j are initialized to floating point rather than integer.
For example I have this item.
Number Light_tmr_minutes “Auto-Off [%d]”
And it is persisted with this configuraiton:
Light_tmr_minutes : strategy = everyChange, restoreOnStartup
And set this way in the UI:
Selection item=Light_tmr_minutes icon=time mappings=[0=“Off”,5=“5min”,15=“15min”,60=“1hr”]
Prior to 2.3, if I set this timer to 15 in using the sitemap UI, the value would be exactly 15 upon startup. In 2.4 if I print out the value it is 15.0. For example upon startup:
2019-01-01 16:17:07.234 [INFO ] [clipse.smarthome.model.script.Lights] - Outdoor lights changed. Timer is 15.0
Now if I again set it in the UI, it will go back to the integer 15.
2019-01-01 16:18:48.090 [INFO ] [clipse.smarthome.model.script.Lights] - Outdoor lights changed. Timer is 15
But If I restart openhab it is back toa floating point.
This is causing all sort of issues in my rules files. The problem seems to exist for all values restored from rrd4j that I have defined internal state items for. Looking through the release notes under breaking changes I couldn’t find anything about this, or scanning around the forums. Is there a workaround? Thanks.