Welcome back, now that we are set up, I observed Elma and my parents behaviours. I noticed that they love walking into the kitchen and not turning off the light.. Typical. So that was my first experiment. 

I placed a sensor in the kitchen, and connected it to smartthings, installed my smart light bulbs in the kitchen and coded the following: When someone walks in, turn the light on and when no motion is detected for 2 minutes we turn the lights off. Simple, Eh?

Using the Webcore component from smartthings this is the code that I wrote.  

I learnt very quickly the light won’t stay on for more than a few minutes when i said β€œHey Google! Turn on my kitchen lights”. Damn it! So, I made some more changes to the code to say that when the light switch is turned on for other reasons other than the motion sensor. Did some google-fu and found a whole resource of samples. So in the spirit of being lazy, I simply imported the sample to my system and changed it for my kitchen lights and sensors.

https://wiki.webcore.co/Samples#Motion_Based_EXCEPT_When_Manually_Turned_On

HA! Success now to figure out other rooms to do this to!