Fibaro Keyfob FGKF601

First off, I cannot take credit for this Blueprint. I used jiri.arazim blueprint and edited it to work for the event types I was getting.

This blueprint works with the Fibaro Keyfob remote and has support for button presses, and holding down each button. First select your device and then pass in what actions you want to happen.

blueprint:
  name: Fibaro KeyFob
  description: Create automations for the Fibaro Keyfob
  domain: automation

  input:
    keyfob_device:
      name: KeyFob Device 
      description: A KeyFob device.
      selector:
        device:
          integration: zwave_js
          manufacturer: Fibargroup
          model: FGKF601

    button_1_pressed:
      name: Button 1 (square) Pressed
      description: Actions to run when button 1 (square) is pressed.
      default: []
      selector:
        action:

    button_1_held:
      name: Button 1 (square) Held Down
      description: Actions to run when button 1 (square) is held down.
      default: []
      selector:
        action:

    button_2_pressed:
      name: Button 2 (circle) Pressed
      description: Actions to run when button 2 (circle) is pressed.
      default: []
      selector:
        action:

    button_2_held:
      name: Button 2 (circle) Held Down
      description: Actions to run when button 2 (circle) is held down.
      default: []
      selector:
        action:

    button_3_pressed:
      name: Button 3 (cross) Pressed
      description: Actions to run when button 3 (cross) is pressed.
      default: []
      selector:
        action:

    button_3_held:
      name: Button 3 (cross) Held Down
      description: Actions to run when button 3 (cross) is held down.
      default: []
      selector:
        action:

    button_4_pressed:
      name: Button 4 (triangle) Pressed
      description: Actions to run when button 4 (triangle) is pressed.
      default: []
      selector:
        action:

    button_4_held:
      name: Button 4 (triangle) Held Down
      description: Actions to run when button 4 (triangle) is held down.
      default: []
      selector:
        action:

    button_5_pressed:
      name: Button 5 (minus) Pressed
      description: Actions to run when button 5 (minus) is pressed.
      default: []
      selector:
        action:

    button_5_held:
      name: Button 5 (minus) Held Down
      description: Actions to run when button 5 (minus) is held down.
      default: []
      selector:
        action:

    button_6_pressed:
      name: Button 6 (plus) Pressed
      description: Actions to run when button 6 (plus) is pressed.
      default: []
      selector:
        action:

    button_6_held:
      name: Button 6 (plus) Held Down
      description: Actions to run when button 6 (plus) is held down.
      default: []
      selector:
        action:


mode: single
max_exceeded: silent

trigger:
  platform: event
  event_type: zwave_js_value_notification
  event_data:
    device_id: !input keyfob_device
    command_class_name: "Central Scene"

action:
  - variables:
      action_name: "{{ trigger.event.data.value_raw }}"
      property_key: "{{ trigger.event.data.property_key }}"
  - choose:
      - conditions: "{{ action_name == 0 and property_key == '001'}}"
        sequence: !input button_1_pressed
      - conditions: "{{ action_name == 2 and property_key == '001' }}"
        sequence: !input button_1_held
      - conditions: "{{ action_name == 0 and property_key == '002' }}"
        sequence: !input button_2_pressed
      - conditions: "{{ action_name == 2 and property_key == '002' }}"
        sequence: !input button_2_held
      - conditions: "{{ action_name == 0 and property_key == '003' }}"
        sequence: !input button_3_pressed
      - conditions: "{{ action_name == 2 and property_key == '003' }}"
        sequence: !input button_3_held
      - conditions: "{{ action_name == 0 and property_key == '004' }}"
        sequence: !input button_4_pressed
      - conditions: "{{ action_name == 2 and property_key == '004' }}"
        sequence: !input button_4_held

      - conditions: "{{ action_name == 0 and property_key == '005' }}"
        sequence: !input button_5_pressed
      - conditions: "{{ action_name == 2 and property_key == '005' }}"
        sequence: !input button_5_held
      - conditions: "{{ action_name == 0 and property_key == '006' }}"
        sequence: !input button_6_pressed
      - conditions: "{{ action_name == 2 and property_key == '006' }}"
        sequence: !input button_6_held
2 Likes