The accuracy is what it is, but this allows detecting the presence of a user at home.
The use case is rather simple, a user having configured Owntracks via open API emits an entry or exit zone event. A scene on Gladys will act to mark or not the user as present. All kinds of scenarios can follow.
Owntrack sends the location, if I enter the zone then an event is emitted, I can trigger a scene (mark me as at home, turn on the outdoor lights, etc.)
I’m not very comfortable with this, so it’s not a topic that’s moving fast. Let me know if it’s to be discarded or if someone wants to lend a hand or even take over the subject to move forward faster.
The map does not update in real time (I have the impression that there is no listening/updating of the position via websocket). If it’s not developed, I think it’s a nice feature and not very complicated to develop.
Last point, I find that it’s starting to be complicated to distinguish these notions:
The house is empty / The house is no longer empty
Leaving the house / Returning home
User leaves the zone / User enters the zone
For those interested in Owntracks => MQTT, I can work on this issue (since I already have something that works). But there are still tests, configuration, front-end, documentation …
Not bad, this development was done a long time ago and indeed there are no websockets. It can be easily added, I will change that.
What do you find unclear?
I find the names quite explicit though.
After what may be confusing, is the difference between the « house » and the areas. We need to make the user understand that the house is a « concept » in Gladys, and that to make a scene where the user enters/exits the house via an area, you need to make 2 scenes:
« when the user enters the area » => mark the user as home
« when the user leaves the area » => mark the user as left home
In the case of detecting presence in the house, it’s up to the user’s choice, absolutely everything is possible:
Bluetooth
MQTT in a script
MQTT on your Android phone when your phone connects to the home WiFi/disconnects
Perhaps a link in each box to an explanation in the documentation would be better?
In any case, I try to explain all this as much as possible in the videos I have been making recently. After that, I don’t know if we can do better in the UI, the labels and descriptions of each box seem quite clear.
User positions are now updated in real-time with websockets
The PR is here:
Also, there was a bug I noticed while using the feature, the distance calculation between a user and an area was in kilometers and not in meters, and therefore the zone exit was not working (gladys was comparing meters with kilometers.. )
I’ll merge this as soon as the tests pass, and I’ll do a new dev build!