YAML config for Smartthings Button

Has anyone got one of these yet and put the config in the YAML files? It seems to have a pushed state, a held state, and a double state or maybe binary sensor?

I’m after the configuration entry, so far I have this:

  • platform: mqtt
    name: “Shower Button”
    state_topic: “smartthings/Shower button/button”
    payload_on: “pushed”
    payload_off: “??”

Surely there is a way in the Smartthings IDE where you can find the info for the config?

Figure anything out yet? I also have one of these but haven’t gotten it to work yet. Can use it once but then have to manually set the state back to off before I can use it again, not very useful. No luck on the double or long press yet.

Sadly not, i left HASS for a now and went with Hubitat. It’s just that little bit more polished and easy to use for now. No text files.

I’ll keep my eye on HASS for the future.

To the geniuses. Since smartthings integration with the latest hassio version has got easier could you please add the smartthings button into the binary.sensor or sensor device. TIA

Why not just install MQTT.fx on another computer and you can set that up to watch the topic value flying pass

I’m not exactly sure if this is what you are asking for, but I’m working on an AppDaemon-based button-handler script. I should have it done within the next week.

I’ve completed an AppDaemon script that will handle the SmartThings Button if you have the SmartThings Integration set up. It can handle all three types of interactions (tap/hold/double) and can currently toggle lights, adjust brightness, or change colors. The code and instructions are available at my Github repository: https://github.com/apop880/AppDaemon

1 Like

Any update or chance of controlling input booleans!?

Absolutely - FYI, the latest version of the script is at https://github.com/apop880/SmartThings-Button and I can add input_boolean support in the next release.

1 Like

That would be awesome!!