SmartThings Community

Can I use a button to toggle a device on and off? Can I use conditions in scenes?

(David Thompson) #1

Perhaps I’m in the wrong section, but here goes…

I just bought and connected a NodOn Soft Remote. ST registers all the button presses, but I can’t seem to find a way to link one of the buttons directly to a device. For instance, I’d like the open circle to toggle my bedroom light on or off, depending on which state it’s already in. Please tell me there’s a simple way to do this instead of having to create a separate scene to turn the light on, and another to turn it off, and another to set my ceiling fan to full, and another to set the ceiling fan to low, etc.

Also, when creating an automation, is it possible to set conditions? i.e. “If bedroom light is on and button 4 is pressed, turn it off, else if bedroom light is off and button 4 is pressed, turn it on.”

(Never Trust @bamarayne) #2

You can do it with Webcore for sure…

Including the conditions you are talking about…

I don’t know of anyway to that without Core, Webcore, Rule Machine or one of the other logic engines. I don’t think SmartLighting is that flexible.

(Dan) #3

Just use the built in Smart Lighting app to use a button to toggle a light.


Welcome! :sunglasses: That’s a very cool device. It’s finally available now in the US, it was released in Europe first, and I’m sure it’s going to be very popular.

First things first… You need to use a device type handler (DTH) which will report each press as a different button “number.” Once that is happening, any smartthings automation, including the official smartlighting feature, which can handle a “button controller” will let you assign different actions to the different button “numbers.”

You can find device type handlers that have been contributed by other community members by using the quickbrowse lists in the community – created wiki. In this case, look on the list for “remotes and buttons.” I know there’s at least one there for the octan device.

If you haven’t used custom code before, it’s pretty simple. Basically you’re going to copy the author’s code and paste it into your own account. The following FAQ discusses that general process.

Ok, that takes care of getting the button presses reported to the SmartThings Hub. :sunglasses: Now you want to set up some conditional logic.

The official SmartThings features don’t really support much conditional logic. They’re more for the simple kind like “if button three is pressed, turn on that light.”

But as already mentioned, webcore is a very powerful community – created rules engine which can do everything you asked for and more. :tada: Setting it up is a little complicated, but there are many community members who will be glad to help:

All of that said, as @ogiewon mentioned, The official smart lighting feature does let you set up a button to toggle a light on and off. So if that’s all you need to, you can just do it with the official feature. :sunglasses: Unfortunately at the present time the smart things mobile app is not navigable by voiceover, so I can’t show you a screenshot. But you should be able to find it if you just set up a new smart lighting automation.