• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


WebGUI doesn't retrieve state
#1
Hi All,

I'm not entirely sure if it hasn't been posted yet, but I couldn't find it so...
My pilight is running quite smoothly, but there's one small thing that's bugging me Crying

When I reconnect my browser to pilight all switches are shown as "off" even if the switch is activated.
The android app pilight does show the correct value and mySmartHome from
ktams does to.
When I adjust the switch in the alternative apps my browser does "go along with it" so it does recognize state changes when my browser is opened, just not when it's closed.

I've tried forcing ajax, private browsing, disabling cache in the settings, but without results.
Does anyone know if there's something wrong in my config or anything else?

Version: pilight-daemon version v7.0-114-g6fa4b8b
My config:
Code:
{
    "devices": {
        "currentdate": {
            "protocol": [ "datetime" ],
            "id": [{
                "latitude": 51.9074240,
                "longitude": 4.5260090
            }],
            "year": 2016,
            "month": 4,
            "day": 24,
            "hour": 11,
            "minute": 55,
            "second": 38,
            "dst": 1,
            "weekday": 1
        },
        "sunrisesunset": {
            "protocol": [ "sunriseset" ],
            "id": [{
                "latitude": 51.9074240,
                "longitude": 4.5260090
            }],
            "sunrise": 6.25,
            "sunset": 20.57,
            "sun": "rise"
        },
        "expedit": {
            "protocol": [ "kaku_switch" ],
            "id": [{
                "id": 123456,
                "unit": 1
            }],
            "state": "on"
        },
        "eetkamer": {
            "protocol": [ "kaku_switch" ],
            "id": [{
                "id": 123,
                "unit": 1
            }],
            "state": "off"
        },
        "tvhoek": {
            "protocol": [ "kaku_switch" ],
            "id": [{
                "id": 234,
                "unit": 1
            }],
            "state": "off"
        },
        "slaapkamer": {
            "protocol": [ "kaku_switch" ],
            "id": [{
                "id": 345,
                "unit": 1
            }],
            "state": "on"
        },
        "woonkamer": {
            "protocol": [ "generic_switch" ],
            "id": [{
                "id": 9999
            }],
            "state": "off"
        },
        "nas": {
            "protocol": [ "arping" ],
            "id": [{
                "mac": "00:90:a9:b7:84:51"
            }],
            "ip": "10.110.110.71",
            "state": "connected"
        }
    },
    "rules": {
        "sunset": {
            "rule": "IF sunrisesunset.sunset == DATE_FORMAT(currentdate, %H.%M) THEN switch DEVICE expedit TO on",
            "active": 1
        },
        "expedit_change": {
            "rule": "IF DATE_FORMAT(currentdate, %H.%M%S) == 22.1500 THEN switch DEVICE expedit TO off",
            "active": 1
        },
        "woonkamerOn": {
            "rule": "IF woonkamer.state IS on THEN switch DEVICE tvhoek AND eetkamer TO on",
            "active": 1
        },
        "woonkamerOff": {
            "rule": "IF woonkamer.state IS off THEN switch DEVICE tvhoek AND eetkamer TO off",
            "active": 1
        },
        "nasDown": {
            "rule": "IF nas.state IS disconnected THEN pushbullet TITLE nas went down BODY Your nas on 10.110.110.71 went down TOKEN <removed> TYPE note",
            "active": 1
        }
    },
    "gui": {
        "expedit": {
            "name": "Expedit",
            "group": [ "Woonkamer" ]
        },
        "eetkamer": {
            "name": "Eettafel",
            "group": [ "Woonkamer" ]
        },
        "tvhoek": {
            "name": "Zithoek",
            "group": [ "Woonkamer" ]
        },
        "woonkamer": {
            "name": "Woonkamer All",
            "group": [ "Woonkamer" ]
        },
        "slaapkamer": {
            "name": "Slaapkamer",
            "group": [ "Slaapkamer" ]
        }
    },
    "settings": {
        "log-level": 4,
        "pid-file": "/var/run/pilight.pid",
        "log-file": "/var/log/pilight.log",
        "webserver-enable": 1,
        "webserver-root": "/usr/local/share/pilight/",
        "webserver-http-port": 80,
        "webserver-cache": 0,
        "ntp-servers": [ "0.pool.ntp.org", "1.pool.ntp.org" ]
    },
    "hardware": {
        "433gpio": {
            "sender": 15,
            "receiver": 1
        }
    },
    "registry": {
        "webgui": {
            "tabs": 0
        },
        "pilight": {
            "version": {
                "current": "7.0"
            }
        }
    }
}
 
Reply
#2
Fixed by readding
Code:
<div id="version"></div><div id="proc"></div>
to my index.html.

I removed it since I didn't want it to be shown in my gui, but that obviously wasn't the correct solution.
I've hidden it via CSS
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  Modifying Webgui Alex 4 1,402 03-10-2019, 05:50 PM
Last Post: Alex
  pilight & piSchedule works fine but no webgui Sven 4 1,173 01-13-2019, 06:12 PM
Last Post: Sven
  webgui - registry "tabs": 1 usage and possibility to order fcoelho 3 3,808 03-22-2018, 07:31 PM
Last Post: Oliver
  New tab in webgui Roger 0 718 09-15-2017, 02:14 PM
Last Post: Roger
  Cannot connect to WebGUI von BlackBerry 10 device. muecke 2 1,142 12-02-2016, 10:22 AM
Last Post: muecke
  WebGUI support for illuminance sensors marcm 2 1,291 11-30-2016, 01:49 PM
Last Post: marcm
  Webgui Remuko 1 2,113 09-17-2016, 10:14 AM
Last Post: buldogwtf
  Plenary - An alternative webGUI for pilight mitch187 20 16,467 03-29-2016, 06:25 AM
Last Post: curlymo
  Show registry Data in WebGUI bastardop 0 1,291 03-10-2016, 12:31 AM
Last Post: bastardop
  webgui pilight 6.0 iphone / android browser Jeroenk 3 3,034 02-03-2016, 05:08 PM
Last Post: serge

Forum Jump:


Browsing: 1 Guest(s)