deCONZ - Ikea Tradfri Shortcut Button

based on this Tradfri on/off Button Blueprint.

blueprint:
  name: deCONZ - Tradfri Shortcut Button
  description: 'Control anything using Tradfri Shortcut Button remote'
  domain: automation
  input:
    remote:
      name: Remote
      description: Tradfri Shortcut Button to use
      selector:
        device:
          integration: deconz
          manufacturer: IKEA of Sweden
          model: TRADFRI SHORTCUT Button
    button_short:
      name: Button short press
      description: Action to run on press button
      default: []
      selector:
        action: {}
    button_long:
      name: Button long press
      description: Action to run on hold button
      default: []
      selector:
        action: {}
    
mode: restart
max_exceeded: silent
trigger:
- platform: event
  event_type: deconz_event
  event_data:
    device_id: !input 'remote'
action:
- variables:
    event: '{{ trigger.event.data.event }}'
- choose:
  - conditions:
    - '{{ event == 1002 }}'
    sequence: !input 'button_short'
  - conditions:
    - '{{ event == 1001 }}'
    sequence: !input 'button_long'

Nice
I haven’t got a shortcut button myself to test for you. But the code looks good :+1:

Thanks! I really like them. I got two of them and they work good so far. Deconz already supports them but they do not show up in the phoscon app. In HA you can not directly control them via Devices, but the events work. So the Blueprint makes even more sense here!