Presence Sensor Help

Hi. I am trying to create a routine where if I am not home between certain hours of the night it, my present sensor will trigger an automation to turn off an alarm that is set for the morning. I don’t want to wake my roommates up with an ongoing alarm with no one to turn it off.

I currently use an FP2 present sensor along with an Alexa echo dot generation five. I created a routine where an alarm can be turned off between certain hours when there is no presence detected. After testing it out, it seems to only work once I leave between those hours and not if I wasn’t already there in the first place. Is there a way for a routine to be created where if I’m not home between certain hours of the night I can trigger this automation?

1 Like

Hello, welcome to the forum. Maybe you need to do an inversion. If you are in the room, in a certain period of time, then turn on the automation (alarm clock). If there is no movement, in a certain period of time, then the automation does not turn off. Automation, to start the alarm clock, is done once, the alarm clock went off once (starting the automation) and the automation turned off. Next, the alarm clock automation waits for your presence to work the next day.

2 Likes

That’s because the trigger is no presence detected. SO that triggers the automation when it stops detecting presence.

Not sure about Alexa, but can’t you use geolocation? Set the automation to run before the alarm goes off and if you are not at home, then turn off the alarm.

1 Like