Hello. I have a strange issue, which I can’t resolve for a while. I’m using MQTT event bus binding from OH1 to link the MQTT topics directly to the items. The broker is Mosquitto.
E.g. I have a sensor which can publish a current temperature into a topic
/myhome/command/Weather_Temperature/state
The mqtt-eventbus.cfg file contains parameter commandSubscribeTopic=/myhome/command/${item}/state
Not sure, what has sitemap to do with this. My Sitemap file is very simple:
sitemap default label=“MyHouse”
{
Group item=Weather
Group item=Terasse
}
And it wasn’t changed, when I added this item. Other items of group Weather are shown normally and Weather_Temperature is also shown, but without value.
If the filename is not exactly default.sitemap, the sitemap works but with refresh problems.
You’re relying on Group membership to display your Item. I’m not sure how clever any of the UIs are about handling new members added in flight. Sometimes openHAB framework is not so clever about it either, e.g. with rule triggers, so I would not depend on that working before a reboot.
In the meantime you can make a better test by temporarily adding a widget
I should also have said to refresh the UI after reboot, but let’s assume that happened.
No real ideas ; I’d use REST API to have a close look at group membership, with a view to finding a duplicate item or typo.
EDIT - ah, just realized that you haven’t asked for a display of your Item state in its label. That’s the [%d] or similar part. You might or might not get a display by default, this seems to depend on linked bindings. But you will only get the default when using Group widget to display. Don’t ask, might not get. Add a [state representation] to your Item label definition.
EDIT - ah, just realized that you haven’t asked for a display of your Item state in its label. That’s the [%d] or similar part. You might or might not get a display by default, this seems to depend on linked bindings. But you will only get the default when using Group widget to display. Don’t ask, might not get. Add a [state representation] to your Item label definition.
Yes. That’s was the bug, thank you! Just added [%s] to the label and it started to show up properly in the group.