Model 550D6001
Vendor Schneider Electric
Description LK FUGA wiser wireless battery 4 button switch
blueprint:
name: zigbee2mqtt - LK FUGA Switch Model 550D6001 On-Off-Dimming
description: Control on off and dimming switch from LK FUGA
domain: automation
input:
switch:
name: Switch
description: LK on/off/dimming switch
selector:
entity:
domain: sensor
light_top:
name: Light
description: The light to control with top buttons
selector:
target:
entity:
domain: light
light_bottom:
name: Light
description: The light to control with bottom buttons
selector:
target:
entity:
domain: light
mode: restart
max_exceeded: silent
trigger:
- platform: state
entity_id: !input "switch"
attribute: action
condition:
- condition: template
value_template: '{{ trigger.to_state.attributes.action in ("off_top","on_top","off_bottom","on_bottom","brightness_move_down_top","brightness_move_up_top","brightness_move_down_bottom","brightness_move_up_bottom","brightness_stop_top","brightness_stop_bottom") }}'
action:
- variables:
command: "{{ trigger.to_state.state }}"
- choose:
- conditions:
- "{{ command == 'off_top' }}"
sequence:
- service: light.turn_off
target: !input "light_top"
data: {}
- conditions:
- "{{ command == 'on_top' }}"
sequence:
- service: light.turn_on
data: {}
target: !input "light_top"
- conditions:
- "{{ command == 'off_bottom' }}"
sequence:
- service: light.turn_off
target: !input "light_bottom"
data: {}
- conditions:
- "{{ command == 'on_bottom' }}"
sequence:
- service: light.turn_on
data: {}
target: !input "light_bottom"
- conditions:
- "{{ command == 'brightness_move_down_top' }}"
sequence:
- repeat:
count: "7"
sequence:
- service: light.turn_on
data:
brightness_step_pct: -15
transition: 0
target: !input "light_top"
- delay: "0.5"
- conditions:
- "{{ command == 'brightness_move_up_top' }}"
sequence:
- repeat:
count: "7"
sequence:
- service: light.turn_on
data:
brightness_step_pct: 15
transition: 0
target: !input "light_top"
- delay: "0.5"
- conditions:
- "{{ command == 'brightness_move_down_bottom' }}"
sequence:
- repeat:
count: "7"
sequence:
- service: light.turn_on
data:
brightness_step_pct: -15
transition: 0
target: !input "light_bottom"
- delay: "0.5"
- conditions:
- "{{ command == 'brightness_move_up_bottom' }}"
sequence:
- repeat:
count: "7"
sequence:
- service: light.turn_on
data:
brightness_step_pct: 15
transition: 0
target: !input "light_bottom"
- delay: "0.5"