Hello, I hope there are some OpenHab users here.
My problem is that the data displayed on the web page is not automatically updated, but only when manually refreshing the page.
The values are sent via MQTT. OpenHab, as you can see in the screenshot, sees the new values but does not update them on the web page.
In the default configuration file I have only these changes:
openhab.cfg
default.items:
default.sitemap:
in the addons directory files:
My problem is that the data displayed on the web page is not automatically updated, but only when manually refreshing the page.
The values are sent via MQTT. OpenHab, as you can see in the screenshot, sees the new values but does not update them on the web page.
In the default configuration file I have only these changes:
openhab.cfg
mqtt:mosquitto.url=tcp://localhost:1883
mqtt:mosquitto.clientId=openHabdefault.items:
Group parter (All)
Number Temp1 "Temp1 [%.1f C]" <temperature> (parter) {mqtt="<[mosquitto:/esptemp3410/temp1/temp1:state:default]"}
Number Temp2 "Temp2 [%.1f C]" <temperature> (parter) {mqtt="<[mosquitto:/esptemp3410/temp2/temp2:state:default]"}
Number Temp3 "Temp3 [%.1f C]" <temperature> (parter) {mqtt="<[mosquitto:/esptemp3410/temp3/temp3:state:default]"}
Switch MQTTLED <switch> (parter) {mqtt=">[mosquitto:/esptemp3410/gpio/2:command:ON:0],>[mosquitto:/esptemp3410/gpio/2:command:OFF:1],<[mosquitto:/esptemp3410/gpio/2:state:state:default]"}default.sitemap:
sitemap default label="Main Menu"
{
Frame label="Temperatura kotła" {
Text item=Temp1
Text item=Temp2
Text item=Temp3
Switch item=MQTTLED label="LED"
}
}in the addons directory files:
org.openhab.action.mqtt-1.8.2.jar
org.openhab.binding.mqtt-1.8.2.jar
org.openhab.binding.mqttitude-1.8.2.jar