How to implement this

So I want to be able to walk downstairs in the morning and have my my lights automatically comes on and my Sonos give me the good morning greeting then the weather report for the day.

  1. Getting the lights on is no brainer.
  2. Having my Sonos say good morning is a bit tricky. I don't want to get this every time the downstairs motion sensor is active. It needs to have stayed inactive for a few hours. Is there a way to do inactive for xx hours in RM?
  3. Having the Sonos do the weather report isn't too bad either if I can figure out #2.

Any thoughts?

Thanks

How about when motion is detected you also turn on a virtual switch.
So your rule is
Motion Detected
AND
Virtual switch is off.
Do your Sonos stuff.
Turn on Virtual switch.

Then another rule that is
If virtual switch is on.
Wait x hours/minutes
Turn off virtual switch.

1 Like

I don't know if this will work. I don't want the sonos stuffs unless the motion sensor stayed inactive for a certain period of time.

I assumed you wanted it to say good morning the first time you went downstairs.

How about
Motion Detected
AND
Virtual switch is off.
Delay x minutes/hours
Do your Sonos stuff.
Turn on Virtual switch.

Then another rule that is
If virtual switch is on.
Wait x hours/minutes
Turn off virtual switch.

Message Central will do both of these for you

Andy

2 Likes

Thanks Andy, I am currently using message central for the weather report already. Not sure how to get it to say the good morning greeting ONLY when the motion sensor becomes active BUT only after a few hours of sleep.

You don't need a virtual switch to do this sort of thing. That's why Private Boolean came into existence -- it eliminates the need for a virtual switch in almost all automations like this one. It also has the delay you seek for resetting it later.

What would be good would be a section/category where people can show off their pistons as examples for other people to copy/amend for their own use.

Oh, I've been there before with that one.... :wink: