#Increase temp When enter zone

1 messages · Page 1 of 1 (latest)

native harness
#

I have two people attached to my home assistant. I am lower the thermostat when I leave by automation and wanting it to raise when I’m on my way home. So I have set a zone about 5 minutes from home and when me or the other person drive into that zone it will set the thermostat. But it’s not working. I just made a change so maybe it will work now but I would like some clarification. I have 3 zones configured 1. Home 2. Work 3. Almost Home. My automation is
When:
Person 1 enters zone
Person 2 enters zone

And if:
None of 2 conditions match
Person 1 is home
Person 2 is home

Then do:
Raise temp.

Does this seem like it will work? I basically just want one of us to have to hit the zone almost home and it will raise our thermostat.

hushed patio
#

just to clarify - with those conditions, it will not raise the temperature if there is somebody already in the home zone.

native harness
#

That’s what I’m after

ancient warren
#

i would do it slightly differently
Trigger when Zone.Almost_Home changes state from 0->1

native harness
#

If no one is home and someone is coming home. They will enter the “almost home” zone and that will trigger the temp to raise

#

I’ve not messed with the YAML much only the gui

ancient warren
#

you can do it in the gui

native harness
#

I promise I don’t mean to sound like a jerk in my next question. Why is that better?

ancient warren
native harness
#

So when everyone goes away does that make the home away?

ancient warren
#

just more convenient imo - it automatically rolls the condition in so you don't have to reference a list of people every time

#

it will go to 0 when everyone is away

native harness
#

Ok I see that makes sense. I’ll be honest I was trying to figure the best way to do this and I used Ai to help me and it got me mostly there but then it wanted me to build helpers and I wasn’t sure how it was going to work and it ended up not working lol

#

So how would I add my “almost home” zone into that equation?

ancient warren
#

reference almost home rather than home

#

zone.almost_home or whatever the entity is called

native harness
#

So that?

ancient warren
#

yup

native harness
#

Ok I understand the logic but I’ve got my initial one set to when me and my wife leave go away it waits 10 minutes then lowers my thermostat. I guess I would be past that point and it wouldn’t trigger anything else

#

Is this a better way to make sure it doesn’t just fire off if someone leaves

ancient warren
#

no, you'd want to have 2 automations

  1. When almost home > 0 -> set the temperature to higher (no need for the condition)
  2. When home < 1 for 10 mins -> set the temperature to lower (no need for the condition)
#

however i would probably use almost home for the latter as well, otherwise there's the case where (for example) you go on holiday with your partner (home goes to 0, heating turns off) and you are on your way (almost home goes to 0) but then you run into traffic and get redirected back into the almost home zone briefly (goes > 0 and turns on the heating), but never actually go home, so the home -> 0 never triggers again

#

so you go on holiday for a week with the heating on unecessarily

native harness
#

So I’m curious if I don’t have the condition and let’s say I go to work and my wife had set the temp to idk 67. When I cross the threshold on my way to work of almost home wouldn’t it set the temp to 68

#

(68 is the target temp)

#

Just trying to avoid misfires

ancient warren
#

if your wife is home and you cross the threshold, the automation doesn't trigger

#

because if the home zone is all inside the almost home zone, both of those will be 1

native harness
#

My almost home zone is 5 minutes from
Home. So I will leave my home zone and cross into that. With no condition won’t it fire off when I leave the house regardless if she’s home or not

#

Idk how it knows any different. I’m sorry if I sound difficult I’m just trying to understand so I learn how to do this more efficiently

ancient warren
#

ahhh ok, i misunderstood, my "almost home" zone is centred on my house just much bigger (as i can get to my house from lots of directions

native harness
#

Ah I see

#

I can only get to my house from two directions. The second direction is really not a road I travel. It’s bad lol

#

But that’s an excellent idea. I could just do the same thing and make the zone massive

ancient warren
#

good luck, imma head to bed