Simple blueprint for DeConz hue RDM002 4 button dimmer switch

Just a copy&paste with a little editing of the blueprint by brGr for RDM002
original for RDM002

blueprint:
  name: 'Deconz - Philips Hue - RWL022 Switch'
  description: 'Simple Philips Hue "Dimmer Switch" blueprint '
  domain: automation
  input:
    remote:
      name: Hue Dimmer Switch
      selector:
        device:
          integration: deconz
          model: RWL022
    button1:
      name: 1️⃣ On/Off short press
      default: []
      selector:
        action: {}
    button2:
      name: 2️⃣ DimUp short press
      default: []
      selector:
        action: {}
    button3:
      name: 3️⃣ DimDown short press
      default: []
      selector:
        action: {}
    button4:
      name: 4️⃣ hue button short press
      default: []
      selector:
        action: {}
    button1_long:
      name: 1️⃣🕐 On/Off long press
      default: []
      selector:
        action: {}
    button2_long:
      name: 2️⃣🕐 DimUp long press
      default: []
      selector:
        action: {}
    button3_long:
      name: 3️⃣🕐 DimDown long press
      default: []
      selector:
        action: {}
    button4_long:
      name: 4️⃣🕐 hue Button long press
      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 'button1'
  - conditions:
    - '{{ event == 2002 }}'
    sequence: !input 'button2'
  - conditions:
    - '{{ event == 3002 }}'
    sequence: !input 'button3'
  - conditions:
    - '{{ event == 4002 }}'
    sequence: !input 'button4'
  - conditions:
    - '{{ event == 1001 }}'
    sequence: !input 'button1_long'
  - conditions:
    - '{{ event == 2001 }}'
    sequence: !input 'button2_long'
  - conditions:
    - '{{ event == 3001 }}'
    sequence: !input 'button3_long'
  - conditions:
    - '{{ event == 4001 }}'
    sequence: !input 'button4_long'
1 Like