Open Procsiab opened 3 months ago
Do you have a screenshot of what you're seeing, marked up with what you're expecting? Mostly this sounds like either a Core or a WebUI issue. The binding just provides a default command and/or state description, and it can't do anything about it the actual display (especially if you override it).
I think I have good news regarding this issue: I am not able to reproduce it anymore with OpenHAB 4.2.0; to be more clear with respect to my initial comment, I will add screenshots below to show you where now I see the expected behaviour and with version 4.1.2 I was experiencing the issue:
Property, command, not retained
type channelIn OpenHAB 4.1.2 I did not see any of the command options I set inside the Item's metadata, whereas I was presented with an empty selection menu
Unfortunately, I could reproduce this issue by updating from OpemHAB 4.2.0 to 4.2.1; the following is the screenshot of the same screen on the Android client as before, no changes in the sitemap:
As you can see, the drop down is no longer shown, and from the OpenHAB web interface the menu is empty, even if the Command Options are set on the underlying Item
I will gather the update log shortly
Below the contents of my update.log
file
And here follows the contents of openhab.log
Expected Behavior
After adding Command Options metedata from the Item's UI page, clicking the Item state shows the list of labels declared inside the metadata
Current Behavior
After adding Command Options metedata from the Item's UI page, clicking the Item state shows the enum strings read from MQTT Homie instead
Steps to Reproduce (for Bugs)
Property, command, not retained
and add a link to an itemtype: string
andtags: ['Point']
(Type as String, semantic class as Point)Context
I would like to override the command strings advertised by the Homie Thing for visualization inside a sitemap
Workaround
For the time being, I changed my sitemap replacing Default for Switch or Selection for all the objects referencing said Homie-linked Items and using the Map property to declare a second time every label I would like to show up.
Your Environment
OpenHAB and the MQTT broker are run as rootless containers on Fedora IoT
40.20240520.0
with Podman5.0.3
; container images are fetched from thedocker.io
registry, from the official sources.The Homie thing I am interacting with is a Valetudo instance.
The following is the description of one Homie Topic that is showing the issue I described: