Zigbee2MQTT - Aqara Opple Switch 2 Buttons WXCJKG11LM

Blueprint for Aqara Opple Switch 2 Buttons WXCJKG11LM

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

WXCJKG11LM

Integration:
Zigbee2MQTT

Device:
Aqara Opple Switch 2 Buttons WXCJKG11LM (https://www.zigbee2mqtt.io/devices/WXCJKG11LM.html)

Action:

  • Left Button Single Press
  • Left Button Double Press
  • Left Button Triple Press
  • Left Button Hold
  • Left Button Released
  • Right Button Single Press
  • Right Button Double Press
  • Right Button Triple Press
  • Right Button Hold
  • Right Button Released

Blueprint:

blueprint:
  name: Zigbee2MQTT - Aqara Switch 2 Buttons WXCJKG11LM
  description: Aqara Switch 2 Buttons WXCJKG11LM Blueprint
  domain: automation
  input:
    action_sensor:
      name: Remote
      description: Zigbee2mqtt action sensor
      selector:
        entity:
          integration: mqtt
          domain: sensor
          multiple: false
    button_1_single:
      name: Button Left
      default: []
      selector:
        action: {}
    button_1_double:
      name: Button Left Double
      default: []
      selector:
        action: {}
    button_1_triple:
      name: Button Left Triple
      default: []
      selector:
        action: {}
    button_1_hold:
      name: Button Left Hold
      default: []
      selector:
        action: {}
    button_1_release:
      name: Button Left Released
      default: []
      selector:
        action: {}
    button_2_single:
      name: Button Right
      default: []
      selector:
        action: {}
    button_2_double:
      name: Button Right Double
      default: []
      selector:
        action: {}
    button_2_triple:
      name: Button Right Triple
      default: []
      selector:
        action: {}
    button_2_hold:
      name: Button Right Hold
      default: []
      selector:
        action: {}
    button_2_release:
      name: Button Right Released
      default: []
      selector:
        action: {}
  source_url: https://community.home-assistant.io/t/zigbee2mqtt-aqara-opple-switch-2-buttons-wxcjkg11lm/504310
mode: restart
max_exceeded: silent
trigger:
  platform: state
  entity_id: !input action_sensor
  attribute: action
action:
  - variables:
      command: "{{ trigger.to_state.state }}"
  - choose:
      - conditions: "{{ command == 'button_1_single' }}"
        sequence: !input button_1_single
      - conditions: "{{ command == 'button_1_double' }}"
        sequence: !input button_1_double
      - conditions: "{{ command == 'button_1_triple' }}"
        sequence: !input button_1_triple
      - conditions: "{{ command == 'button_1_hold' }}"
        sequence: !input button_1_hold
      - conditions: "{{ command == 'button_1_release' }}"
        sequence: !input button_1_release
      - conditions: "{{ command == 'button_2_single' }}"
        sequence: !input button_2_single
      - conditions: "{{ command == 'button_2_double' }}"
        sequence: !input button_2_double
      - conditions: "{{ command == 'button_2_triple' }}"
        sequence: !input button_2_triple
      - conditions: "{{ command == 'button_2_hold' }}"
        sequence: !input button_2_hold
      - conditions: "{{ command == 'button_2_release' }}"
        sequence: !input button_2_release

2 Likes