-
-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Thing.setX methods are not implemented correctly #270
Labels
bug
Something isn't working
Comments
Sorry, I didn't even search to see if one was already created. |
florian-h05
added a commit
to florian-h05/openhab-js
that referenced
this issue
Jun 20, 2023
Fixes openhab#270. Signed-off-by: Florian Hotze <[email protected]>
No problem 👍 It was more a note for myself than for others ;-) Anyway, I have fixed the problem, the update call to the ThingRegistry was missing. |
florian-h05
added a commit
that referenced
this issue
Jun 20, 2023
#274) Fixes #270. Signed-off-by: Florian Hotze <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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)
Context
See openhab/openhab-core#3648 (comment)
The text was updated successfully, but these errors were encountered: