Hi there,
I’ve been trying to figure out why my wall scene controller, battery operated, takes such a long time to turn off or on a wall swatch.
I enabled debug log in karaf and there is a 2 second lag between the last log for node 45, the wall scene controller and node 25, the switch but I can’t for the life of me understand why it takes so long.
I have the suspicion that something’s not right with my zwave network as other battery-operated
wall controller: nodon CWS-3101
power switch: Aeotec ZW096
openhab2 running on RPi3
USB zwave stick aeotec Gen5
Any guidance towards where to look into would be great, I can’t make sense of what’s happening and why it takes so long.
The rule controlling the light from the wall controller is not complicated:
rule "Scenes_Lounge_White"
when
Item Switch_Nodon_Wall_1 received update
then
if (Switch_Nodon_Wall_1.state == 1.0 || Switch_Nodon_Wall_1.state == 1.1) {
...
else if (Switch_Nodon_Wall_1.state == 2.0 || Switch_Nodon_Wall_1.state == 2.1) {
// message = "Turning ON piano light"
// logInfo("Controllers", message)
// pushover(message)
sendCommand(Switch_2_switch, ON)
}
else if (Switch_Nodon_Wall_1.state == 4.0 || Switch_Nodon_Wall_1.state == 4.1) {
// message = "Turning OFF piano light"
// logInfo("Controllers", message)
// pushover(message)
sendCommand(Switch_2_switch, OFF)
}
end
I am sorry for their extent, but I added the quite verbose output log.
output for wall scene controller
==> /var/log/openhab2/openhab.log <==
2017-11-17 22:47:55.421 [DEBUG] [WaveSerialHandler$ZWaveReceiveThread] - Receive Message = 01 0B 00 04 00 2D 05 5B 03 EA 00 04 6E
2017-11-17 22:47:55.426 [DEBUG] [ve.internal.protocol.ZWaveController] - Receive queue TAKE: Length=0
2017-11-17 22:47:55.429 [DEBUG] [wave.internal.protocol.SerialMessage] - Assembled message buffer = 01 0B 00 04 00 2D 05 5B 03 EA 00 04 6E
2017-11-17 22:47:55.432 [DEBUG] [ve.internal.protocol.ZWaveController] - Process Message = 01 0B 00 04 00 2D 05 5B 03 EA 00 04 6E
2017-11-17 22:47:55.435 [DEBUG] [ve.internal.protocol.ZWaveController] - Message: class=ApplicationCommandHandler[0x04], type=Request[0x00], priority=High, dest=255, callback=0, payload=00 2D 05 5B 03 EA 00 04
2017-11-17 22:47:55.436 [DEBUG] [ssage.ApplicationCommandMessageClass] - NODE 45: Application Command Request (ALIVE:DONE)
2017-11-17 22:47:55.437 [DEBUG] [alization.ZWaveNodeInitStageAdvancer] - NODE 45: Starting initialisation from DONE
2017-11-17 22:47:55.439 [DEBUG] [ve.internal.protocol.ZWaveController] - Event Listener org.openhab.binding.zwave.internal.protocol.initialization.ZWaveNodeInitStageAdvancer@14dc277 already registered
2017-11-17 22:47:55.440 [DEBUG] [ssage.ApplicationCommandMessageClass] - NODE 45: Incoming command class CENTRAL_SCENE
2017-11-17 22:47:55.441 [DEBUG] [dclass.ZWaveCentralSceneCommandClass] - NODE 45: Received CENTRAL_SCENE command V2
2017-11-17 22:47:55.443 [DEBUG] [dclass.ZWaveCentralSceneCommandClass] - NODE 45: Received scene 4 at key 0 [Single Press]
2017-11-17 22:47:55.443 [DEBUG] [WaveSerialHandler$ZWaveReceiveThread] - Receive Message = 01 08 00 04 00 2D 02 84 07 5F
2017-11-17 22:47:55.444 [DEBUG] [ve.internal.protocol.ZWaveController] - Notifying event listeners: ZWaveCommandClassValueEvent
2017-11-17 22:47:55.445 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 45: Got an event from Z-Wave network: ZWaveCommandClassValueEvent
2017-11-17 22:47:55.446 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 45: Got a value event from Z-Wave network, endpoint = 0, command class = CENTRAL_SCENE, value = 4.0
2017-11-17 22:47:55.450 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 45: Updating channel state zwave:device:5ddcc1cc:node45:scene_number to 4.0 [DecimalType]
2017-11-17 22:47:55.459 [DEBUG] [ssage.ApplicationCommandMessageClass] - NODE 20: Transaction not completed: node address inconsistent. lastSent=20, incoming=255
2017-11-17 22:47:55.461 [DEBUG] [ve.internal.protocol.ZWaveController] - Receive queue TAKE: Length=0
2017-11-17 22:47:55.463 [DEBUG] [wave.internal.protocol.SerialMessage] - Assembled message buffer = 01 08 00 04 00 2D 02 84 07 5F
2017-11-17 22:47:55.465 [DEBUG] [ve.internal.protocol.ZWaveController] - Process Message = 01 08 00 04 00 2D 02 84 07 5F
2017-11-17 22:47:55.467 [DEBUG] [ve.internal.protocol.ZWaveController] - Message: class=ApplicationCommandHandler[0x04], type=Request[0x00], priority=High, dest=255, callback=0, payload=00 2D 02 84 07
==> /var/log/openhab2/events.log <==
2017-11-17 22:47:55.467 [ItemStateChangedEvent ] - Switch_Nodon_Wall_1 changed from NULL to 4.0
==> /var/log/openhab2/openhab.log <==
2017-11-17 22:47:55.468 [DEBUG] [ssage.ApplicationCommandMessageClass] - NODE 45: Application Command Request (ALIVE:DONE)
2017-11-17 22:47:55.469 [DEBUG] [alization.ZWaveNodeInitStageAdvancer] - NODE 45: Starting initialisation from DONE
2017-11-17 22:47:55.470 [DEBUG] [ve.internal.protocol.ZWaveController] - Event Listener org.openhab.binding.zwave.internal.protocol.initialization.ZWaveNodeInitStageAdvancer@14dc277 already registered
2017-11-17 22:47:55.472 [DEBUG] [ssage.ApplicationCommandMessageClass] - NODE 45: Incoming command class WAKE_UP
2017-11-17 22:47:55.473 [DEBUG] [commandclass.ZWaveWakeUpCommandClass] - NODE 45: Received Wake Up Request
2017-11-17 22:47:55.473 [DEBUG] [commandclass.ZWaveWakeUpCommandClass] - NODE 45: Received WAKE_UP_NOTIFICATION
2017-11-17 22:47:55.474 [DEBUG] [commandclass.ZWaveWakeUpCommandClass] - NODE 45: Is awake with 2 messages in the wake-up queue.
2017-11-17 22:47:55.476 [DEBUG] [ve.internal.protocol.ZWaveController] - Notifying event listeners: ZWaveWakeUpEvent
2017-11-17 22:47:55.477 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 45: Got an event from Z-Wave network: ZWaveWakeUpEvent
2017-11-17 22:47:55.480 [DEBUG] [ve.internal.protocol.ZWaveController] - Message queued. Queue length = 1. Queue={}
2017-11-17 22:47:55.480 [DEBUG] [ocol.ZWaveController$ZWaveSendThread] - Took message from queue for sending. Queue length = 0
2017-11-17 22:47:55.482 [DEBUG] [ssage.ApplicationCommandMessageClass] - NODE 20: Transaction not completed: node address inconsistent. lastSent=20, incoming=255
2017-11-17 22:47:55.484 [DEBUG] [wave.internal.protocol.SerialMessage] - Assembled message buffer = 01 09 00 13 2D 02 84 08 25 62 01
2017-11-17 22:47:55.487 [DEBUG] [ing.zwave.handler.ZWaveSerialHandler] - NODE 45: Sending REQUEST Message = 01 09 00 13 2D 02 84 08 25 62 01
2017-11-17 22:47:55.499 [DEBUG] [WaveSerialHandler$ZWaveReceiveThread] - Receive Message = 01 04 01 13 01 E8
2017-11-17 22:47:55.501 [DEBUG] [ve.internal.protocol.ZWaveController] - Receive queue TAKE: Length=0
2017-11-17 22:47:55.503 [DEBUG] [wave.internal.protocol.SerialMessage] - Assembled message buffer = 01 04 01 13 01 E8
2017-11-17 22:47:55.504 [DEBUG] [ve.internal.protocol.ZWaveController] - Process Message = 01 04 01 13 01 E8
2017-11-17 22:47:55.505 [DEBUG] [ve.internal.protocol.ZWaveController] - Message: class=SendData[0x13], type=Response[0x01], priority=High, dest=255, callback=0, payload=01
2017-11-17 22:47:55.506 [DEBUG] [l.serialmessage.SendDataMessageClass] - NODE 45: Sent Data successfully placed on stack.
2017-11-17 22:47:55.514 [DEBUG] [WaveSerialHandler$ZWaveReceiveThread] - Receive Message = 01 07 00 13 62 00 00 02 8B
2017-11-17 22:47:55.516 [DEBUG] [ve.internal.protocol.ZWaveController] - Receive queue TAKE: Length=0
2017-11-17 22:47:55.517 [DEBUG] [wave.internal.protocol.SerialMessage] - Assembled message buffer = 01 09 00 13 62 00 00 02 00 00 85
2017-11-17 22:47:55.518 [DEBUG] [ve.internal.protocol.ZWaveController] - Process Message = 01 09 00 13 62 00 00 02 00 00 85
2017-11-17 22:47:55.520 [DEBUG] [ve.internal.protocol.ZWaveController] - Message: class=SendData[0x13], type=Request[0x00], priority=High, dest=255, callback=0, payload=62 00 00 02
2017-11-17 22:47:55.520 [DEBUG] [l.serialmessage.SendDataMessageClass] - NODE 45: SendData Request. CallBack ID = 98, Status = Transmission complete and ACK received(0)
2017-11-17 22:47:55.521 [DEBUG] [alization.ZWaveNodeInitStageAdvancer] - NODE 45: Starting initialisation from DONE
2017-11-17 22:47:55.522 [DEBUG] [ve.internal.protocol.ZWaveController] - Event Listener org.openhab.binding.zwave.internal.protocol.initialization.ZWaveNodeInitStageAdvancer@14dc277 already registered
2017-11-17 22:47:55.523 [DEBUG] [.serialmessage.ZWaveCommandProcessor] - Checking transaction complete: Sent Message: class=SendData[0x13], type=Request[0x00], priority=Immediate, dest=45, callback=98, payload=2D 02 84 08
2017-11-17 22:47:55.525 [DEBUG] [.serialmessage.ZWaveCommandProcessor] - Checking transaction complete: Recv Message: class=SendData[0x13], type=Request[0x00], priority=High, dest=255, callback=0, payload=62 00 00 02
2017-11-17 22:47:55.525 [DEBUG] [.serialmessage.ZWaveCommandProcessor] - Checking transaction complete: class=SendData, callback id=98, expected=SendData, cancelled=false transaction complete!
2017-11-17 22:47:55.526 [DEBUG] [ve.internal.protocol.ZWaveController] - Notifying event listeners: ZWaveTransactionCompletedEvent
2017-11-17 22:47:55.527 [DEBUG] [commandclass.ZWaveWakeUpCommandClass] - NODE 45: Went to sleep
2017-11-17 22:47:55.527 [DEBUG] [commandclass.ZWaveWakeUpCommandClass] - NODE 45: Is sleeping
2017-11-17 22:47:55.528 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 45: Got an event from Z-Wave network: ZWaveTransactionCompletedEvent
2017-11-17 22:47:55.528 [DEBUG] [ocol.ZWaveController$ZWaveSendThread] - NODE 45: Response processed after 40ms/4526ms.
output for power switch
2017-11-17 22:47:57.981 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 25: Command received zwave:device:5ddcc1cc:node25:switch_binary --> OFF
2017-11-17 22:47:57.982 [DEBUG] [dclass.ZWaveBinarySwitchCommandClass] - NODE 25: Creating new message for application command SWITCH_BINARY_SET
2017-11-17 22:47:57.985 [DEBUG] [ocol.ZWaveController$ZWaveSendThread] - Took message from queue for sending. Queue length = 0
2017-11-17 22:47:57.985 [DEBUG] [ve.internal.protocol.ZWaveController] - Message queued. Queue length = 0. Queue={}
2017-11-17 22:47:57.986 [DEBUG] [wave.internal.protocol.SerialMessage] - Assembled message buffer = 01 0A 00 13 19 03 25 01 00 25 63 9E
==> /var/log/openhab2/events.log <==
2017-11-17 22:47:57.987 [ItemCommandEvent ] - Item 'Switch_2_switch' received command OFF
==> /var/log/openhab2/openhab.log <==
2017-11-17 22:47:57.988 [DEBUG] [ing.zwave.handler.ZWaveSerialHandler] - NODE 25: Sending REQUEST Message = 01 0A 00 13 19 03 25 01 00 25 63 9E
==> /var/log/openhab2/events.log <==
2017-11-17 22:47:57.990 [ItemStateChangedEvent ] - Switch_2_switch changed from ON to OFF
==> /var/log/openhab2/openhab.log <==
2017-11-17 22:47:58.001 [DEBUG] [WaveSerialHandler$ZWaveReceiveThread] - Receive Message = 01 04 01 13 01 E8
2017-11-17 22:47:58.003 [DEBUG] [ve.internal.protocol.ZWaveController] - Receive queue TAKE: Length=0
2017-11-17 22:47:58.004 [DEBUG] [wave.internal.protocol.SerialMessage] - Assembled message buffer = 01 04 01 13 01 E8
2017-11-17 22:47:58.005 [DEBUG] [ve.internal.protocol.ZWaveController] - Process Message = 01 04 01 13 01 E8
2017-11-17 22:47:58.006 [DEBUG] [ve.internal.protocol.ZWaveController] - Message: class=SendData[0x13], type=Response[0x01], priority=High, dest=255, callback=0, payload=01
2017-11-17 22:47:58.006 [DEBUG] [l.serialmessage.SendDataMessageClass] - NODE 25: Sent Data successfully placed on stack.
2017-11-17 22:47:58.017 [DEBUG] [WaveSerialHandler$ZWaveReceiveThread] - Receive Message = 01 07 00 13 63 00 00 02 8A
2017-11-17 22:47:58.020 [DEBUG] [ve.internal.protocol.ZWaveController] - Receive queue TAKE: Length=0
2017-11-17 22:47:58.022 [DEBUG] [wave.internal.protocol.SerialMessage] - Assembled message buffer = 01 09 00 13 63 00 00 02 00 00 84
2017-11-17 22:47:58.023 [DEBUG] [ve.internal.protocol.ZWaveController] - Process Message = 01 09 00 13 63 00 00 02 00 00 84
2017-11-17 22:47:58.024 [DEBUG] [ve.internal.protocol.ZWaveController] - Message: class=SendData[0x13], type=Request[0x00], priority=High, dest=255, callback=0, payload=63 00 00 02
2017-11-17 22:47:58.027 [DEBUG] [l.serialmessage.SendDataMessageClass] - NODE 25: SendData Request. CallBack ID = 99, Status = Transmission complete and ACK received(0)
2017-11-17 22:47:58.028 [DEBUG] [alization.ZWaveNodeInitStageAdvancer] - NODE 25: Starting initialisation from DONE
2017-11-17 22:47:58.028 [DEBUG] [ve.internal.protocol.ZWaveController] - Event Listener org.openhab.binding.zwave.internal.protocol.initialization.ZWaveNodeInitStageAdvancer@51c7c7 already registered
2017-11-17 22:47:58.030 [DEBUG] [.serialmessage.ZWaveCommandProcessor] - Checking transaction complete: Sent Message: class=SendData[0x13], type=Request[0x00], priority=Set, dest=25, callback=99, payload=19 03 25 01 00
2017-11-17 22:47:58.030 [DEBUG] [WaveSerialHandler$ZWaveReceiveThread] - Receive Message = 01 08 00 04 00 19 02 82 01 6B
2017-11-17 22:47:58.031 [DEBUG] [.serialmessage.ZWaveCommandProcessor] - Checking transaction complete: Recv Message: class=SendData[0x13], type=Request[0x00], priority=High, dest=255, callback=0, payload=63 00 00 02
2017-11-17 22:47:58.032 [DEBUG] [.serialmessage.ZWaveCommandProcessor] - Checking transaction complete: class=SendData, callback id=99, expected=SendData, cancelled=false transaction complete!
2017-11-17 22:47:58.032 [DEBUG] [ve.internal.protocol.ZWaveController] - Notifying event listeners: ZWaveTransactionCompletedEvent
2017-11-17 22:47:58.033 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 25: Got an event from Z-Wave network: ZWaveTransactionCompletedEvent
2017-11-17 22:47:58.034 [DEBUG] [ocol.ZWaveController$ZWaveSendThread] - NODE 25: Response processed after 43ms/4526ms.
2017-11-17 22:47:58.037 [DEBUG] [ve.internal.protocol.ZWaveController] - Receive queue TAKE: Length=0
2017-11-17 22:47:58.038 [DEBUG] [wave.internal.protocol.SerialMessage] - Assembled message buffer = 01 08 00 04 00 19 02 82 01 6B
2017-11-17 22:47:58.040 [DEBUG] [ve.internal.protocol.ZWaveController] - Process Message = 01 08 00 04 00 19 02 82 01 6B
2017-11-17 22:47:58.041 [DEBUG] [ve.internal.protocol.ZWaveController] - Message: class=ApplicationCommandHandler[0x04], type=Request[0x00], priority=High, dest=255, callback=0, payload=00 19 02 82 01
2017-11-17 22:47:58.042 [DEBUG] [ssage.ApplicationCommandMessageClass] - NODE 25: Application Command Request (ALIVE:DONE)
2017-11-17 22:47:58.043 [DEBUG] [alization.ZWaveNodeInitStageAdvancer] - NODE 25: Starting initialisation from DONE
2017-11-17 22:47:58.043 [DEBUG] [ve.internal.protocol.ZWaveController] - Event Listener org.openhab.binding.zwave.internal.protocol.initialization.ZWaveNodeInitStageAdvancer@51c7c7 already registered
2017-11-17 22:47:58.044 [DEBUG] [ssage.ApplicationCommandMessageClass] - NODE 25: Incoming command class HAIL
2017-11-17 22:47:58.045 [DEBUG] [l.commandclass.ZWaveHailCommandClass] - NODE 25: Received Hail command (v0)
2017-11-17 22:47:58.046 [DEBUG] [l.commandclass.ZWaveHailCommandClass] - NODE 25: Request an update of the dynamic values
2017-11-17 22:47:58.047 [DEBUG] [ve.internal.protocol.ZWaveController] - Notifying event listeners: ZWaveDelayedPollEvent
2017-11-17 22:47:58.051 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 25: Got an event from Z-Wave network: ZWaveDelayedPollEvent
2017-11-17 22:47:58.052 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 25: Polling intialised at 1800 seconds - start in 75 milliseconds.