Z2M - LK FUGA Switch Model 550D6001 On-Off-Dimming

Model 550D6001
Vendor Schneider Electric
Description LK FUGA wiser wireless battery 4 button switch
Updated to use MQTT, now works with Zigbee2MQTT 2.0

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

blueprint:
  name: zigbee2mqtt - LK FUGA Switch Model 550D6001 On-Off-Dimming MQTT
  description: Control lights with MQTT actions including on, off, and brightness adjustments for top and bottom lights.
  domain: automation
  input:
    mqtt_device:
      name: MQTT Device
      description: The MQTT device triggering actions.
      selector:
        device:
          integration: mqtt

    light_top:
      name: Top Light
      description: The light controlled by the top actions.
      selector:
        entity:
          domain: light

    light_bottom:
      name: Bottom Light
      description: The light controlled by the bottom actions.
      selector:
        entity:
          domain: light

mode: restart
trigger:
  - platform: device
    device_id: !input mqtt_device
    domain: mqtt
    type: action
    subtype: on_top
    id: on_top
  - platform: device
    device_id: !input mqtt_device
    domain: mqtt
    type: action
    subtype: off_top
    id: off_top
  - platform: device
    device_id: !input mqtt_device
    domain: mqtt
    type: action
    subtype: on_bottom
    id: on_bottom
  - platform: device
    device_id: !input mqtt_device
    domain: mqtt
    type: action
    subtype: off_bottom
    id: off_bottom
  - platform: device
    device_id: !input mqtt_device
    domain: mqtt
    type: action
    subtype: brightness_move_up_top
    id: brightness_up_top
  - platform: device
    device_id: !input mqtt_device
    domain: mqtt
    type: action
    subtype: brightness_move_down_top
    id: brightness_down_top
  - platform: device
    device_id: !input mqtt_device
    domain: mqtt
    type: action
    subtype: brightness_stop_top
    id: brightness_stop_top
  - platform: device
    device_id: !input mqtt_device
    domain: mqtt
    type: action
    subtype: brightness_move_up_bottom
    id: brightness_up_bottom
  - platform: device
    device_id: !input mqtt_device
    domain: mqtt
    type: action
    subtype: brightness_move_down_bottom
    id: brightness_down_bottom
  - platform: device
    device_id: !input mqtt_device
    domain: mqtt
    type: action
    subtype: brightness_stop_bottom
    id: brightness_stop_bottom
condition: []
action:
  - choose:
      - conditions:
          - condition: trigger
            id: on_top
        sequence:
          - service: light.turn_on
            target:
              entity_id: !input light_top
      - conditions:
          - condition: trigger
            id: off_top
        sequence:
          - service: light.turn_off
            target:
              entity_id: !input light_top
      - conditions:
          - condition: trigger
            id: on_bottom
        sequence:
          - service: light.turn_on
            target:
              entity_id: !input light_bottom
      - conditions:
          - condition: trigger
            id: off_bottom
        sequence:
          - service: light.turn_off
            target:
              entity_id: !input light_bottom
      - conditions:
          - condition: trigger
            id: brightness_up_top
        sequence:
          - repeat:
              count: 7
              sequence:
                - service: light.turn_on
                  data:
                    brightness_step_pct: 15
                    transition: 0
                  target:
                    entity_id: !input light_top
                - delay:
                    seconds: 0.5
      - conditions:
          - condition: trigger
            id: brightness_down_top
        sequence:
          - repeat:
              count: 7
              sequence:
                - service: light.turn_on
                  data:
                    brightness_step_pct: -15
                    transition: 0
                  target:
                    entity_id: !input light_top
                - delay:
                    seconds: 0.5
      - conditions:
          - condition: trigger
            id: brightness_up_bottom
        sequence:
          - repeat:
              count: 7
              sequence:
                - service: light.turn_on
                  data:
                    brightness_step_pct: 15
                    transition: 0
                  target:
                    entity_id: !input light_bottom
                - delay:
                    seconds: 0.5
      - conditions:
          - condition: trigger
            id: brightness_down_bottom
        sequence:
          - repeat:
              count: 7
              sequence:
                - service: light.turn_on
                  data:
                    brightness_step_pct: -15
                    transition: 0
                  target:
                    entity_id: !input light_bottom
                - delay:
                    seconds: 0.5
      - conditions:
          - condition: trigger
            id: brightness_stop_top
        sequence:
          - service: light.turn_on
            target:
              entity_id: !input light_top
      - conditions:
          - condition: trigger
            id: brightness_stop_bottom
        sequence:
          - service: light.turn_on
            target:
              entity_id: !input light_bottom