I have a group of lights that I turn on and off with two SmartThings buttons. The problem is that each button toggles the lights, but they do so independently. So, if I press one button to turn the lights on, and then I press the other button, it may or may not turn the lights off depending on its own last on/off state, so I might have to press it again to turn off the lights. Similarly, I have the double-press for the button set to turn the lights on in a dimmed state. So, again, if I press the button once after that, it may turn the lights fully on or turn them off.
The desired behavior would be for each button to check to see if the lights are already on (at any brightness level), and if so, turn them off, and if they’re not on, turn them on.
Is there an easy way to do this?