I created this blueprint on the basis of vbflo’s blueprint I found (Inovelli LZW36 Fan/Dimmer Scenes)
This blueprint creates an automation for the fibaro dimmer 2 functions of the S2 switch.
Select witch device you want to use and than create actions for all S2 functions:
- 1 press
- 2 presses
- 3 presses
- hold
Edit: I loaned some code from: ZWaveJS - Fibaro dimmer 2 - S1 and S2 scenes to get it properly working again with ZWaveJS. If you want to include scene activation for S1 aswell you can use this automation. I wanted this one to remain clean and only add support for the S2
Thanks @ankabout for pointing me to this.
blueprint:
name: Fibaro Dimmer 2 S2
description: |
Use this blueprint to create automations based on button presses for the Fibaro Dimmer 2
domain: automation
input:
fibaro_device:
name: Fibaro Dimmer
description: The Fibaro Dimmer that will trigger the scenes
selector:
device:
integration: zwave_js
manufacturer: Fibargroup
s2_button_once:
name: S2 Button Once
description: Pick an action for when the s2 button is pressed once.
default: []
selector:
action:
s2_button_twice:
name: S2 Button Twice
description: Pick an action for when the s2 button is pressed twice.
default: []
selector:
action:
s2_button_trice:
name: S2 Button Three Times
description: Pick an action for when the s2 button is pressed three times.
default: []
selector:
action:
s2_button_hold:
name: S2 Button Hold
description: Pick an action for when the s2 button is hold.
default: []
selector:
action:
mode: single
trigger:
- platform: event
event_type: zwave_js_value_notification
event_data:
device_id: !input fibaro_device
variables:
scene_id: "{{ trigger.event.data.scene_id }}"
action:
- choose:
- conditions:
- condition: template
value_template: "{{ trigger.event.data.value == 26 }}"
sequence: !input s2_button_once
- conditions:
- condition: template
value_template: "{{ trigger.event.data.value == 24 }}"
sequence: !input s2_button_twice
- conditions:
- condition: template
value_template: "{{ trigger.event.data.value == 25 }}"
sequence: !input s2_button_trice
- conditions:
- condition: template
value_template: "{{ trigger.event.data.value == 22 }}"
sequence: !input s2_button_hold