Wrong switch state in Basic UI


I’ve noticed that there seems to be an issue with “invisible switches” in Basic UI.

This is the switch definition in the item file:

Switch gl_vsw_tresorpin "Schlüsseltresor PIN sichtbar" { expire="10s,command=OFF" }

And this is the sitemap:

Switch item=gl_vsw_tresorpin label="Schlüsseltresor-PIN anzeigen" icon="keyring" visibility=[gl_vsw_tresorpin!=ON]

Turning on the switch will make the switch disappear because of the visibility-setting - that’s fine. After the 10s timer of the Expire-Binding has expired, the switch will turn off and be visible again. That’s fine too - but the switch is shown as ON, not OFF then! I’ve to reload the browser page (Ctrl+F5) to have the switch shown as OFF.

There is no such issue with the openHAB Android App.

I think it’s a bug - do I have to report it at https://github.com/eclipse/smarthome/issues?q=is%3Aissue+label%3ABasicUI+is%3Aopen?

I’ve filed an issue: https://github.com/eclipse/smarthome/issues/3909