AutomateAsia / com.yale.lock

Homey app for Yale devices
3 stars 3 forks source link

Lock is generating a very high volume of traffic #18

Open darkytoothpaste opened 5 years ago

darkytoothpaste commented 5 years ago

Hi, my Yale lock seems to be generating a ton of traffic every minute and I'm not sure if it due to the app or if this is a generic behaviour of a secure node. As this is the only secure node I have in my network and the only one that generates that much traffic, I'm not sure if it is expected.

Here are some statistics: Tx Sent: 4727 (note that this is almost 100x higher than all other typical nodes) Tx Error: 164 (3%) Rx: 5371

Here's a snippet of the log You can see that the traffic occurs every minute:

Line 35: [2019-02-14T16:24:38.706Z] Node[9]: Received application command for COMMAND_CLASS_SECURITY, data: 0x803bb50bbab3c03fb9 Line 36: [2019-02-14T16:24:38.707Z] Node[9]: [COMMAND_CLASS_SECURITY] {"Nonce byte":{"type":"Buffer","data":[59,181,11,186,179,192,63,185]}} Line 37: [2019-02-14T16:24:38.709Z] Node[9]: [COMMAND_CLASS_SECURITY] [SECURITY_MESSAGE_ENCAPSULATION] {"type":"Buffer","data":[17,80,180,11,153,135,2,176,94,149,148,59,173,53,219,101,98,253,59,36]} Line 38: [2019-02-14T16:24:38.709Z] Node[9]: sendData to COMMAND_CLASS_SECURITY, params 0x811150b40b998702b05e95943bad35db6562fd3b24 Line 39: [2019-02-14T16:24:38.756Z] Node[9]: Received application command for COMMAND_CLASS_SECURITY, data: 0x803bb50bbab3c03fb9 Line 40: [2019-02-14T16:24:38.756Z] Node[9]: [COMMAND_CLASS_SECURITY] {"Nonce byte":{"type":"Buffer","data":[59,181,11,186,179,192,63,185]}} Line 41: [2019-02-14T16:24:38.784Z] Node[9]: Received application command for COMMAND_CLASS_SECURITY, data: 0x803bb50bbab3c03fb9 Line 42: [2019-02-14T16:24:38.784Z] Node[9]: [COMMAND_CLASS_SECURITY] {"Nonce byte":{"type":"Buffer","data":[59,181,11,186,179,192,63,185]}} Line 43: [2019-02-14T16:24:38.832Z] Node[9]: Received application command for COMMAND_CLASS_SECURITY, data: 0x803bb50bbab3c03fb9 Line 44: [2019-02-14T16:24:38.832Z] Node[9]: [COMMAND_CLASS_SECURITY] {"Nonce byte":{"type":"Buffer","data":[59,181,11,186,179,192,63,185]}} Line 45: [2019-02-14T16:24:38.910Z] Node[9]: Received application command for COMMAND_CLASS_SECURITY, data: 0x803bb50bbab3c03fb9 Line 46: [2019-02-14T16:24:38.911Z] Node[9]: [COMMAND_CLASS_SECURITY] {"Nonce byte":{"type":"Buffer","data":[59,181,11,186,179,192,63,185]}} Line 58: [2019-02-14T16:24:39.430Z] Node[9]: Received application command for COMMAND_CLASS_SECURITY, data: 0x40 Line 59: [2019-02-14T16:24:39.430Z] Node[9]: [COMMAND_CLASS_SECURITY] {} Line 60: [2019-02-14T16:24:39.430Z] Node[9]: [COMMAND_CLASS_SECURITY] [SECURITY_NONCE_REPORT] {"type":"Buffer","data":[210,39,131,224,27,16,21,181]} Line 61: [2019-02-14T16:24:39.431Z] Node[9]: sendData to COMMAND_CLASS_SECURITY, params 0x80d22783e01b1015b5 Line 64: [2019-02-14T16:24:39.485Z] Node[9]: Received application command for COMMAND_CLASS_SECURITY, data: 0x40 Line 65: [2019-02-14T16:24:39.485Z] Node[9]: [COMMAND_CLASS_SECURITY] {} Line 66: [2019-02-14T16:24:39.485Z] Node[9]: [COMMAND_CLASS_SECURITY] [SECURITY_NONCE_REPORT] {"type":"Buffer","data":[211,87,56,132,5,187,43,54]} Line 67: [2019-02-14T16:24:39.486Z] Node[9]: sendData to COMMAND_CLASS_SECURITY, params 0x80d357388405bb2b36 Line 68: [2019-02-14T16:24:40.980Z] Node[9]: Received application command for COMMAND_CLASS_SECURITY, data: 0x40 Line 69: [2019-02-14T16:24:40.981Z] Node[9]: [COMMAND_CLASS_SECURITY] {} Line 70: [2019-02-14T16:24:40.981Z] Node[9]: [COMMAND_CLASS_SECURITY] [SECURITY_NONCE_REPORT] {"type":"Buffer","data":[212,74,77,139,10,176,179,23]} Line 71: [2019-02-14T16:24:40.981Z] Node[9]: sendData to COMMAND_CLASS_SECURITY, params 0x80d44a4d8b0ab0b317 Line 253: [2019-02-14T16:25:34.448Z] Node[9]: [COMMAND_CLASS_DOOR_LOCK] [DOOR_LOCK_OPERATION_GET] {"type":"Buffer","data":[]} Line 254: [2019-02-14T16:25:34.448Z] Node[9]: sendData to COMMAND_CLASS_DOOR_LOCK, params 0x02 Line 255: [2019-02-14T16:25:34.449Z] Node[9]: [COMMAND_CLASS_SECURITY] [SECURITY_NONCE_GET] {"type":"Buffer","data":[]} Line 256: [2019-02-14T16:25:34.449Z] Node[9]: sendData to COMMAND_CLASS_SECURITY, params 0x40 Line 271: [2019-02-14T16:25:38.340Z] Node[9]: Received application command for COMMAND_CLASS_SECURITY, data: 0x80aa422cca187e022e Line 272: [2019-02-14T16:25:38.340Z] Node[9]: [COMMAND_CLASS_SECURITY] {"Nonce byte":{"type":"Buffer","data":[170,66,44,202,24,126,2,46]}} Line 273: [2019-02-14T16:25:38.342Z] Node[9]: [COMMAND_CLASS_SECURITY] [SECURITY_MESSAGE_ENCAPSULATION] {"type":"Buffer","data":[172,182,33,224,181,73,168,128,179,64,180,170,237,233,78,22,107,154,87,156]} Line 274: [2019-02-14T16:25:38.342Z] Node[9]: sendData to COMMAND_CLASS_SECURITY, params 0x81acb621e0b549a880b340b4aaede94e166b9a579c Line 278: [2019-02-14T16:25:38.414Z] Node[9]: Received application command for COMMAND_CLASS_SECURITY, data: 0x40 Line 279: [2019-02-14T16:25:38.414Z] Node[9]: [COMMAND_CLASS_SECURITY] {} Line 280: [2019-02-14T16:25:38.414Z] Node[9]: [COMMAND_CLASS_SECURITY] [SECURITY_NONCE_REPORT] {"type":"Buffer","data":[213,115,24,153,239,89,184,255]} Line 281: [2019-02-14T16:25:38.415Z] Node[9]: sendData to COMMAND_CLASS_SECURITY, params 0x80d5731899ef59b8ff Line 476: [2019-02-14T16:26:34.513Z] Node[9]: [COMMAND_CLASS_DOOR_LOCK] [DOOR_LOCK_OPERATION_GET] {"type":"Buffer","data":[]} Line 477: [2019-02-14T16:26:34.513Z] Node[9]: sendData to COMMAND_CLASS_DOOR_LOCK, params 0x02 Line 478: [2019-02-14T16:26:34.514Z] Node[9]: [COMMAND_CLASS_SECURITY] [SECURITY_NONCE_GET] {"type":"Buffer","data":[]} Line 479: [2019-02-14T16:26:34.514Z] Node[9]: sendData to COMMAND_CLASS_SECURITY, params 0x40 Line 483: [2019-02-14T16:26:35.843Z] Node[9]: Received application command for COMMAND_CLASS_SECURITY, data: 0x80ad2a7fd04af14591 Line 484: [2019-02-14T16:26:35.844Z] Node[9]: [COMMAND_CLASS_SECURITY] {"Nonce byte":{"type":"Buffer","data":[173,42,127,208,74,241,69,145]}} Line 485: [2019-02-14T16:26:35.846Z] Node[9]: [COMMAND_CLASS_SECURITY] [SECURITY_MESSAGE_ENCAPSULATION] {"type":"Buffer","data":[124,251,88,241,124,211,172,32,34,106,115,173,100,70,94,238,235,83,214,14]} Line 486: [2019-02-14T16:26:35.846Z] Node[9]: sendData to COMMAND_CLASS_SECURITY, params 0x817cfb58f17cd3ac20226a73ad64465eeeeb53d60e Line 490: [2019-02-14T16:26:35.925Z] Node[9]: Received application command for COMMAND_CLASS_SECURITY, data: 0x40 Line 491: [2019-02-14T16:26:35.926Z] Node[9]: [COMMAND_CLASS_SECURITY] {} Line 492: [2019-02-14T16:26:35.926Z] Node[9]: [COMMAND_CLASS_SECURITY] [SECURITY_NONCE_REPORT] {"type":"Buffer","data":[214,34,152,23,60,177,8,115]} Line 493: [2019-02-14T16:26:35.926Z] Node[9]: sendData to COMMAND_CLASS_SECURITY, params 0x80d62298173cb10873 Line 497: [2019-02-14T16:26:35.984Z] Node[9]: Received application command for COMMAND_CLASS_SECURITY, data: 0x81e50f2a5eab978e5259632aa17dc4a90fd65d3cb219a1cccd64 Line 498: [2019-02-14T16:26:35.985Z] Node[9]: [COMMAND_CLASS_SECURITY] {"Initialization Vector byte":{"type":"Buffer","data":[229,15,42,94,171,151,142,82]},"Properties1 (Raw)":{"type":"Buffer","data":[89]},"Properties1":{"Sequence Counter":9,"Sequenced":true,"Second Frame":false},"Command byte":{"type":"Buffer","data":[99,42,161,125,196,169,15]},"Receivers nonce Identifier (Raw)":{"type":"Buffer","data":[214]},"Receivers nonce Identifier":214,"Message Authentication Code byte":{"type":"Buffer","data":[93,60,178,25,161,204,205,100]}} Line 499: [2019-02-14T16:26:35.996Z] Node[9]: [COMMAND_CLASS_DOOR_LOCK] {"Door Lock Mode (Raw)":{"type":"Buffer","data":[255]},"Door Lock Mode":"Door Secured","Properties1 (Raw)":{"type":"Buffer","data":[0]},"Properties1":{"Inside Door Handles Mode":0,"Outside Door Handles Mode":0},"Door Condition (Raw)":{"type":"Buffer","data":[0]},"Door Condition":0,"Lock Timeout Minutes (Raw)":{"type":"Buffer","data":[254]},"Lock Timeout Minutes":254,"Lock Timeout Seconds (Raw)":{"type":"Buffer","data":[194]},"Lock Timeout Seconds":194} Line 500: [2019-02-14T16:26:35.996Z] Node[9]: Decapsulated frame from COMMAND_CLASS_SECURITY to COMMAND_CLASS_DOOR_LOCK, data 0x03ff0000fec2 Line 563: [2019-02-14T16:27:34.561Z] Node[9]: [COMMAND_CLASS_DOOR_LOCK] [DOOR_LOCK_OPERATION_GET] {"type":"Buffer","data":[]} Line 564: [2019-02-14T16:27:34.561Z] Node[9]: sendData to COMMAND_CLASS_DOOR_LOCK, params 0x02 Line 565: [2019-02-14T16:27:34.562Z] Node[9]: [COMMAND_CLASS_SECURITY] [SECURITY_NONCE_GET] {"type":"Buffer","data":[]} Line 566: [2019-02-14T16:27:34.562Z] Node[9]: sendData to COMMAND_CLASS_SECURITY, params 0x40 Line 570: [2019-02-14T16:27:36.291Z] Node[9]: Received application command for COMMAND_CLASS_SECURITY, data: 0x80180468cf0a5b0f4b Line 571: [2019-02-14T16:27:36.292Z] Node[9]: [COMMAND_CLASS_SECURITY] {"Nonce byte":{"type":"Buffer","data":[24,4,104,207,10,91,15,75]}} Line 572: [2019-02-14T16:27:36.294Z] Node[9]: [COMMAND_CLASS_SECURITY] [SECURITY_MESSAGE_ENCAPSULATION] {"type":"Buffer","data":[75,149,242,12,174,232,135,210,199,19,77,24,124,66,254,59,28,235,236,230]} Line 573: [2019-02-14T16:27:36.294Z] Node[9]: sendData to COMMAND_CLASS_SECURITY, params 0x814b95f20caee887d2c7134d187c42fe3b1cebece6 Line 577: [2019-02-14T16:27:36.388Z] Node[9]: Received application command for COMMAND_CLASS_SECURITY, data: 0x40 Line 578: [2019-02-14T16:27:36.388Z] Node[9]: [COMMAND_CLASS_SECURITY] {} Line 579: [2019-02-14T16:27:36.388Z] Node[9]: [COMMAND_CLASS_SECURITY] [SECURITY_NONCE_REPORT] {"type":"Buffer","data":[215,5,87,193,229,216,4,218]} Line 580: [2019-02-14T16:27:36.389Z] Node[9]: sendData to COMMAND_CLASS_SECURITY, params 0x80d70557c1e5d804da Line 584: [2019-02-14T16:27:36.442Z] Node[9]: Received application command for COMMAND_CLASS_SECURITY, data: 0x810bd157e176c41da5ca5199db1964f69bd7e9333d29daf3e944 Line 585: [2019-02-14T16:27:36.444Z] Node[9]: [COMMAND_CLASS_SECURITY] {"Initialization Vector byte":{"type":"Buffer","data":[11,209,87,225,118,196,29,165]},"Properties1 (Raw)":{"type":"Buffer","data":[202]},"Properties1":{"Sequence Counter":10,"Sequenced":false,"Second Frame":false},"Command byte":{"type":"Buffer","data":[81,153,219,25,100,246,155]},"Receivers nonce Identifier (Raw)":{"type":"Buffer","data":[215]},"Receivers nonce Identifier":215,"Message Authentication Code byte":{"type":"Buffer","data":[233,51,61,41,218,243,233,68]}} Line 586: [2019-02-14T16:27:36.456Z] Node[9]: [COMMAND_CLASS_DOOR_LOCK] {"Door Lock Mode (Raw)":{"type":"Buffer","data":[255]},"Door Lock Mode":"Door Secured","Properties1 (Raw)":{"type":"Buffer","data":[0]},"Properties1":{"Inside Door Handles Mode":0,"Outside Door Handles Mode":0},"Door Condition (Raw)":{"type":"Buffer","data":[0]},"Door Condition":0,"Lock Timeout Minutes (Raw)":{"type":"Buffer","data":[254]},"Lock Timeout Minutes":254,"Lock Timeout Seconds (Raw)":{"type":"Buffer","data":[194]},"Lock Timeout Seconds":194} Line 587: [2019-02-14T16:27:36.456Z] Node[9]: Decapsulated frame from COMMAND_CLASS_SECURITY to COMMAND_CLASS_DOOR_LOCK, data 0x03ff0000fec2 Line 610: [2019-02-14T16:28:34.659Z] Node[9]: [COMMAND_CLASS_DOOR_LOCK] [DOOR_LOCK_OPERATION_GET] {"type":"Buffer","data":[]} Line 611: [2019-02-14T16:28:34.659Z] Node[9]: sendData to COMMAND_CLASS_DOOR_LOCK, params 0x02 Line 612: [2019-02-14T16:28:34.660Z] Node[9]: [COMMAND_CLASS_SECURITY] [SECURITY_NONCE_GET] {"type":"Buffer","data":[]} Line 613: [2019-02-14T16:28:34.660Z] Node[9]: sendData to COMMAND_CLASS_SECURITY, params 0x40 Line 617: [2019-02-14T16:28:36.034Z] Node[9]: Received application command for COMMAND_CLASS_SECURITY, data: 0x80558764a7e4fd629e Line 618: [2019-02-14T16:28:36.035Z] Node[9]: [COMMAND_CLASS_SECURITY] {"Nonce byte":{"type":"Buffer","data":[85,135,100,167,228,253,98,158]}} Line 619: [2019-02-14T16:28:36.036Z] Node[9]: [COMMAND_CLASS_SECURITY] [SECURITY_MESSAGE_ENCAPSULATION] {"type":"Buffer","data":[67,120,111,50,128,238,204,180,223,210,8,85,243,69,28,213,146,215,108,128]} Line 620: [2019-02-14T16:28:36.036Z] Node[9]: sendData to COMMAND_CLASS_SECURITY, params 0x8143786f3280eeccb4dfd20855f3451cd592d76c80 Line 624: [2019-02-14T16:28:36.109Z] Node[9]: Received application command for COMMAND_CLASS_SECURITY, data: 0x40 Line 625: [2019-02-14T16:28:36.109Z] Node[9]: [COMMAND_CLASS_SECURITY] {} Line 626: [2019-02-14T16:28:36.109Z] Node[9]: [COMMAND_CLASS_SECURITY] [SECURITY_NONCE_REPORT] {"type":"Buffer","data":[216,8,137,31,116,227,202,253]} Line 627: [2019-02-14T16:28:36.110Z] Node[9]: sendData to COMMAND_CLASS_SECURITY, params 0x80d808891f74e3cafd Line 631: [2019-02-14T16:28:36.347Z] Node[9]: Received application command for COMMAND_CLASS_SECURITY, data: 0x81b4d12eac3e9ad986adf240804b025d96d89f6f39a0c8357697 Line 632: [2019-02-14T16:28:36.348Z] Node[9]: [COMMAND_CLASS_SECURITY] {"Initialization Vector byte":{"type":"Buffer","data":[180,209,46,172,62,154,217,134]},"Properties1 (Raw)":{"type":"Buffer","data":[173]},"Properties1":{"Sequence Counter":13,"Sequenced":false,"Second Frame":true},"Command byte":{"type":"Buffer","data":[242,64,128,75,2,93,150]},"Receivers nonce Identifier (Raw)":{"type":"Buffer","data":[216]},"Receivers nonce Identifier":216,"Message Authentication Code byte":{"type":"Buffer","data":[159,111,57,160,200,53,118,151]}} Line 633: [2019-02-14T16:28:36.360Z] Node[9]: [COMMAND_CLASS_DOOR_LOCK] {"Door Lock Mode (Raw)":{"type":"Buffer","data":[255]},"Door Lock Mode":"Door Secured","Properties1 (Raw)":{"type":"Buffer","data":[0]},"Properties1":{"Inside Door Handles Mode":0,"Outside Door Handles Mode":0},"Door Condition (Raw)":{"type":"Buffer","data":[0]},"Door Condition":0,"Lock Timeout Minutes (Raw)":{"type":"Buffer","data":[254]},"Lock Timeout Minutes":254,"Lock Timeout Seconds (Raw)":{"type":"Buffer","data":[194]},"Lock Timeout Seconds":194} Line 634: [2019-02-14T16:28:36.360Z] Node[9]: Decapsulated frame from COMMAND_CLASS_SECURITY to COMMAND_CLASS_DOOR_LOCK, data 0x03ff0000fec2 Line 654: [2019-02-14T16:29:34.753Z] Node[9]: [COMMAND_CLASS_DOOR_LOCK] [DOOR_LOCK_OPERATION_GET] {"type":"Buffer","data":[]} Line 655: [2019-02-14T16:29:34.753Z] Node[9]: sendData to COMMAND_CLASS_DOOR_LOCK, params 0x02 Line 656: [2019-02-14T16:29:34.754Z] Node[9]: [COMMAND_CLASS_SECURITY] [SECURITY_NONCE_GET] {"type":"Buffer","data":[]} Line 657: [2019-02-14T16:29:34.754Z] Node[9]: sendData to COMMAND_CLASS_SECURITY, params 0x40 Line 662: [2019-02-14T16:29:38.615Z] Node[9]: Received application command for COMMAND_CLASS_SECURITY, data: 0x8001ae6f1f643b8fcf Line 663: [2019-02-14T16:29:38.615Z] Node[9]: [COMMAND_CLASS_SECURITY] {"Nonce byte":{"type":"Buffer","data":[1,174,111,31,100,59,143,207]}} Line 664: [2019-02-14T16:29:38.618Z] Node[9]: [COMMAND_CLASS_SECURITY] [SECURITY_MESSAGE_ENCAPSULATION] {"type":"Buffer","data":[123,109,125,139,80,246,56,151,13,214,96,1,55,250,220,210,2,23,219,196]} Line 665: [2019-02-14T16:29:38.618Z] Node[9]: sendData to COMMAND_CLASS_SECURITY, params 0x817b6d7d8b50f638970dd6600137fadcd20217dbc4 Line 669: [2019-02-14T16:29:38.689Z] Node[9]: Received application command for COMMAND_CLASS_SECURITY, data: 0x40 Line 670: [2019-02-14T16:29:38.690Z] Node[9]: [COMMAND_CLASS_SECURITY] {} Line 671: [2019-02-14T16:29:38.690Z] Node[9]: [COMMAND_CLASS_SECURITY] [SECURITY_NONCE_REPORT] {"type":"Buffer","data":[217,85,1,50,81,152,255,104]} Line 672: [2019-02-14T16:29:38.690Z] Node[9]: sendData to COMMAND_CLASS_SECURITY, params 0x80d95501325198ff68 Line 676: [2019-02-14T16:29:38.827Z] Node[9]: Received application command for COMMAND_CLASS_SECURITY, data: 0x81450475e75add6cf95fe425a3afbc2a8bd9dacd2aeb69a41a8b Line 677: [2019-02-14T16:29:38.828Z] Node[9]: [COMMAND_CLASS_SECURITY] {"Initialization Vector byte":{"type":"Buffer","data":[69,4,117,231,90,221,108,249]},"Properties1 (Raw)":{"type":"Buffer","data":[95]},"Properties1":{"Sequence Counter":15,"Sequenced":true,"Second Frame":false},"Command byte":{"type":"Buffer","data":[228,37,163,175,188,42,139]},"Receivers nonce Identifier (Raw)":{"type":"Buffer","data":[217]},"Receivers nonce Identifier":217,"Message Authentication Code byte":{"type":"Buffer","data":[218,205,42,235,105,164,26,139]}} Line 678: [2019-02-14T16:29:38.846Z] Node[9]: [COMMAND_CLASS_DOOR_LOCK] {"Door Lock Mode (Raw)":{"type":"Buffer","data":[255]},"Door Lock Mode":"Door Secured","Properties1 (Raw)":{"type":"Buffer","data":[0]},"Properties1":{"Inside Door Handles Mode":0,"Outside Door Handles Mode":0},"Door Condition (Raw)":{"type":"Buffer","data":[0]},"Door Condition":0,"Lock Timeout Minutes (Raw)":{"type":"Buffer","data":[254]},"Lock Timeout Minutes":254,"Lock Timeout Seconds (Raw)":{"type":"Buffer","data":[194]},"Lock Timeout Seconds":194} Line 679: [2019-02-14T16:29:38.846Z] Node[9]: Decapsulated frame from COMMAND_CLASS_SECURITY to COMMAND_CLASS_DOOR_LOCK, data 0x03ff0000fec2

guardianhell commented 5 years ago

Same here

TX TX error RX 1599 | 17 (1%) | 1761

darkytoothpaste commented 5 years ago

I have included another secure node in my network (a Aeotec Multi6) and it doesn't generate the same amount of traffic. This means that the polling every minute is probably from the app rather than a built-in behaviour for secure nodes. Can we remove the polling?

limkopi78 commented 5 years ago

The polling has been removed in the most recent update.

darkytoothpaste commented 5 years ago

That's wonderful! I have checked the traffic and indeed it has reduced significantly. Thanks!