Samsung Smarthings Button

Walked into Best Buy today and they had the Samsung Smarthings Button on sale for $14.99.

I have been wanting a button to run different automation’s or scripts in each room for a while.

This button paired with zha out of the box and has a temp sensor.

At first I tried to do a standard automation using the binary sensor, but the switch would only show on no matter if I did press, double press, or hold.

Started looking on the forum and found a couple of post that got close but no cigar.

Then found one that was listening to the zha events instead of using the sensor.

That worked perfect and just wanted to share it with anyone else wanting these to work.

I am using HUSBZB-1 on a Raspberry Pi for my Hassio setup.

  1. Pull the button out of the box.
  2. Goto Hassio front end Configuration then ZHA
  3. Click on Add Devices
  4. Pull tape covering battery and place next to your hub or stick
  5. It will register the device with the temp sensor
    the name is samjin.button not smarthings
  6. After you see it in the zha page copy the IEEE device code
    you will need this for your automation’s.

Now create automation’s for each type of button press.
Replace the device_ieee: with the one you copied above.

- id: '1560813337553'
  alias: Button1 Single Pause Music Runeaudio
  trigger:
  - event_data:
      command: button_single
      device_ieee: 00:00:00:00:00:00:00:00
    event_type: zha_event
    platform: event
  action:
  - data:
      entity_id: media_player.runeaudio_mpd
    service: media_player.media_play_pause
- id: '1560823992301'
  alias: Button1 Hold Night Script
  trigger:
  - event_data:
      command: button_hold
      device_ieee: 00:00:00:00:00:00:00:00
    event_type: zha_event
    platform: event
  action:
  - service: script.1535918900987
- id: '1560824915079'
  alias: Button1 Double Bedroom Light Off
  trigger:
  - event_data:
      command: button_double
      device_ieee: 00:00:00:00:00:00:00:00
    event_type: zha_event
platform: event
  action:
  - data:
  entity_id: light.sengled_e11g13_0306678e_1
service: light.turn_off

Now you can have a button in each room that will do 3 different things.

I’m sure someone can improve my automation’s to allow all 3 to be in one,
but I struggle with templates and this works perfectly for me.

Hope this helps someone.

BONUS: These buttons are magnetic

4 Likes

Hey man thanks for your advice. I have a question.

I did theps 1 trough 5 and all worked allright… But I can only register button_hold events, none of single or double are shown there.

There are event some times when button_hold doesn’t respond too, but when it does i can see green led light and my automation executes.

Any ideas why is this happening? I’m using HUSBZB-1 too.

Regards

Hi guys,

I think you might be interested in ControllerX. It is an AppDaemon app to bind Controllers with lights or Media players. It supports different integration (z2m, deconz and zha) and controllers. I think the button you are talking about is this one. The configuration in apps.yaml is as easy as:

livingroom_controller:
  module: controllerx
  class: SmartThingsButtonLightController
  controller: 00:00:00:00:00:00:00:00
  integration: zha
  light: light.sengled_e11g13_0306678e_1

This will connect the controller with the light out of the box. However, it allows you to map the actions that you want to do for each event through Custom Controllers.

If you are interested or you have any question, you can let me know.

P.S. you can download through HACS

There are different commands to use in the above scripts for the 3 button commands
command: button_single
command: button_double
command: button_hold

Create a automation for each one and they should all work.

Hope this helps.

2 Likes

Thank you. This is really helpful!

Have noticed batteries in all of my Smarthings Buttons are going dead really fast.
Replaced one last week and it is already dead.
Noticed when I press the button the green light comes on after a few seconds
and the button does not work.
Sometimes after the light goes off the button will work for a while.
Anyone have any ideas or aware of a known problem with Zigbee or these buttons.
Thanks…

Running 2022.2.9 on a Raspberry Pi 3 with Nortek Zigbee Stick
HasOs 7.4