Hello!
I'm also trying here. I'm looking for someone who can help me with a script.
I copied a script from Smarthome-Europe.eu (https://smarthome-forum.eu/.../22404.../...) that can be used to manage absences by querying logged-in mobiles. I also used it to switch lamps on and off. So far, it works.
Unfortunately, I am stuck with the following:
I would like to switch on a lamp in a courtyard 15 minutes after sunset and switch it off at midnight (I have set this up on another Shelly using a schedule) on the condition that one of the two mobiles has been logged in once during the day.