Arrive home

just trying a new Automation to try and impress my mum as she still isn't liking all the smart tech that much, I think I am close with this Automation but I am very new, please help

Technically, no one can help if you don't say exactly what you're trying to do. :slight_smile: But I'm going to make a guess and assume this won't do quite what you want. I assume you want to do something when she opens the door for the first time after coming home? If so, this won't necessarily do that. A trigger makes your actions run. The first thing your actions do is test if the door is open (at that exact moment -- again, triggers make the action run, and this is your first action). If they aren't, the rest of your actions will basically be skipped, and that's likely to be what happens almost all the time here.

What you probably want to do instead: keep your trigger the same, but make your actions something like:

Wait for event: door open 
Speak: "Welcome home..."
2 Likes

What Robert said.

You don’t want a conditional action, because it will evaluate at the moment she first arrives, presumably before the door opens.

Instead, wait for the door to open, then do the rest of the actions.

sorry you knew what I was trying to say tho lol, yes when she first comes home I would like to try to add a few Automations, I will give this a go thank you for the tips I will come back asap with a new Automation if you don't mind checking it for me please :blush:

1 Like

Also, if you want an easier starting point, I'm pretty sure Basic Rules can handle this. But you're so close with Rule Machine, too, and it should be easy enough if you find the actions we suggested above.

1 Like

I do normally try with a basic Automation but I couldn't find the arrive presence option on there, normally I start there and turn it into a rule on rule machine

how's that one look lol

1 Like

Looks good!

1 Like

thank you :blush:

I have another Automation for my contact sensors, for when any door and window contact change, this interferes with this automation a little is there any way to make it so this rule only runs when someone in the house has been at home 5 minutes?

It’s there.


1 Like

every time I come on here I learn new things and normally feel dumb but come away smarter lol

I have a normal contact rule for my doors will it be possible to put a condition for a rule to run only when someone is home for 5 minutes, that would also make it possible to set up a rule for txt to speech for contact sensors when someone not in the smart home opens any doors and I can set up a automation for anyone who shouldn't be there

SORRY ABOUT THE BAD JOKES

There are a few ways you can do this, but it's also not clear why it would interfere with the rule you posted originally. More information may be helpful.

For the question at hand, check out the "stays" option for triggers in Rule Machine. These are also known as "sticky triggers" and sound like what you want--or at least one way it could be done.

1 Like

sorry about the bad jokes

I'm not sure if you're still looking for advice besides the above. But if so, you'll have to say what you want the rule to actually do.

1 Like

I presume the conflict is when the front door opens, there's two rules trying to make an announcement at the same time.

I would like it to only work if someone know is in the house if possible.

Then you'll want to use different triggers. With that rule, the notifications are going to happen every time the status of one of those devices changes.

Probably more appropriate would be to expand the arrival rule for your mom. Triggers being the presence sensors. Then you can write conditions to have different notifications for different folks.

Trigger:
Mom's presence
Richard's presence

Action:

Wait for event ###list of contact sensors opened###
IF('Mom' is present) THEN
	Mom announcement
ELSE-IF('Richard' is present) THEN
	Dirty joke announcement
END-IF
END-IF
1 Like

I come up with this , I don't know if it works yet as had no reaction is there a way to cancel all over Automations while this one runs to make it easy?