dayshift/nightshift

i’m trying to have my z-wave network as Automated as possible.

so basically with no human interaction at all.
this works quite well so far.

but if my wife change working shift, i’d like to prepare some things based on the working time.

like in the night the stair-lights are dimmed at 5% and the power to all kitchen devices are turned off.

the stairs lights can be turned up to 100% with the switches … so no problem about this (but its abit shocking at 3am after sleep).
the kitchen power is restored automatically by the vera if the light switch has been used.

i would like to outsmart this alittle bit more. and have some different action based on the working time.

something like “if the bath-light upstairs (first stop after wake up) is turned on after 3am and currently is morning shift-mode,
then prep kitchen and lights on the way”
but only if morning shift active … (i dont want things change if someone just hit the toilett on a day off)

but i do NOT want to change a scene trigger for this matter. any idea what would be the least human interactive way to do that ?

There’s always more than one way to skin a cat…

I would setup a MultiSwitch plugin with one button for each possible shift: Day, Morning, Evening, Night, Holiday and configure them as Radio buttons so only one of the group can be on. Then I would use a PLEG to adjust the lighting logic according to the state of the switches.

Multiswitch is a good idea, i anyway needed something to “park” some other variables … thats a good place to do that as well :wink:

just gonna skip on the PLEG … have everything in manual luup already.

is MSwitch compatible to Homewave ? then i would merge the shift/selector with my virtual Away switch as well … makes alot more sense.
just need to find a way to temp store the previous setting if away has been choosen"
guess a manually added value would do that as well

is MSwitch compatible to Homewave ?
Homewave support for MSwitch has been requested but I haven't seen any news on this lately.
just need to find a way to temp store the previous setting if away has been choosen" guess a manually added value would do that as well
Adding an extra state variable to some plugin would certainly be the most memory efficient way to do this. Otherwise, there's always VariableContainer.