About triggering automations

I am going to configure different set of automations triggered when “vacation mode” is on automatically by presence detection.

However, If I turn the “vacation mode” off manually remotely, and still be away from home, will HA automatically turn it on again automatically because I am away?

it depends on how you have it triggered. if the trigger needs a transition to “vacation mode” then it likely won’t turn it back on since the transition has already happened.

But again, it all depends on how you ultimately end up programming the automation.

let me clearify:

I want to turn the vacation mode on when I am away for longer period, based on presence detection. However, I would like to turn the vacation mode off remotely, so e.g. my thermostat will rise the temperature before I am home.

If I have automation to turn the vacation mode on when I am away, and when I turn the vacation mode off manually remotely, will HA turn the vacation mode on automatically, becase the previous automation?

Depends entirely on what you write in that “previous automation”

The answer is either going to be “yes” or “no”, but without an actual automation - we can’t tell!

You need to clarify how it is that HA knows you’re not there. Do you have an automation that fires when your state changes to away, or do you have a trigger that watches your state, firing only when your state meets the right condition?

I would jump into NodeRED to work this one out. Your “away mode” could be a simple input_boolean.

When states change in HA, they carry with it a user id if it’s initiated by a person, and a “null” value if they are not. You could craft your flow in NodeRED to be able to know the difference between a manual state change (you did it) versus an automated state change.

If it’s manual && you are not_home, don’t set away mode.

Another thing to look at is whether or not vacation mode makes sense. Vacation mode and away mode are saying the same thing essentially, but each has different implications depending on your personal setup.