Hey folks, I have a quick question I haven’t been able to answer with the Google. When creating an automation in the new Smartthings app I only have the option to set the state of a Smartthings Outlet to specifically On or Off when a button is pressed. Is there any way to set an automation that will perform a state change instead? That is, when the button is pressed the power state of the outlet will switch to the opposite state; if it is on the button press will turn it off, and vice versa.
I’m hoping this is a solved problem already, if not, any advice on how to create a custom script or handler will be appreciated, I’ll go ahead and scribble down some code to achieve it.