BasicUI Mapping Click Issue and Resolution

Greetings everyone, I’ve been exploring the capabilities of openHAB and have encountered an interesting challenge with the BasicUI mappings. While setting up my energy monitoring dashboard, I noticed that clicking on the mapping buttons updates the status and sends the command, but the webview in the browser doesn’t refresh immediately. This inconsistency is puzzling, especially since it works seamlessly on Habdroid. I’ve tried switching browsers, but the issue persists.

To provide more context, here’s a snippet of my sitemap configuration:
xml
Frame label=“Wallplug” {
Switch item=LR_WP_SWITCH
Text item=LR_WP_SENSOR
Text item=LR_WP_WATTS
Text item=LR_WP_KWH
Switch item=LR_WP_RESET_POW
Switch item=LR_WP_ALARM_POW
Text item=LR_WP_WATTS icon=“calendar”{
Switch item=Combo1_Panel mappings=[LR_WP_WATTS=“Watt”, LR_WP_KWH=“kWh”]
Switch item=Combo1_From mappings=[HOUR=“Hour”, DAY=“Day”, WEEK=“Week”, MONTH=“Month”, YEAR=“Year”]
Webview url=“http://openhabianpi:8080/static/demo-combo1.html?dashboard=Test&fromItem=Combo1_From&panelItem=Combo1_Panel&refresh=5000” height=9
}
}

And the corresponding items:
text
Switch LR_WP_SWITCH “WP Wohn Switch” (gLR, gSwitches) {channel=“zwave:device:bc844ec8:node13:switch_binary”}
Number LR_WP_SENSOR “WP Wohn Sensor Power” (gLR, gSwitches) {channel=“zwave:device:bc844ec8:node13:sensor_power”}
Number LR_WP_WATTS “WP Wohn Watt” (gLR, gSwitches) {channel=“zwave:device:bc844ec8:node13:meter_watts”}
Number LR_WP_KWH “WP Wohn kWh” (gLR, gSwitches) {channel=“zwave:device:bc844ec8:node13:meter_kwh”}
Switch LR_WP_RESET_POW “WP Wohn Meter Reset” (gLR, gSwitches) {channel=“zwave:device:bc844ec8:node13:meter_reset”}
Switch LR_WP_ALARM_POW “WP Wohn Alarm Power” (gLR, gSwitches) {channel=“zwave:device:bc844ec8:node13:alarm_power”}

After some troubleshooting, I realized the webview refresh interval is set to 5000ms. However, this doesn’t explain why Habdroid updates instantly. I’m curious if this is a known behavior or if there’s a workaround to achieve real-time updates in the browser. Any insights or suggestions would be greatly appreciated!

On a lighter note, this journey has been a fantastic learning experience. It’s amazing how a single issue can lead to discovering so many aspects of openHAB’s functionality. I’m excited to continue exploring and enhancing my setup. Happy coding everyone! :slight_smile: