Good morning mode


#1

1) Give a description of the problem
I have a “main” piston controlling my modes, based on off @Robin example piston. This changes only my location modes. I then have simple pistons telling what to do with lights and appliances if mode is changed. I would like to build further on with these pistons, implementing motion based on/off (or set level for dimmable) for lights only, but not sure whats the best way to do this. As my Good Morning piston stands now, it would revert itself to original state (set level 70%) everytime there is movement in the hallway if the mode is Home - Morning. I currently have set it up this way so that the house is “awakened” on movement within a timeframe, and not timeframe alone. And I see now that I need to add a change to the SHM in Good Morning piston (to home - disarmed).

2) What is the expected behavior?
I am thinking that when someone wakes up in the morning, lights set level to say 30% and fade up to 60% over 5-10 minutes. If there is no movement from selected sensor within say 10 minutes, turn light off again. If there is a new motion registered after this, turn lights back on again to set level 60%, and off again if no motion detected for say 10 minutes…and so on…But only the first motion needs to trigger the fade up. All of the following motion triggers should set level to 60%. Appliances should turn on with the first motion, for all the rest it should do nothing (stay on).

3) What is happening/not happening?
Perhaps Im overcomplicating things. I am having trouble thinking out how this should be, whats a good setup for it. Maybe I should somehow seperate this in two pistons, with a separate mode for “Home - Awakening” and one for “Home - Morning”. Make the first motion trigger the mode so that it changes from "Home - Awakening to “Home - Morning”. My head hurts :stuck_out_tongue: Any thoughts lent would be appreciated!

**4) Post a Green Snapshot of the piston



#2

Suggest experimenting with booleen variables to record if the motion event is the first in the morning or not, and then set your motion rules to behave differently based on state of that variable.

But fades and motion are tricky things to integrate, mainly because fades cannot be easily cancelled and new motion during the initial fade will cause strange behaviour.

Have you looked into the rooms manager smart-app?