ZWave-JS - Fibaro Single / Double Switch 2 (FGS213/FGS223) Button Scenes

A simple scene blueprint for a Fibaro Switch devices.
Button is selectable S1/S2 to keept the action list short and tidy.
Tested with FGS223, but should work for FGS213 and similar.

Select a compatile device and choose a scene 001 for S1 or 002 for S2 button.
Actions:

  • Key pressed
  • Key pressed x2
  • Key pressed x3
  • Key held down
  • Key released

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

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

I get an Error:
Error: UndefinedError: ‘dict object’ has no attribute ‘event’, can someone help me, please?

Im looking for exactly this but for fiber dimmer 2, there is one for z-wave integration but not z-wave-js. Is it possible to make this work for dimmer 2 as well? Thanks in advance

I’ve used this blueprint but my Fibaro Double Switch for whatever reason keeps sending KeyPressedx2 even on single presses, anyone knows why?

Same here. No glue…

Found my fault: Changed parameter 20 Input Button/Switch Configuration to from “Switch” to “Momentary”. Now it works.

Found my fault: Changed parameter 20 Input Button/Switch Configuration to from “Switch” to “Momentary”. Now it works.

Sorry to bump this topic up, but I really want to know if someone managed to get this working on a Fibaro Dimmer 2? This blueprint is exactly what Im looking for.

BR
André

Jak nastavit parametr 27 a 28 ?