Z-Wave Fibaro Button (FGPB-101)

What is wrong here ? Nothing happens and it looks similar to your code ?

- alias: Druk Zwarte knop
  hide_entity: true
  trigger:
    event_type: zwave.scene_activated
    platform: event
    event_data:
      entity_id: zwave.zwarte_knop_4
      scene_id: 1
      scene_data: 7680
  action:
    service: media_player.turn_off
    entity_id: media_player.viera_dt60_series

this is my log

2018-02-19 16:37:30.242 Info, Node004, Received Central Scene set from node 4: scene id=1 in 7860 seconds. Sending event notification.
2018-02-19 16:37:30.242 Detail, Node004, Refreshed Value: old value=7680, new value=7860, type=int
2018-02-19 16:37:30.242 Detail, Node004, Changes to this value are not verified
2018-02-19 16:37:30.242 Detail, Node004, Notification: ValueChanged
2018-02-19 16:37:31.109 Detail, Node004,   Received: 0x01, 0x0b, 0x00, 0x04, 0x00, 0x04, 0x05, 0x5b, 0x03, 0x07, 0x82, 0x01, 0x2d
2018-02-19 16:37:31.109 Detail,
2018-02-19 16:37:31.109 Info, Node004, Received Central Scene set from node 4: scene id=1 in 7800 seconds. Sending event notification.
2018-02-19 16:37:31.109 Detail, Node004, Refreshed Value: old value=7860, new value=7800, type=int
2018-02-19 16:37:31.109 Detail, Node004, Changes to this value are not verified
2018-02-19 16:37:31.109 Detail, Node004, Notification: ValueChanged
2018-02-19 16:37:32.445 Warning, WARNING: Out of frame flow! (0x00).  Sending NAK.
2018-02-19 16:37:32.448 Detail, Node004,   Received: 0x01, 0x0b, 0x00, 0x04, 0x00, 0x04, 0x05, 0x5b, 0x03, 0x08, 0x81, 0x01, 0x21
2018-02-19 16:37:32.448 Detail,
2018-02-19 16:37:32.448 Info, Node004, Received Central Scene set from node 4: scene id=1 in 7740 seconds. Sending event notification.
2018-02-19 16:37:32.448 Detail, Node004, Refreshed Value: old value=7800, new value=7740, type=int
2018-02-19 16:37:32.448 Detail, Node004, Changes to this value are not verified
2018-02-19 16:37:32.448 Detail, Node004, Notification: ValueChanged
2018-02-19 16:37:35.291 Detail, Node004,   Received: 0x01, 0x0b, 0x00, 0x04, 0x00, 0x04, 0x05, 0x5b, 0x03, 0x09, 0x80, 0x01, 0x21
2018-02-19 16:37:35.291 Detail,
2018-02-19 16:37:35.291 Info, Node004, Received Central Scene set from node 4: scene id=1 in 7680 seconds. Sending event notification.
2018-02-19 16:37:35.291 Detail, Node004, Refreshed Value: old value=7740, new value=7680, type=int
2018-02-19 16:37:35.291 Detail, Node004, Changes to this value are not verified
2018-02-19 16:37:35.291 Detail, Node004, Notification: ValueChanged
2018-02-19 16:37:36.651 Detail, Node004,   Received: 0x01, 0x0b, 0x00, 0x04, 0x00, 0x04, 0x05, 0x5b, 0x03, 0x0a, 0x80, 0x01, 0x22
2018-02-19 16:37:36.651 Detail,
2018-02-19 16:37:36.651 Info, Node004, Received Central Scene set from node 4: scene id=1 in 7680 seconds. Sending event notification.
2018-02-19 16:37:36.651 Detail, Node004, Refreshed Value: old value=7680, new value=7680, type=int
2018-02-19 16:37:36.651 Detail, Node004, Changes to this value are not verified
2018-02-19 16:37:36.651 Detail, Node004, Notification: ValueChanged
2018-02-19 16:37:37.990 Detail, Node004,   Received: 0x01, 0x0b, 0x00, 0x04, 0x00, 0x04, 0x05, 0x5b, 0x03, 0x0b, 0x80, 0x01, 0x231

Try this:

- alias: "Druk Zwarte knop"
  hide_entity: true
  trigger:
    platform: event
    event_type: zwave.scene_activated
    event_data:
      entity_id: zwave.zwarte_knop_4
      scene_id: 1
      scene_data: 7680
  action:
    -  service: media_player.turn_off
       data:
         entity_id: media_player.viera_dt60_series

solution

it looks like I have a media_player.panasonic_viera_tv and a media_player.viera_dt60_series

and I was using the wrong. But it’s nowhere defined …

I do not receive the message like this “Received Central Scene set from node 4: scene id=1 in 7740 seconds. Sending event notification.” from my Node018. But it is in my Zwave Network.
Can anybody send my the XML Entries of their Fibaro FGPB-101-5 v3.2 Node?
I found some other links, where they had to change the XML (e.g. A button to trigger automations)

I have hassio 0.81.6

Have you compared what is in your xml file for that device to this:==> https://github.com/OpenZWave/open-zwave/blob/Dev/config/fibaro/fgpb101.xml

Thanks, this helped. Unfortunately, wrong numbers on the main page.

Did you get anywhere with consistency of the scene data being sent through? I’m having similar issues with occasional wakes and battery status being reported. But no scene data. I can’t find any pattern to the behaviour as yet.

Hi, I’m using multiple Fibaro Buttons with HA and Aeotec Z-Stick Gen 5 - They all work fine and I have no issues with scene notifications.

Make sure you are up to date with HA and remove and re-add the button to the network.
After the button initialization is completed (you might need to wake up the button by pressing it 4 times if it does not complete) save the zwave config, stop the network and edit the xml file to modify the command class 91 section. Then start the network again.

this is how my xml for command class 91 looks:

		<CommandClass id="91" name="COMMAND_CLASS_CENTRAL_SCENE" version="1" request_flags="4" innif="true" scenecount="1">
			<Instance index="1" />
			<Value type="int" genre="system" instance="1" index="0" label="Scene Count" units="" read_only="true" write_only="false" verify_changes="false" poll_intensity="0" min="-2147483648" max="2147483647" value="0" />
			<Value type="int" genre="user" instance="1" index="1" label="Button" units="" read_only="true" write_only="false" verify_changes="false" poll_intensity="0" min="-2147483648" max="2147483647" value="0" />
		</CommandClass>

example automation:

- alias: Button x1 
  trigger:
  - platform: event
    event_type: zwave.scene_activated
    event_data:
      entity_id: zwave.button_entity #change that of course
      scene_data: 7680
      scene_id: 1
  condition: []
  action: []

For the Fibaro Button scene_id is always 1, scene_data is:
7680 - pressed x 1
7860 - pressed x 2
7920 - pressed x 3
7980 - pressed x 4
8040 - pressed x 5
7800 - held
7740 - released

All of the above works perfectly for me.

3 Likes

Thanks for the guide.
I had the device working, but was getting issues with the button not always sending scene changes(but always reporting the battery state)

  1. Removed the device from configuration->z-wave->remove node(Press button 6 times, or more).
  2. Reset the button, pressing it 5 times, and one time after that for 5 seconds
  3. rebooted HA
  4. Added the device again (Add Secure Node), this can be tricky, sometimes you need to press more than 6 times for it to recognize the device)
  5. After the device was added, and shown in z-wave devices, i stopped HA.
  6. Edit the zwcfg_xxxxx.xml file, replacing the complete <CommandClass id=“91” section with:
		<CommandClass id="91" name="COMMAND_CLASS_CENTRAL_SCENE" version="1" request_flags="4" innif="true" scenecount="1">
			<Instance index="1" />
			<Value type="int" genre="system" instance="1" index="0" label="Scene Count" units="" read_only="true" write_only="false" verify_changes="false" poll_intensity="0" min="-2147483648" max="2147483647" value="0" />
			<Value type="int" genre="user" instance="1" index="1" label="Button" units="" read_only="true" write_only="false" verify_changes="false" poll_intensity="0" min="-2147483648" max="2147483647" value="0" />
		</CommandClass>
  1. Rebooted HA
  2. tail -f OZW_Log.txt | grep Scene Now shows a scene event EVERY time i press the button :grinning::rofl:

For all of those struggling to get the Button work inside homeassistant: I just got mine replaced because it was DEFECT. Please find an extract of the error description below. My supplier has run additional tests on the device and confirmed that it doesn’t work the way it’s supposed. Good luck to all of those who might have seen similar issues.

"only one command is working - long push - which creates a central scene command with ID=1 and scene 7800. Afterwards with a second attempt (e.g. push twice), the Button also confirms a scene ID. As soon as I give it a third try, NO MORE COMMAND is being reported back, except for long push.

For me it looks like the Button is no longer capable of sending additional central scene commands after having worked twice before."

Very good work! :+1:

Guys, can someone post what the xml should look like for the button.
Because the <CommandClass id=“91” on the https://www.home-assistant.io/docs/z-wave/device-specific/ it shows scene_data 0, 3 and 4.

Hi, I have followed the tutorial and write the xml file but I don’t get the event_type; zwave.scene_activated
Also I can find it in my service tab. what am I doing wrong

I also could not get it to work properly (I’m too new to this…)
In the Log File I get:

2020-10-03 12:31:29.678 Detail, Node024, Received: 0x01, 0x0b, 0x00, 0x04, 0x00, 0x18, 0x05, 0x5b, 0x03, 0x05, 0x80, 0x01, 0x31
2020-10-03 12:31:29.678 Detail,
2020-10-03 12:31:29.678 Info, Node024, Received Central Scene set from node 24: scene id=1 in 7680 seconds. Sending event notification.
2020-10-03 12:31:29.678 Warning, Node024, No ValueID created for Scene 1

The automation is:

### Test for Fibaro-Button 
- alias: Fibaro_Button_pressed
  trigger:
  - platform: event
    event_type: zwave.scene_activated
    event_data:
      entity_id: zwave.fibaro_button_white
      scene_data: 7680
      scene_id: 1
  action:
    - service: notify.mobile_app_axels_iphone_11_pro
      data:
        message: 'Fibaro Button pressed'

I followed the steps for configuration from rehnmark without problems (Thanks!)
Does anyone have an idea what I’m missing?

Got it working. Somehow the ozw config wasn’t saved properly. After I did the changes again, saved and restarted it was fine.

Hello,

I’m using the OZW Integration. I succesfully added the FGPB-101 button but I have only the 3 following entities:

  • sensor.fgpb101_button_general
  • sensor.fgpb101_button_battery_level
  • binary_sensor.fgpb101_button_home_security_intrusion

when I click on the button nothing changes. I have no scene …
do you know if I can use the command class 91 with OZW ? and where I can add it?

thank you

I see the same, even with the new ZwaveJS integration.

I found a way to use this button with the ZwaveJS integration. :smiley:
So, once the button is discovered by HA and properly integrated, you need to go in the developper tool and in the event page. At the bottom of the page you can listen for events.
You listen the event zwave_js_event and then you click on the button.
You should have now all the information you need about the button. You can add this information inside automatisations.

it works for me! :partying_face: :champagne:

I find the same except those events are not triggered reliably. KeyHeldDown is the most likely value to come through or maybe KeyReleased. It certainly is not guaranteed to get either, let alone both. KeyPressed is quite rare. I have only seen KeyPressedx2 work once. It could be the hardware, but these events come through much more often immediately following a restart of the Z-Wave JS Add-on. (All of my other Z-Wave devices seem to work fine.)

for me, all the scenarii are detected from KeyPressed to KeyPressedx5. KeyHeldDown and KeyReleased work too.

1 Like