Hi!   Many clarifications were sought and questions raised on the issue of the "motion light". So, I have to provide another motion lights scene. Please find attached the file you requested :)   also, this is some samples and comments "how to".   Thank you. Have a nice day.    Oleg.   Please login or register to see this code.   V2 - 25/11/2018: Added VD support. VS should have 1)  btnOn = 1, btnOff = 2 buttons 2) lbl