#Automation by Zone but with exception

1 messages · Page 1 of 1 (latest)

ionic relic
#

Hi all,
I'm trying to create an automation for my wife. However, sometimes she drives by the zone without stopping by the gym. In this case, the automation triggers when it shouldn't.
I couldn't find a solution to my problem so that's why I'm posting here -

My automation idea is when Wife enters the GYM zone and stays there for 4 minutes then it will trigger the automation - which makes an actionable notification to her smartphone/smartwatch

My current trigger is when she logs in to the gym Wi-Fi, but sometimes, it's not accurate and detects that she's in the gym Wi-Fi after 40 minutes of being there.

https://codeishot.com/g2ru0N4i

Thanks for help and ideas!

ionic relic
#

I was also trying to use the 'iPhone Geocoded Location changed to' entity, but it's also not accurate. It does detect the right street name but not always the exact address.

cunning elk
#

can you not just make the zone small enough?

#

and dont trigger on the wifi

#

or is that also not fast enough?\

rare jolt
ionic relic
ionic relic
rare jolt
#

It’s a state trigger

ionic relic
# rare jolt It’s a state trigger

Sorry for late response, baby was awake.
as I mentioned before I don't want this trigger because her phone does not automatically connects to the WiFi of the gym... and it's not accurate.
I wanted to create a 'enter' the zone for more than 4 minutes thing to be the trigger, but I suppose it is not possible.

rare jolt
#

it's the same thing

ionic relic
#
trigger: state
entity_id:
  - device_tracker.elians_iphone
from: not_home
to: Mofit
for:
  hours: 0
  minutes: 4
  seconds: 0

Like that?

rare jolt
#

Yep