ZHA - Samsung SmartThings Button

Blueprint to support the Samsung SmartThings Button using ZHA.

samsung-smartthings-button

Supported actions:

  • Single press
  • Double press
  • Hold

Blueprint:

blueprint:
  name: ZHA - Samsung SmartThings Button
  description: Automate your Samsung SmartThings button using ZHA events.
  domain: automation
  input:
    samsung_smartthings_button:
      name: Samsung SmartThings Button
      description: The Samsung SmartThings button to use
      selector:
        device:
          integration: zha
          manufacturer: Samjin
          model: button
    remote_button_short_press:
      name: Single Press
      description: Action to run on single press
      default: []
      selector:
        action: {}
    remote_button_double_press:
      name: Double Press
      description: Action to run on double press
      default: []
      selector:
        action: {}
    remote_button_hold_press:
      name: Hold Press
      description: Action to run on hold
      default: []
      selector:
        action: {}
mode: restart
max_exceeded: silent
trigger:
- platform: event
  event_type: zha_event
  event_data:
    device_id: !input 'samsung_smartthings_button'
action:
- variables:
    press_type: '{{ trigger.event.data.args.press_type }}'
- choose:
  - conditions:
    - '{{ press_type == ''single'' }}'
    sequence: !input 'remote_button_short_press'
  - conditions:
    - '{{ press_type == ''double'' }}'
    sequence: !input 'remote_button_double_press'
  - conditions:
    - '{{ press_type == ''hold'' }}'
    sequence: !input 'remote_button_hold_press'
14 Likes

Blueprint works perfectly! These Buttons work much better in HA than they ever did in SmartThings.

1 Like

First I want to say thank you for this blueprint its awesome!! Is it possible to make a triple press option or more if wanted? just curious of the limitations. Thanks again

Any way to make this work when using the Samsung v3 Hub?
Installed it, but it says “No matching devices found”

Has anyone found a blueprint like this for zigbee2mqtt?

2 Likes

I second this. I’d also love to have this Blueprint (or similar) for Zigbee2mqtt.

Is it possible to [fairly] easily convert this Blueprint from ZHA to Zigbee2mqtt? What changes would need to be made? (Willing to do the research if I can get pointed in the right direction.)

13 Hours Later…

I figured out how to build a blueprint for the Smartthings Button using Zigbee2MQTT

Zigbee2MQTT [Z2M] - Samsung SmartThings Button

FYI this is causing warnings in the HA logs,

2023-01-23 18:29:37.160 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'list object' has no attribute 'press_type' when rendering '{{ trigger.event.data.args.press_type }}'

Hi. I’ve been having issues with controlling lights with the Smartthings button. If the light is on already, it will turn the light off for a few seconds then turn it back on but if I press it again it turns it off. Other times if the light is off, it will turn the light on then off again, and if I press it again it will turn on again. Any help you can provide would be great. Thank you for your time

I have 2 SmartThings buttons and the one that gets used less does this from time to time. The other doesn’t. For me, it seems to happen when they drop off the network and pop back on randomly.

1 Like