A simple deCONZ blueprint for the Jung ZLLA5004M remote switch where the top two buttons are for switching a lamp and long press to set brightness of light. The other six buttons are individually configurable.
blueprint:
name: deCONZ - Jung ZLLA5004M Switch
description: 'Control lights with an Jung ZLLA5004M Switch from the deCONZ integration.'
domain: automation
input:
remote:
name: Remote
description: Jung ZLLA5004M Switch to use
selector:
device:
integration: deconz
manufacturer: Insta
model: WS_4f_J_1
light:
name: Light(s)
description: The light(s) to control
selector:
target:
entity:
domain: light
force_brightness:
name: Force turn on brightness
description: 'Force the brightness to the set level below, when the "on" button
on the remote is pushed and lights turn on.
'
default: false
selector:
boolean: {}
brightness:
name: Brightness
description: Brightness of the light(s) when turning on
default: 50
selector:
number:
min: 0.0
max: 100.0
mode: slider
step: 1.0
unit_of_measurement: '%'
button_1:
name: Button S1
description: Action to run on Button S1
default: []
selector:
action:
button_2:
name: Button S2
description: Action to run on Button S2
default: []
selector:
action:
button_3:
name: Button S3
description: Action to run on Button S3
default: []
selector:
action:
button_4:
name: Button S4
description: Action to run on Button S4
default: []
selector:
action:
button_5:
name: Button S5
description: Action to run on Button S5
default: []
selector:
action:
button_6:
name: Button S6
description: Action to run on Button S6
default: []
selector:
action:
mode: single
max_exceeded: silent
variables:
force_brightness: !input 'force_brightness'
trigger:
- platform: event
event_type: deconz_event
event_data:
device_id: !input 'remote'
action:
- variables:
event: '{{ trigger.event.data.event }}'
- choose:
- conditions:
- '{{ event == 2002 }}'
sequence:
- choose:
- conditions: '{{ force_brightness }}'
sequence:
- service: light.turn_on
target: !input 'light'
data:
transition: 1
brightness_pct: !input 'brightness'
default:
- service: light.turn_on
target: !input 'light'
data:
transition: 1
- delay:
milliseconds: 100
- conditions:
- '{{ event == 1002 }}'
sequence:
- service: light.turn_off
target: !input 'light'
- conditions:
- '{{ event == 2001 }}'
sequence:
- service: light.turn_on
target: !input 'light'
data:
brightness_step_pct: 5
- conditions:
- '{{ event == 1001 }}'
sequence:
- service: light.turn_on
target: !input 'light'
data:
brightness_step_pct: -5
- conditions:
- "{{ event == 3002 }}"
sequence: !input button_1
- conditions:
- "{{ event == 4002 }}"
sequence: !input button_2
- conditions:
- "{{ event == 5002 }}"
sequence: !input button_3
- conditions:
- "{{ event == 6002 }}"
sequence: !input button_4
- conditions:
- "{{ event == 7002 }}"
sequence: !input button_5
- conditions:
- "{{ event == 8002 }}"
sequence: !input button_6