OH3: Write rule for Hank SCN01

  • Platform information:
    • Hardware: Raspberry Pi 4
    • OS: openhabian 5.10.63-v7+
    • Java Runtime Environment: Zulu11.52+13-CA (build 11.0.13+8-LTS)
    • openHAB version: 3.2.0
  • Issue of the topic: OH3: Write rule for Hank SCN01
  • Please post configurations (if applicable):
    None that seams to give any clues.

Now the Hank SCN01 one button scenen controller seams to be included fine with OpenHAB. Next step is to write a working rule for it.

I have tried creating a rule in the UI, but it seams not to be triggered.

I thought about trying to write a rule-file, like the one I have for Neeo forwardactions, but it relies on trigger events and I can’t see any of those for the Hank.

2021-12-22 13:46:09.372 [DEBUG] [WaveSerialHandler$ZWaveReceiveThread] - Receive Message = 01 0B 00 04 00 0F 05 5B 03 26 00 01 85 
2021-12-22 13:46:09.376 [DEBUG] [nal.protocol.ZWaveTransactionManager] - processReceiveMessage input 0<>128 : Message: class=ApplicationCommandHandler[4], type=Request[0], dest=15, callback=0, payload=00 0F 05 5B 03 26 00 01 
2021-12-22 13:46:09.379 [DEBUG] [nal.protocol.ZWaveTransactionManager] - Received msg (0): Message: class=ApplicationCommandHandler[4], type=Request[0], dest=15, callback=0, payload=00 0F 05 5B 03 26 00 01 
2021-12-22 13:46:09.385 [DEBUG] [nal.protocol.ZWaveTransactionManager] - lastTransaction null
2021-12-22 13:46:09.387 [DEBUG] [nal.protocol.ZWaveTransactionManager] - NODE 15: Application Command Request (ALIVE:DELETE_ROUTES)
2021-12-22 13:46:09.389 [DEBUG] [ng.zwave.internal.protocol.ZWaveNode] - NODE 15: Incoming command class COMMAND_CLASS_CENTRAL_SCENE, endpoint 0
2021-12-22 13:46:09.391 [DEBUG] [ng.zwave.internal.protocol.ZWaveNode] - NODE 15: SECURITY not supported
2021-12-22 13:46:09.394 [DEBUG] [tocol.commandclass.ZWaveCommandClass] - NODE 15: Received COMMAND_CLASS_CENTRAL_SCENE V2 CENTRAL_SCENE_NOTIFICATION
2021-12-22 13:46:09.396 [DEBUG] [dclass.ZWaveCentralSceneCommandClass] - NODE 15: Received scene 1 at key 0 [Single Press]
2021-12-22 13:46:09.398 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 15: Got an event from Z-Wave network: ZWaveCommandClassValueEvent
2021-12-22 13:46:09.401 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 15: Got a value event from Z-Wave network, endpoint=0, command class=COMMAND_CLASS_CENTRAL_SCENE, value=1.0
2021-12-22 13:46:09.403 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 15: Updating channel state zwave:device:8fd62f8f2b:node15:scene_number to 1.0 [DecimalType]
2021-12-22 13:46:09.407 [DEBUG] [nal.protocol.ZWaveTransactionManager] - NODE 15: Commands processed 1.
2021-12-22 13:46:09.409 [DEBUG] [nal.protocol.ZWaveTransactionManager] - NODE 15: Checking command org.openhab.binding.zwave.internal.protocol.ZWaveCommandClassPayload@10d6740.
2021-12-22 13:46:09.412 [DEBUG] [nal.protocol.ZWaveTransactionManager] - Transaction completed - outstandingTransactions 0
2021-12-22 13:46:09.414 [DEBUG] [nal.protocol.ZWaveTransactionManager] - Transaction completed - outstandingTransactions 0
2021-12-22 13:46:09.416 [DEBUG] [nal.protocol.ZWaveTransactionManager] - ZWaveReceiveThread queue empty
2021-12-22 13:46:09.418 [DEBUG] [nal.protocol.ZWaveTransactionManager] - Transaction SendNextMessage 0 out at start. Holdoff false.
2021-12-22 13:46:09.864 [DEBUG] [WaveSerialHandler$ZWaveReceiveThread] - Receive Message = 01 09 00 04 00 0F 03 80 03 64 19 
2021-12-22 13:46:09.868 [DEBUG] [nal.protocol.ZWaveTransactionManager] - processReceiveMessage input 0<>128 : Message: class=ApplicationCommandHandler[4], type=Request[0], dest=15, callback=0, payload=00 0F 03 80 03 64 
2021-12-22 13:46:09.871 [DEBUG] [nal.protocol.ZWaveTransactionManager] - Received msg (0): Message: class=ApplicationCommandHandler[4], type=Request[0], dest=15, callback=0, payload=00 0F 03 80 03 64 
2021-12-22 13:46:09.874 [DEBUG] [nal.protocol.ZWaveTransactionManager] - lastTransaction null
2021-12-22 13:46:09.876 [DEBUG] [nal.protocol.ZWaveTransactionManager] - NODE 15: Application Command Request (ALIVE:DELETE_ROUTES)
2021-12-22 13:46:09.879 [DEBUG] [ng.zwave.internal.protocol.ZWaveNode] - NODE 15: Incoming command class COMMAND_CLASS_BATTERY, endpoint 0
2021-12-22 13:46:09.881 [DEBUG] [ng.zwave.internal.protocol.ZWaveNode] - NODE 15: SECURITY not supported
2021-12-22 13:46:09.883 [DEBUG] [tocol.commandclass.ZWaveCommandClass] - NODE 15: Received COMMAND_CLASS_BATTERY V1 BATTERY_REPORT
2021-12-22 13:46:09.886 [DEBUG] [ommandclass.ZWaveBatteryCommandClass] - NODE 15: Battery report value = 100
2021-12-22 13:46:09.888 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 15: Got an event from Z-Wave network: ZWaveCommandClassValueEvent
2021-12-22 13:46:09.891 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 15: Got a value event from Z-Wave network, endpoint=0, command class=COMMAND_CLASS_BATTERY, value=100
2021-12-22 13:46:09.893 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 15: Updating channel state zwave:device:8fd62f8f2b:node15:battery-level to 100 [DecimalType]
2021-12-22 13:46:09.897 [DEBUG] [nal.protocol.ZWaveTransactionManager] - NODE 15: Commands processed 1.
2021-12-22 13:46:09.900 [DEBUG] [nal.protocol.ZWaveTransactionManager] - NODE 15: Checking command org.openhab.binding.zwave.internal.protocol.ZWaveCommandClassPayload@1308638.
2021-12-22 13:46:09.902 [DEBUG] [nal.protocol.ZWaveTransactionManager] - Transaction completed - outstandingTransactions 0
2021-12-22 13:46:09.904 [DEBUG] [nal.protocol.ZWaveTransactionManager] - Transaction completed - outstandingTransactions 0
2021-12-22 13:46:09.907 [DEBUG] [nal.protocol.ZWaveTransactionManager] - ZWaveReceiveThread queue empty
2021-12-22 13:46:09.909 [DEBUG] [nal.protocol.ZWaveTransactionManager] - Transaction SendNextMessage 0 out at start. Holdoff false.

I have searched this forum but found no message about Hank SCN01 and rules. How would you go about solving this?

What channels does your new Thing offer you? Have you linked Items to any of them?

Yes, to both:

The one of interest is “Scene Number”:

As you see it only shows an integer, but the documentation says it should be combined to a decimal. I can see this decimal in the logs. “1.0” for example below.

2021-12-22 13:46:09.403 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 15: Updating channel state zwave:device:8fd62f8f2b:node15:scene_number to 1.0 [DecimalType]

But I have also been able to get other decimal values such as 1.1 and 1.2

So, wouldn’t you trigger your rule from Item zHankScene_SceneNumber changing? It’s not going to issue commands, and it doesn’t look like an event channel. Also beware that state 1 is not the same as state 1.0

Who cares, look to see what the Item does.