Edit zwcfg config

Copy and replace the device specific for your button node, as described in the documentation.

Start Home Assistant

Write a automation

My simple test automation

I Just wrote a simple automation to test. One click turns on a light, two click turns it off.

YAML

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

- alias: 'FibBtnTest'

trigger:

platform: event

event_type: zwave.scene_activated

event_data:

entity_id: zwave.fibaro_red_btn_01

scene_id: 1

scene_data: 0

action:

- service: switch.turn_on

entity_id: switch.lys_pc_robert

- alias: 'FibBtnTest off'

trigger:

platform: event

event_type: zwave.scene_activated

event_data:

entity_id: zwave.fibaro_red_btn_01

scene_id: 1

scene_data: 3

action:

- service: switch.turn_off

entity_id: switch.lys_pc_robert

Finding scene data value

For finding the scene data value, the best way is to check the Z-wave log. This can be found under your Home Assistant root, named OZW_Log.txt. You can also pull the log in the GUI, under Configuration -> Z-wave -> OZW Log.

I find it most easy to view the log in Putty:# tail -f /home/homeassistant/.homeassistant/OZW_Log.txt | grep “Node010”

(Grep will only show data for the node you want. In my case the button was Node010. You can find your node id under the Z-wave node management in the GUI.)