Blueprint for Fibaro Swipe - FGGC001

G’day everyone,

I hope I’ve adhered to the rules with this post but I thought I’d give it a try. First time for everyone, right?

I recently purchased a Fibaro Swipe and there doesn’t seem to be any easily-found simple automations or blueprints for it.

I was already using the blueprint by makeitworktech who has modified another but for a different device, so some of this code will be slightly third-hand. :slight_smile:

Anyway, here it is, tested and working for my Fibaro Swipe.

Enjoy, hack, pull apart, modify and have fun!

[Edit: I’ve added the code for the extra gesture sequences you can perform if you wish to set up custom ones.]


blueprint:
  name: Fibaro Swipe (Z-Wave JS)
  description: 'Create automations for Swipe by Fibaro using the Z-Wave JS integration.'
  domain: automation
  input:
    fibaro_swipe:
      name: Fibaro Swipe
      description: List of available Swipe devices.
      selector:
        device:
          integration: zwave_js
          manufacturer: Fibargroup
          model: FGGC001
    swipe_up:
      name: Swipe Up
      description: Action to run when swiped up.
      default: []
      selector:
        action: {}
    swipe_down:
      name: Swipe Down
      description: Action to run when swiped down.
      default: []
      selector:
        action: {}
    swipe_left:
      name: Swipe Left
      description: Action to run when swiped left.
      default: []
      selector:
        action: {}
    swipe_right:
      name: Swipe Right
      description: Action to run when swiped right.
      default: []
      selector:
        action: {}
    sequence_1:
      name: Sequence 1
      description: Action to run when sequence 1 is performed
      default: []
      selector:
        action: {}
    sequence_2:
      name: Sequence 2
      description: Action to run when sequence 2 is performed
      default: []
      selector:
        action: {}
    sequence_3:
      name: Sequence 3
      description: Action to run when sequence 3 is performed
      default: []
      selector:
        action: {}
    sequence_4:
      name: Sequence 4
      description: Action to run when sequence 4 is performed
      default: []
      selector:
        action: {}
    sequence_5:
      name: Sequence 5
      description: Action to run when sequence 5 is performed
      default: []
      selector:
        action: {}
    sequence_6:
      name: Sequence 6
      description: Action to run when sequence 6 is performed
      default: []
      selector:
        action: {}
        
mode: single
max_exceeded: silent
variables:
  device_id: !input 'fibaro_swipe'
trigger:
- platform: event
  event_type: zwave_js_value_notification
condition: '{{ trigger.event.data.device_id == device_id }}'
action:
- variables:
    property_key_name: '{{ trigger.event.data.property_key_name }}'
    property_name: '{{ trigger.event.data.property_name }}'
    label: '{{ trigger.event.data.label }}'
    command_class_name: '{{ trigger.event.data.command_class_name }}'
    value: '{{ trigger.event.data.value }}'
    node_id: '{{ trigger.event.data.node_id }}'
- service: logbook.log
  data:
    name: Z-Wave JS
    message: 'received event from Fibaro Swipe - Node {{node_id}}: {{ command_class_name }} - {{
      value }} - {{ label }}'
- choose:
  - conditions: "{{  property_name == 'scene' \n    and property_key_name == '001'\n\
      \    and value == 'KeyPressed' }}\n"
    sequence: !input 'swipe_up'
  - conditions: "{{  property_name == 'scene' \n    and property_key_name == '002'\n\
      \    and value == 'KeyPressed' \n}}\n"
    sequence: !input 'swipe_down'
  - conditions: "{{  property_name == 'scene' \n    and property_key_name == '003'\n\
      \    and value == 'KeyPressed' \n}}\n"
    sequence: !input 'swipe_left'
  - conditions: "{{  property_name == 'scene' \n    and property_key_name == '004'\n\
      \    and value == 'KeyPressed' \n}}\n"
    sequence: !input 'swipe_right'
  - conditions: "{{  property_name == 'scene' \n    and property_key_name == '007'\n\
      \    and value == 'KeyPressed' \n}}\n"
    sequence: !input 'sequence_1'
  - conditions: "{{  property_name == 'scene' \n    and property_key_name == '008'\n\
      \    and value == 'KeyPressed' \n}}\n"
    sequence: !input 'sequence_2'               
  - conditions: "{{  property_name == 'scene' \n    and property_key_name == '009'\n\
      \    and value == 'KeyPressed' \n}}\n"
    sequence: !input 'sequence_3'
  - conditions: "{{  property_name == 'scene' \n    and property_key_name == '010'\n\
      \    and value == 'KeyPressed' \n}}\n"
    sequence: !input 'sequence_4'         
  - conditions: "{{  property_name == 'scene' \n    and property_key_name == '011'\n\
      \    and value == 'KeyPressed' \n}}\n"
    sequence: !input 'sequence_5'
  - conditions: "{{  property_name == 'scene' \n    and property_key_name == '012'\n\
      \    and value == 'KeyPressed' \n}}\n"
    sequence: !input 'sequence_6'

It’s also available here: Fibaro Swipe Blueprint

2 Likes

Hello Nice nice … I just got my device today but I am not really able to add it via ZwaveJS intragration. Any ideas hw to pair it? I followed the instructions by holdung the hand in the middle untill menu enter… then I hear one beep… then two and i swipe up but it won*t be added to the zwave :frowning: How did you add this device and with what integration?

Hello I got it setup but apparently there is a problem to import this blueprint :frowning:

how did you manage to get it paired with zwavsjs2mqtt?

I use zwavejs :frowning: in facat i use the button on the back. you put it inside till i beeps three times … and then u put the button again shortly after one time. then it will pair

How is this supposed to work?

[Edit: I’ve added the code for the extra gesture sequences you can perform if you wish to set up custom ones.]

G’day! This is the link I followed. I must say that it WAS a tad tricky to get into ‘programming mode’ the proper way but perseverance paid off. Just keep at it.

Perseverance. It took a bit of messing about as I recall. Sorry I can’t be of more help.

1 Like

Did the blueprint import properly after I fixed the quotes that you pointed out through github?

@Lloyd-AU gist works, can you please just correct the code in this first threat? like this we can copy the link here in the forum iso github :slight_smile:

Ahh geez…sorry, forgot it was in two places. Doing it now! :slight_smile: