Blueprint to support the Samsung SmartThings Button using Zigbee2MQTT.
Built starting with the ZHA version by johnny5w
Supported actions:
- Single press
- Double press
- Hold
Blueprint:
blueprint:
name: Zigbee2MQTT [Z2M] - Samsung SmartThings Button
description: Automate your Samsung SmartThings button using Zigbee2MQTT.
domain: automation
input:
samsung_smartthings_button:
name: Samsung SmartThings Button
description: The Samsung SmartThings button to use
selector:
entity:
integration: mqtt
domain: sensor
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: state
entity_id: !input "samsung_smartthings_button"
attribute: action
action:
- variables:
press_type: "{{ trigger.to_state.state }}"
- 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"