I know I should just buy a button, but I've tried here to make a rule that engages Sleeping mode by toggling my light switch. I put in a boolean to make sure it doesn't trigger multiple times and I also had it trigger with the motion sensor which has a natural timeout. At some point in the rule, it looks like it just decides to double up on all the actions. Weird results. I'm at a loss.
Edit: Updated the rule attachment. I had one up from an old webpage (I had changed the trigger from a switch off to the motion sensor)