Hello,
I have a simple automation which sends a notification when a device is at home.
automation:
trigger:
platform: state
entity_id: device_tracker.device_name_here
from: 'not_home'
to: 'home'
action:
service: notify.Telegram
data:
message: 'Person is now home'
automation:
trigger:
platform: state
entity_id: device_tracker.device_name_here
from: 'home'
to: 'not_home'
action:
service: notify.Telegram
data:
message: 'Person is not home'
I have also a notification when a person is not at home. So far, everything is fine. But when I go to the basement or garden, my phone loses the wifi connection and I get the notification that I am no longer at home.
So is there a way to avoid multiple notfications when I lose the connection for a short time? Of course, I can use zones with the gps location but this requires that the phone sends the gps location to HA. And I have some guests which are very often in my house connected to the wifi and loses sometimes the connection. Also, sometimes the gps in the basement is not working properly.
Is there a way to add a condition or something else? For example, if the devices loses the connection (not_home), send a notification after 60 minutes but only when device state not changes to home again?