i added the network binding and added my phone’s IP to test some kind a presence awareness.
Now it looks to me that my BasicUI URL needs to be refreshed before detecting properly.
Example is that my phone leaves the house and it wont show it as OFF untill i refresh my browser.
Though i have seen it changing before without doing anything.
So now i am unsure of when en how this actually refreshes my data.
just thinking out loud here.
Can i make my whole sitemap refresh at certain intervals?
Or can i make this item refresh?
Or what would actually be the solution?
Frame label="Presence Awareness"
Text item=Bjornphone label="Bjorn Phone [%s]" icon=network labelcolor=[OFF="red", ON="green"] valuecolor=[OFF="red", ON="green"]
Text item=Bjornphonelastseen label="Last seen" icon=motion
I actually notice 2 things.
I think that indeed the interface does not update quick enough, and secondly if i turn off my wifi on my phone it still take a couple of refreshes of my browser before it knows that my phone is offline, this makes me think even the ping command or what ever is running in the back to monitor this refreshes “to slow”.
i tested this in Internet Explorer, same issue and on top it does not show my livestream camera in one of my groups.
Mozilla, Edge and Chrome are all 3 not updating without refreshing manually or by changing the group, but at least my camera’s work with these browsers.
So i restarted openhab and opened these 3 browsers on my pc with my phone connected to wifi.
Turned off wifi and waited…
10 min and nothing changed, according to my interface my phone is still connected, then i tried clicking a group and going back, it does trigger a refresh it seems.
that is unfortunally another thing i need to look in to.
apperantly when creating things via PaperUI the items are found in a json database, so i dont have a things file to check. I found the file via ssh but was not able to open it.
I believe so. I have everything on my setup created in Things and Items file. When I first started using OH I read that I would need these in a file to work with rules. You can create a thing in /etc/openhab2/things directory and use the setting you have in PaperUI. Use my Things posted above as an example of how it should look.
was thinking to just create an extra one to test, and leave my current code, if possible: p
Btw you use arpping in ur config, i have not set this up yet.
This was not yet an issue cause everything works, it just doesnt update automatically.
How i read it was becasue of sleep mode still be able to ping a device