Zwave multisensor

Hi Rainer,

Just wanted let you know that the motion is now working! Thanks for your help. Also the Leds seems to be working

Only thing I am noticing is that when there is motion both the motion (STATUS) and Tamper (ALARM_TYPE_HOME_SECURITY) get triggered. Maybe that's how it's suppose to be.

Thanks again

Hi Rainer,

i have been using this Multisensor with the new beta Zwave file you provided and all the values including motion seem to be working fine except that i keep getting this error message in the logs frequently. Any ideas why?

ERROR 2017-06-20 21:39:19,817 : The encrypted Z-Wave command [APP_CMD_HANDLER_FRAME : NodeID=‘25’, Status=[RECEIVE_STATUS_TYPE_SINGLE], CommandClass=‘COMMAND_CLASS_SECURITY’, Command=‘0x81’, Parameters: [0x55, 0xDD, 0xD1, 0x68, 0xB3, 0xB0, 0xB8, 0x45, 0x68, 0x26, 0x82, 0x17, 0xDE, 0x28, 0x86, 0x30, 0x89, 0x4B, 0xAC, 0xC0, 0xA8]] has been discarded because of unknown nonce identifier ‘222’.

ERROR [pool-2-thread-4703]: The encrypted Z-Wave command [APP_CMD_HANDLER_FRAME : NodeID=‘25’, Status=[RECEIVE_STATUS_TYPE_SINGLE], CommandClass=‘COMMAND_CLASS_SECURITY’, Command=‘0x81’, Parameters: [0x55, 0xDD, 0xD1, 0x68, 0xB3, 0xB0, 0xB8, 0x45, 0x68, 0x26, 0x82, 0x17, 0xDE, 0x28, 0x86, 0x30, 0x89, 0x4B, 0xAC, 0xC0, 0xA8]] has been discarded because of unknown nonce identifier ‘222’.

ERROR 2017-06-20 21:42:22,153 : The encrypted Z-Wave command [APP_CMD_HANDLER_FRAME : NodeID=‘25’, Status=[RECEIVE_STATUS_TYPE_SINGLE], CommandClass=‘COMMAND_CLASS_SECURITY’, Command=‘0x81’, Parameters: [0x8C, 0x9E, 0xD4, 0xC4, 0xF5, 0xE5, 0x50, 0x9D, 0xAE, 0x35, 0x77, 0x4E, 0xE2, 0xAA, 0xF5, 0x3A, 0x18, 0xD2, 0xD7, 0x7A, 0xCB, 0x92, 0x74, 0xA1, 0x3D, 0x68, 0xF3, 0xC5, 0xAD]] has been discarded because of unknown nonce identifier ‘203’.

ERROR [pool-2-thread-4705]: The encrypted Z-Wave command [APP_CMD_HANDLER_FRAME : NodeID=‘25’, Status=[RECEIVE_STATUS_TYPE_SINGLE], CommandClass=‘COMMAND_CLASS_SECURITY’, Command=‘0x81’, Parameters: [0x8C, 0x9E, 0xD4, 0xC4, 0xF5, 0xE5, 0x50, 0x9D, 0xAE, 0x35, 0x77, 0x4E, 0xE2, 0xAA, 0xF5, 0x3A, 0x18, 0xD2, 0xD7, 0x7A, 0xCB, 0x92, 0x74, 0xA1, 0x3D, 0x68, 0xF3, 0xC5, 0xAD]] has been discarded because of unknown nonce identifier ‘203’.

ERROR 2017-06-20 21:49:10,437 : The encrypted Z-Wave command [APP_CMD_HANDLER_FRAME : NodeID=‘25’, Status=[RECEIVE_STATUS_TYPE_SINGLE], CommandClass=‘COMMAND_CLASS_SECURITY’, Command=‘0x81’, Parameters: [0x6E, 0x49, 0xC9, 0x09, 0x36, 0x3C, 0xD2, 0x2E, 0xAE, 0xAF, 0xE5, 0x1A, 0xC9, 0x99, 0x75, 0x7D, 0x6B, 0x7F, 0x6B, 0x38, 0xA0, 0x12, 0x2C, 0x1F, 0x7C, 0xDB, 0x8C, 0x4D]] has been discarded because of unknown nonce identifier ‘56’.

ERROR [pool-2-thread-4709]: The encrypted Z-Wave command [APP_CMD_HANDLER_FRAME : NodeID=‘25’, Status=[RECEIVE_STATUS_TYPE_SINGLE], CommandClass=‘COMMAND_CLASS_SECURITY’, Command=‘0x81’, Parameters: [0x6E, 0x49, 0xC9, 0x09, 0x36, 0x3C, 0xD2, 0x2E, 0xAE, 0xAF, 0xE5, 0x1A, 0xC9, 0x99, 0x75, 0x7D, 0x6B, 0x7F, 0x6B, 0x38, 0xA0, 0x12, 0x2C, 0x1F, 0x7C, 0xDB, 0x8C, 0x4D]] has been discarded because of unknown nonce identifier ‘56’.

ERROR 2017-06-20 22:21:21,279 : The encrypted Z-Wave command [APP_CMD_HANDLER_FRAME : NodeID=‘25’, Status=[RECEIVE_STATUS_TYPE_SINGLE], CommandClass=‘COMMAND_CLASS_SECURITY’, Command=‘0x81’, Parameters: [0xDB, 0xBC, 0xF3, 0x33, 0xED, 0x93, 0x22, 0xD7, 0x68, 0x3F, 0xDC, 0x81, 0x9D, 0x88, 0x55, 0x15, 0x51, 0x3B, 0xEB, 0xD2, 0xA9, 0x35, 0xC8, 0xCC, 0x4A, 0x1A, 0xD3, 0xD3]] has been discarded because of unknown nonce identifier ‘210’.

ERROR [pool-2-thread-4742]: The encrypted Z-Wave command [APP_CMD_HANDLER_FRAME : NodeID=‘25’, Status=[RECEIVE_STATUS_TYPE_SINGLE], CommandClass=‘COMMAND_CLASS_SECURITY’, Command=‘0x81’, Parameters: [0xDB, 0xBC, 0xF3, 0x33, 0xED, 0x93, 0x22, 0xD7, 0x68, 0x3F, 0xDC, 0x81, 0x9D, 0x88, 0x55, 0x15, 0x51, 0x3B, 0xEB, 0xD2, 0xA9, 0x35, 0xC8, 0xCC, 0x4A, 0x1A, 0xD3, 0xD3]] has been discarded because of unknown nonce identifier ‘210’.

Thanks for the feedback - I’ll look into this and try to reproduce it.

Hi Rainer

Another quick note- the battery status does not seem to update at all except when the sensor is forced to wake up by pulling the cover off- so I need to manually poll for battery status using battery command or should it be sending full reports including battery status based on the wake up interval?

I guess this would apply to other zwave battery powered sensors too - do they need to be polled or should they be sending battery value updates periodically upon wake up?

Honestly I haven’t figured out how battery powered devices usually report their battery status. Actually it would make sense to report it automatically after it has decreased a certain amount/percentage. I think in the manual of the Monoprice 4-in-1 sensor you can read that the BATTERY GET command has to be used to retrieve the battery status which is an indication to me that the battery status has to be polled.

I could not reproduce it with this sensor so far but I’ve seen this behavior in combination with the Aeotec MultiSensor 6.

The so called ‘Nonce’ is a number vector that is used to encrypt Z-Wave messages and as the name implies can only be used once. For each new encrypted Z-Wave message the ‘Nonce’ is different for security reasons in order to prevent replay attacks.

It seems that the Aeotec MultiSensor 6 tries sometimes to use a ‘Nonce’ more than once and the OpenRemote Z-Wave implementation rightfully discards a Z-Wave message with a ‘Nonce’ that has been used before.

Thanks Rainer I will try to poll it periodically with Battery command and see if it responds. Btw when the command is sent and if the device is sleeping does the controller keep retrying till it gets a response back or does it get discarded?

If you try to send a command to a battery powered device the command is stored in a queue until the device wakes up. When the device wakes up it sends COMMAND_CLASS_WAKE_UP::WAKE_UP_NOTIFICATION to the controller. The controller in turn sends all commands in the queue to the device and sends COMMAND_CLASS_WAKE_UP::WAKE_UP_NO_MORE_INFORMATION as last command. The device receives this last command and falls back to sleep mode.

Perfect thank you!