Hello, the switch behaviour is kind of funky. Is there any way to toggle a switch “once” when pressing instead of having it move tot the right, to the left, and then to the right again?
Can you post the items definition of this switch? Does this happen to all switches or only this one? And can you try it in demo mode?
Can you also try it with the beta version and are there any messages about impaired widget refresh?
Does this happen to all switches or only this one?
Yes, except for the group “Sfeerlampen”, when turning it off. When turning it on, the animation happens normally. Interesting detail: I found out now that it only happens when pressing the toggle button. When I press the light bulb icon on the left, it switches “once”, just like you’d expect normally.
And can you try it in demo mode? Can you also try it with the beta version and are there any messages about impaired widget refresh?
Normal behaviour in demo mode, same wrong behaviour with beta version.
2020-04-07 23:29:42.665 [ome.event.ItemCommandEvent] - Item 'ganglamp' received command ON
2020-04-07 23:29:42.812 [nt.ItemStatePredictedEvent] - ganglamp predicted to become ON
2020-04-07 23:29:42.927 [vent.ItemStateChangedEvent] - ganglamp changed from OFF to ON
Thankyou.
Assuming that is the whole show, that all appears normal.
The kind of visual effect you described is sometimes seen with e.g. zwave devices, which can give updates of “old” status after command, before eventually the “new”.
No sign of that here.
Although your host system is quite slow … taking 300mS to respond to the command and actually update the Item is long enough to cause a visible lag at your UI.
Yes, it’s running on a first-generation Raspberry Pi so perhaps that causes this issue. Is there any way to stop OpenHab from “predicting” the switch’s status OR from delaying the status update? As I believe that this might work around the issue
Have you tried cleaning the browsers cache on whatever device your using?
The behaviour you’re seeing is on the Android app. Although it’s the same when using the Basic UI in a website, also after clearing the cache.