That sounds like a contradiction. In what way is it working?
Please post a screenshot of the Logs for when it doesn't work. You can isolate the logging down to just that Room Lights instance and it will show what is happening or not happening.
That’s the button and the room light
Please remove that instance of Room Lights, and re-create it. It should work if you do that.
There was a bug in how it was setting up Button to Turn Off, and your app got caught with its pants down from that bug. That bug was fixed in 126.96.36.199, but evidently the easiest way to correct the original problem is to just do the app over.
Thanks worked great after redoing it