After searching and doing several tests I couldn’t find it; I would like to know whether, with the LAN Manager integration, what value is returned by the presence feature, and whether it is possible to use it with « continue only if » in scenes.
Thanks @_Will_71 for your reply, well spotted I forgot to send the message for the variable.
For the trigger — OK, that’s what I had done to indicate if seen at home.
However, for using the variable in the scenes that’s what I also tested, but unfortunately not functional because the value of the presence function of LANmanager is always 1 even if the phone is not connected to the LAN.
@AlexTrovato I couldn’t find it in the various threads, but is this the expected behavior?
I notice the same thing. My phone disappears from the Wi‑Fi and despite minutes passing (with a default scan of 2 min), the presence of my phone stays at 1 Ad Vitam…
In LANmanager, the scan is set to 2 minutes
I have very few false departures, except at night when phones go into power-saving mode and are therefore disconnected from the Wi-Fi, obviously.
The scan intervals and triggers certainly need to be reviewed, but since it was working like that…
So the trigger for « Phone device change » only fires when the phone becomes present, and not when it becomes absent. This should be improved to make scenes easier (for example, like a contact sensor).
Basically, what you need to remember is that you need 2 scenes:
A scene « device state change » → « If the device is detected » that marks your user as « seen at home ». It looks like you already have this scene.
A scene « Scheduled trigger », every 5 minutes for example, that uses the scene action « Check presence ».
The idea behind the « Check presence » action is to fetch the last time your device(s) were seen at home. If it was more than XX minutes ago, then Gladys will mark you as away.
Sorry to be a pain but I don’t see how to use this feature in scene creation and I think there’s confusion not just for me!
I understand that X minutes is determined by the scan we configured in the lan-manager module but I don’t understand what is needed to test presence or to test absence (which is a non-presence for X minutes to detect in this case)
Could you attach a screenshot of what should be set to test the presence
of a device because I’m totally confused about this if what I put above is not correct!
Could you attach a screenshot of what should be set to test non-presence for X minutes (i.e., absence at the time of testing)
And for this we don’t really know how to use this feature and especially which values to use. Also, to inject a variable you have to search the forum to know that you need to put a space after the two braces to get the list of variables whereas it’s shown as ‹ {{ › without a space:
So either it’s not the intended effect or there’s a bug, but putting myself in the shoes of a new user who wants to try Gladys before adopting it, they try things and it doesn’t work: two possibilities — they search the forum to find out why it doesn’t work as shown, or they consider the product unstable or non-functional and switch to another home automation solution, which is a shame when it’s over details like this!
I’d like to understand so that afterwards it’s possible to make mini-tutorials with concrete usage examples of features that can help people adopt Gladys. because I think a mini-tutorial with a concrete example is illustrative and sometimes better than documentation!
I must admit that detecting presence via the LAN, rather than using Bluetooth or OwnsTracks, seems simpler in my situation.
The goal is to avoid having to touch my daughters’ phones, which spend their time turning off all the « unnecessary » services in their eyes. Geolocation is among those unnecessary services.
And the likelihood of seeing a NUT key fob end up at the bottom of a cupboard seems extremely high…
Since the phone and Wi-Fi are the base of their Maslow’s pyramid, I know I’ll get the right info by relying on Wi‑Fi…
You choose your friends but rarely your family
PS : but I just realized that I misread your reply and that the link you suggested does indeed talk about both scenarios. thanks