Closed rkoshak closed 1 year ago
Duplicates #269 but this has more detail, so I’ll close #269.
Sorry, I didn't even search to see if one was already created.
No problem :+1: It was more a note for myself than for others ;-)
Anyway, I have fixed the problem, the update call to the ThingRegistry was missing.
Expected Behavior
Calling
setLabel()
on a Thing should persist across OH reboots. The same goes for all the otherset
methods.Current Behavior
Calling
setLabel()
changes the label but after a reboot the label reverts to the old value. I suspect the same goes for the otherset
methods.Possible Solution
After calling
setLabel()
on the Java Thing Object, pass that updated Object to theThingRegistry.update()
method to update the value in the registry which will save the changes to the JSONDB.Steps to Reproduce (for Bugs)
1.
Context
See https://github.com/openhab/openhab-core/issues/3648#issuecomment-1584279961