Skip to content

Instantly share code, notes, and snippets.

@ntthhtl
Last active January 17, 2022 10:49
Show Gist options
  • Save ntthhtl/5ea2f3ca04ba21c0910ab1327757c8da to your computer and use it in GitHub Desktop.
Save ntthhtl/5ea2f3ca04ba21c0910ab1327757c8da to your computer and use it in GitHub Desktop.
blueprint:
name: ZWave-JS - Fibaro Single/Double Switch (FGS213/FGS223) Scenes
description: |
Create automations to react button scenes from Fibaro Single/Double Switch.
Make sure that device Z-wave parameters 27 and 28 are set correctly.
domain: automation
input:
device:
name: Device
description: A Fibaro Switch device that supports scenes.
selector:
device:
integration: zwave_js
manufacturer: Fibargroup
scene:
name: Button / Scene
description: Choose scene 001 for S1, 002 for S2 button
selector:
select:
options:
- "001"
- "002"
keypressed:
name: Key Pressed 1 time
description: Actions to run for a single tap on.
default: []
selector:
action:
keypressed2x:
name: Key Pressed 2 times
description: Actions to run for a double tap on.
default: []
selector:
action:
keypressed3x:
name: Key Pressed 3 times
description: Actions to run for a triple tap on.
default: []
selector:
action:
keyhelddown:
name: Key Held Down
description: Actions to run for a key held down
default: []
selector:
action:
keyreleased:
name: Key Released
description: Actions to run for a key release.
default: []
selector:
action:
mode: single
max_exceeded: silent
trigger:
platform: event
event_type: zwave_js_value_notification
event_data:
device_id: !input device
command_class_name: "Central Scene"
property_key: !input scene
action:
- variables:
action: "{{ trigger.event.data.value }}"
- choose:
- conditions: "{{ action == 'KeyPressed' }}"
sequence: !input keypressed
- choose:
- conditions: "{{ action == 'KeyPressed2x' }}"
sequence: !input keypressed2x
- choose:
- conditions: "{{ action == 'KeyPressed3x' }}"
sequence: !input keypressed3x
- choose:
- conditions: "{{ action == 'KeyHeldDown' }}"
sequence: !input keyhelddown
- choose:
- conditions: "{{ action == 'KeyReleased' }}"
sequence: !input keyreleased
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment