use @DyerWolf code in the xml config file
<CommandClass id="91" name="COMMAND_CLASS_CENTRAL_SCENE" version="1" request_flags="4" innif="true" scenecount="2">
<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="2" />
<Value type="int" genre="user" instance="1" index="1" label="Top Button Scene" units="" read_only="false" write_only="false" verify_changes="false" poll_intensity="0" min="-2147483648" max="2147483647" value="0" />
<Value type="int" genre="user" instance="1" index="2" label="Bottom Button Scene" units="" read_only="false" write_only="false" verify_changes="false" poll_intensity="0" min="-2147483648" max="2147483647" value="0" />
</CommandClass>
Then in an automation you can do:
# Up id: 1
# Down id: 2
# scene_data
# - 0: click
# - 2: hold
# - 1: release
- alias: 'GoSwitch On'
trigger:
- event_data:
entity_id: zwave.linear_wa00z1_scene_switch
scene_id: 1
scene_data: 0
event_type: zwave.scene_activated
platform: event
condition: []
action:
- service: homeassistant.turn_on
entity_id: input_boolean.notify_home
- alias: 'GoSwitch Off'
trigger:
- event_data:
entity_id: zwave.linear_wa00z1_scene_switch
scene_id: 2
scene_data: 0
event_type: zwave.scene_activated
platform: event
condition: []
action:
- service: homeassistant.turn_off
entity_id: input_boolean.notify_home