The problem I have is that the device automatically switches off after 1 minute even though switch is in on position in OH.
In the item file the Switch declaration is there alongside with the Sensor channel.
The sensor channel is working fine.
The issue I have is that when I switch the “Switch” channel from OH or the physical device it will turn on for at most 1 minute, it looks like it switches off during the periodic polling of the device, i.e. after 1 minute at most.
I don’t know how I can resolve this, am I just missing out on some fundamental configuration relating to the state/status of the device that needs to be persisted/updated or could there be some other issue at a lower level?
My ultimate goal here is to replicate the physical run back time in OH by possibly providing 1 or 2 countdown time interval. I have seen examples of how to do this using a rule and virtual switch so this should not present a problem once I find the root cause of my initial issue.
Below is the output of the log file from when I switch on the device via the UI until the device switches to the off state when polling occurs.
openhab@s1:/opt/openhab2/conf/items$ cat run_back_device.items
Switch Run_Back_Switch “Boiler Switch” (Heating) {channel=“zwave:device:a863ae3c:node3:switch_binary”}
Number Run_Back_Temp “Hall Temp [%.1f C]” (Heating) {channel=“zwave:device:a863ae3c:node3:sensor_multilevel”}
openhab.log
2017-04-21 22:40:27.355 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 3: Command received zwave:device:a863ae3c:node3:switch_binary --> ON
2017-04-21 22:40:27.355 [DEBUG] [dclass.ZWaveBinarySwitchCommandClass] - NODE 3: Creating new message for application command SWITCH_BINARY_SET
2017-04-21 22:40:27.355 [DEBUG] [ve.internal.protocol.ZWaveController] - Message queued. Queue length = 1. Queue={}
2017-04-21 22:40:27.355 [DEBUG] [ocol.ZWaveController$ZWaveSendThread] - Took message from queue for sending. Queue length = 0
2017-04-21 22:40:27.356 [DEBUG] [wave.internal.protocol.SerialMessage] - Assembled message buffer = 01 0A 00 13 03 03 25 01 FF 25 6D 75
2017-04-21 22:40:27.356 [DEBUG] [ing.zwave.handler.ZWaveSerialHandler] - NODE 3: Sending REQUEST Message = 01 0A 00 13 03 03 25 01 FF 25 6D 75
2017-04-21 22:40:27.363 [DEBUG] [WaveSerialHandler$ZWaveReceiveThread] - Receive Message = 01 04 01 13 01 E8
2017-04-21 22:40:27.364 [DEBUG] [ve.internal.protocol.ZWaveController] - Receive queue TAKE: Length=0
2017-04-21 22:40:27.364 [DEBUG] [wave.internal.protocol.SerialMessage] - Assembled message buffer = 01 04 01 13 01 E8
2017-04-21 22:40:27.364 [DEBUG] [ve.internal.protocol.ZWaveController] - Process Message = 01 04 01 13 01 E8
2017-04-21 22:40:27.364 [DEBUG] [ve.internal.protocol.ZWaveController] - Message: class=SendData[0x13], type=Response[0x01], priority=High, dest=255, callback=0, payload=01
2017-04-21 22:40:27.364 [DEBUG] [l.serialmessage.SendDataMessageClass] - NODE 3: Sent Data successfully placed on stack.
2017-04-21 22:40:27.380 [DEBUG] [WaveSerialHandler$ZWaveReceiveThread] - Receive Message = 01 07 00 13 6D 00 00 02 84
2017-04-21 22:40:27.381 [DEBUG] [ve.internal.protocol.ZWaveController] - Receive queue TAKE: Length=0
2017-04-21 22:40:27.381 [DEBUG] [wave.internal.protocol.SerialMessage] - Assembled message buffer = 01 09 00 13 6D 00 00 02 00 00 8A
2017-04-21 22:40:27.381 [DEBUG] [ve.internal.protocol.ZWaveController] - Process Message = 01 09 00 13 6D 00 00 02 00 00 8A
2017-04-21 22:40:27.381 [DEBUG] [ve.internal.protocol.ZWaveController] - Message: class=SendData[0x13], type=Request[0x00], priority=High, dest=255, callback=0, payload=6D 00 00 02
2017-04-21 22:40:27.381 [DEBUG] [l.serialmessage.SendDataMessageClass] - NODE 3: SendData Request. CallBack ID = 109, Status = Transmission complete and ACK received(0)
2017-04-21 22:40:27.381 [DEBUG] [alization.ZWaveNodeInitStageAdvancer] - NODE 3: Starting initialisation from DONE
2017-04-21 22:40:27.381 [DEBUG] [ve.internal.protocol.ZWaveController] - Event Listener org.openhab.binding.zwave.internal.protocol.initialization.ZWaveNodeInitStageAdvancer@773be2c9 already registered
2017-04-21 22:40:27.382 [DEBUG] [.serialmessage.ZWaveCommandProcessor] - Checking transaction complete: Sent Message: class=SendData[0x13], type=Request[0x00], priority=Set, dest=3, callback=109, payload=03 03 25 01 FF
2017-04-21 22:40:27.382 [DEBUG] [.serialmessage.ZWaveCommandProcessor] - Checking transaction complete: Recv Message: class=SendData[0x13], type=Request[0x00], priority=High, dest=255, callback=0, payload=6D 00 00 02
2017-04-21 22:40:27.382 [DEBUG] [.serialmessage.ZWaveCommandProcessor] - Checking transaction complete: class=SendData, callback id=109, expected=SendData, cancelled=false transaction complete!
2017-04-21 22:40:27.382 [DEBUG] [ve.internal.protocol.ZWaveController] - Notifying event listeners: ZWaveTransactionCompletedEvent
2017-04-21 22:40:27.382 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 3: Got an event from Z-Wave network: ZWaveTransactionCompletedEvent
2017-04-21 22:40:27.382 [DEBUG] [ocol.ZWaveController$ZWaveSendThread] - NODE 3: Response processed after 26ms/274ms.
2017-04-21 22:41:09.277 [DEBUG] [WaveSerialHandler$ZWaveReceiveThread] - Receive Message = 01 0C 00 04 00 03 06 31 05 01 22 00 BC 59
2017-04-21 22:41:09.277 [DEBUG] [ve.internal.protocol.ZWaveController] - Receive queue TAKE: Length=0
2017-04-21 22:41:09.277 [DEBUG] [wave.internal.protocol.SerialMessage] - Assembled message buffer = 01 0C 00 04 00 03 06 31 05 01 22 00 BC 59
2017-04-21 22:41:09.277 [DEBUG] [ve.internal.protocol.ZWaveController] - Process Message = 01 0C 00 04 00 03 06 31 05 01 22 00 BC 59
2017-04-21 22:41:09.277 [DEBUG] [ve.internal.protocol.ZWaveController] - Message: class=ApplicationCommandHandler[0x04], type=Request[0x00], priority=High, dest=255, callback=0, payload=00 03 06 31 05 01 22 00 BC
2017-04-21 22:41:09.278 [DEBUG] [ssage.ApplicationCommandMessageClass] - NODE 3: Application Command Request (ALIVE:DONE)
2017-04-21 22:41:09.278 [DEBUG] [alization.ZWaveNodeInitStageAdvancer] - NODE 3: Starting initialisation from DONE
2017-04-21 22:41:09.278 [DEBUG] [ve.internal.protocol.ZWaveController] - Event Listener org.openhab.binding.zwave.internal.protocol.initialization.ZWaveNodeInitStageAdvancer@773be2c9 already registered
2017-04-21 22:41:09.278 [DEBUG] [ssage.ApplicationCommandMessageClass] - NODE 3: Incoming command class SENSOR_MULTILEVEL
2017-04-21 22:41:09.278 [DEBUG] [ss.ZWaveMultiLevelSensorCommandClass] - NODE 3: Received COMMAND_CLASS_SENSOR_MULTILEVEL command V1
2017-04-21 22:41:09.278 [DEBUG] [ss.ZWaveMultiLevelSensorCommandClass] - NODE 3: Sensor Multi Level REPORT received
2017-04-21 22:41:09.278 [DEBUG] [ss.ZWaveMultiLevelSensorCommandClass] - NODE 3: Sensor Type = Temperature(1), Scale = 0
2017-04-21 22:41:09.278 [DEBUG] [ss.ZWaveMultiLevelSensorCommandClass] - NODE 3: Sensor Value = 18.8
2017-04-21 22:41:09.278 [DEBUG] [ve.internal.protocol.ZWaveController] - Notifying event listeners: ZWaveMultiLevelSensorValueEvent
2017-04-21 22:41:09.278 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 3: Got an event from Z-Wave network: ZWaveMultiLevelSensorValueEvent
2017-04-21 22:41:09.278 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 3: Got a value event from Z-Wave network, endpoint = 0, command class = SENSOR_MULTILEVEL, value = 18.8
2017-04-21 22:41:09.278 [DEBUG] [erter.ZWaveMultiLevelSensorConverter] - NODE 3: Sensor is reporting scale 0, requiring conversion to 0. Value is now 18.8.
2017-04-21 22:41:09.278 [DEBUG] [converter.ZWaveCommandClassConverter] - Converted temperature from 18.8C to 18.8C
2017-04-21 22:41:09.279 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 3: Updating channel state zwave:device:a863ae3c:node3:sensor_temperature to 18.8 [DecimalType]
2017-04-21 22:41:09.279 [DEBUG] [.serialmessage.ZWaveCommandProcessor] - Checking transaction complete: Sent Message: class=SendData[0x13], type=Request[0x00], priority=Set, dest=3, callback=109, payload=03 03 25 01 FF
2017-04-21 22:41:09.279 [DEBUG] [.serialmessage.ZWaveCommandProcessor] - Checking transaction complete: Recv Message: class=ApplicationCommandHandler[0x04], type=Request[0x00], priority=High, dest=255, callback=0, payload=00 03 06 31 05 01 22 00 BC
2017-04-21 22:41:09.279 [DEBUG] [.serialmessage.ZWaveCommandProcessor] - Checking transaction complete: class=ApplicationCommandHandler, callback id=109, expected=SendData, cancelled=false MISMATCH