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
Selection and Switch (with mapping) don't trigger an update #35
Comments
Which version of openHAB do you use? I'm afraid this is a long known problem with long-polling updates on item changes in the openHAB itself. Also can you please check if it works for you on widgets overview page in demo mode? |
I'm closing this as there is no response. |
Sorry, I didn't see the last mail. I can tell you from my last experiences, that this happens when the sitemap model gets refreshed after configuration changes. It does only happen on specific changes but unfortunately I still don't know which ones. Restarting the openhab runtime fixes the problem in every case. As the issue comes from another problem, this can remain closed. |
This issue is still present and is the single reason why I don't use openHAB daily. Switches with mappings just won't update. How can I fix this? I'm not incredibly savvy when it comes to coding related stuff, but I would love to get this resolved! |
I think I found the reason for this: For me, it breaks always if I have changed the "items" model file. After dynamically reloading the items model by openhab (my file refresh interval is set to 10 seconds in the After this happened the long-polling seems to be broken. Reloading the page (or using openhab.android's "clean cache" menu item) shows the correct status then. So if you change your items model, be sure to restart openhab. You could also create a script which monitors the file and restarts openhab. I can give you a quick snippet, if you using it on linux. |
Thanks for the tip, but unfortunately this doesn't resolve the issue. I haven't changed the items file in months and restarted about 10 times yesterday. I am running openHAB on ubuntu 14.04. |
Hi there!
Selection
andSwitch
es with mappings should trigger an update (GET sitemap). Currently one has to reload the whole page (push back and re-select Text Item or Group)Reproducable:
mapping=[0="foo", 1="bar"]
Colorpicker
Item with `visibility=[switchitem==0]Sitemap:
This works fine and almost-instant in the ClassicUI on the PC. I'm willing to contribute with moderate coding skills, if you can lead me to the right files.
EDIT: This seems to be an Android OS related issue, as this happened in the ClassicUI as well (from the same device). Obviously the device did not receive the changes that were pushed (or broadcasted?) to it. Today it works well. But I restarted the runtime and my Android 4.4.4 device. So I can not really tell the reason. At least more people seem to have this issue.
Will keep track of it and post updates on this.
The text was updated successfully, but these errors were encountered: