Iâve added more feedback to the PR ![]()
Good catch for « interval »![]()
Okay, so itâs not 100% clear for everyone ![]()
Actually, only devices added in Gladys with the « presence » feature will receive a status update.
Now we need to write this clearly, without being too wordy, because we know, we click OK before thinking « maybe I should have read. »
Iâm open to nice phrases ![]()
For the UI, you can get inspired here https://userinyerface.com
![]()
(sorry, tough weekend
)
Wah⊠ok I know how to do this in UI!!! ![]()
Deliberately? Thatâs impressive ![]()
Hello,
Here is my proposal:
The « presence scanner » analyzes at regular intervals only Bluetooth devices with this functionality. As soon as a device is detected, its status is recorded to detect status changes.
See you soon
For info, @AlexTrovato Iâve responded to your PR, Iâve taken your code in a branch and Iâve changed the text for something that seemed clearer to me ![]()
In my opinion, itâs clearer, the « features » stuff was incomprehensible for a user who doesnât know the code.
For the scene part, Iâve done the « return home » part (super easy):
However, Iâm genuinely wondering about the « leave home » part, in short, when your device(s) are not detected for a while, the user should be marked as away.
It seems complicated to do this with scenes? In my opinion, we need to think about it.
Any ideas? ![]()
I also note my progress on the subject here. (following my messages on GitHub here â Bluetooth presence sensor by atrovato · Pull Request #1027 · GladysAssistant/Gladys · GitHub)
My current solution would be to have an action in the scenes that will check if the userâs devices have been seen in the last XX minutes. If yes, do nothing. If not, mark the user as away from home!
Development is progressing well:
For information, I pushed my latest changes with this new scene action, itâs available here:
https://github.com/GladysAssistant/Gladys/pull/1077
I think Iâm good. If anyone has feedback, feel free ![]()
I find that logical and practical to use in a scene.
But for the dashboard part, « users present », how will that be managed? Via another scene?
A somewhat general remark: when a new user logs into Gladys, everything is empty.
Thatâs logical, but it always makes me a bit « scared » not to understand how to do it or where to start.
We could perhaps:
- Display a message on the empty dashboard with links to the integration part (of Gladys local) to suggest adding your services?
- Suggest adding a first widget (weather for example) or a presentation dashboard to show what it can look like?
It has to be simple and easy-to-remove proposals from the dashboard, but it can reassure newcomers.
What do you think?
Itâs the same thing.
The action I developed specifically checks the latest scans and sees if a device from the list has been seen at home in the last X minutes. If so, the action does nothing. If not, the action marks the user as « left home ».
In another scene « return home », you can set a trigger « if my NUT bluetooth key has been seen » THEN « mark me as home » ![]()
Everything is done from the scenes. Itâs explained in the Bluetooth integration, and there will be a section in the documentation.
Youâre right, we could add a message in the dashboard « presence » box to explain how it works ![]()
Why not. Thereâs already a message when the state is empty. Maybe itâs not complete enough?
But thatâs another topic, if you want to engage in the discussion you can create another topic ![]()
For your information, Iâve merged the Bluetooth PR into master ![]()
Goal is to make a dev build so you can test this weekend ![]()
Edit: Build in progress here: https://github.com/GladysAssistant/Gladys/actions/runs/582250233
Hello, I havenât tested the feature yet but I noticed 2 mistakes:
« When this action is executed, Gladys will check if the selected devices have been detected in the last few minutes (according to the number of minutes selected below). If a device has been detected, Gladys will do nothing. If no device has been detected, Gladys will mark the user as away from home. »
Thanks for the feedback @cicoub13! Fixed in fix typo in check user presence translations by Pierre-Gilles · Pull Request #1078 · GladysAssistant/Gladys · GitHub ![]()
Itâs good, the feature is present in Gladys v4.1.0 ![]()



