logo elektroda
logo elektroda
X
logo elektroda

OpenHab 1.8.2 - MQTT data does not update automatically on website

pawel3110 3171 4
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 15694482
    pawel3110
    Level 15  
    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
    mqtt:mosquitto.url=tcp://localhost:1883
    mqtt:mosquitto.clientId=openHab


    default.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


    OpenHab 1.8.2 - MQTT data does not update automatically on website
  • ADVERTISEMENT
  • #2 15699704
    lukaszrzepinski
    Level 10  
    Which thermometer did you hook up? Just asking out of curiosity...
    Did you wait any time before checking the data? 30-60 seconds?
    Also try to observe how the graph behaves (if connected) and finally.... check in another browser.
  • ADVERTISEMENT
  • #3 15700781
    pawel3110
    Level 15  
    ds18b20 on esp8266 with espeasy firmware. But for testing I also used MQTT Tester on Windows 10 Mobile. Despite waiting, the data does not refresh and this is the biggest problem....
  • ADVERTISEMENT
  • #4 15754236
    enceladuse
    Level 13  
    I have not done an upgrade to 1.8.2, but in 1.8.1 the same configuration works for me. I have data that refreshes every 3-5s and in the browser it is ok. Question - is the same symptom in the mobile client too?
  • #5 15761679
    pawel3110
    Level 15  
    I don't know if this is the case, but on my phone the data didn't refresh either. After that, I became discouraged with openhab and switched to iobroker. It has everything I need and is much more pleasant to use;)
ADVERTISEMENT