I have two separate translations that take place to execute good night mode.
First, my exterior lighting is set to on at Sunset, regardless of mode. Then exterior lighting is set to dim at 11:30pm, as long as my mode is not ‘Away’. Then if this is the case, I have the lights programmed to go into dim mode after my foyer has no motion for 20 minutes once I’m in night mode.
Second, I use the good night routine to set A/C, alarm mode and lighting based on two criteria. The first is that there is no activity in any living/family area motion sensor for more than 40 minutes after 10:30 pm. The second criteria takes effect at 2 AM regardless of motion.
Why 40 minutes? Because if we are on the sofa watching tv late at night, we typically won’t be more than 30 minutes or so without getting up to do something or go to bed.
So, if we fall asleep before 10:30, everything is automated at 11:10 pm. If were up and then go to bed after 10:30, the house will be automated 40 minutes after we retire for the night. Finally, the house shuts down at 2pm. We are almost never up at this time doing anything that needs 100 watts of lighting.
If the house transitions to night mode and we are still moving around, my motion sensors will l set my night lighting mode.
Tools used are lighting scenes, native routines and the SmartLight app. No custom programing or WebCore needed for this - pretty basic stuff, you just have to drill through the menus to find it.