Closed msillano closed 3 years ago
The schema
and dps
options are included to mirror the options on get()
. They control what data TuyAPI returns, not the request that is sent to the device. I agree that the options are a little unwieldy but I think it makes sense to keep them that way for now so it matches get()
. Having said that, I'm surprised there's no difference in the shape of return values that you're getting. Could you post your test script and debug log?
I'm actually having a lot of "fun" with tuyaDAEMON, maybe because it's very simple but powerful, especially in custom applications, maybe because I have a lot of time (I'm retired). This, in short, the whole story here.
tuyapi
:
71 delete msg.payload.operation;
switch (operation) {
case "SET":
tuyaDevice.set(msg.payload);
break;
76 case "REFRESH":
tuyaDevice.refresh(msg.payload);
break;
case "GET":
tuyaDevice.get(msg.payload);
break;
}
_refresh
and _refreshCycle (sec)
, it accepts SET/GET/MULTIPLE/SCHEMA. I used (internal defined) the payloads: // for tests
const REFONLY = { payload: {operation: "REFRESH"}};
const REFONE = { payload: {operation: "REFRESH", dps:20}};
const REFMANY = { payload: {operation: "REFRESH", requestedDPS:[18,19,20]}};
const REFSCHEMA = { payload: {operation: "REFRESH", schema:true}};
REFONLY every 2 seconds
TuyAPI Received data: 000055aa0000000f000000120000000c00000000b9b4a29a0000aa55 +142ms
TuyAPI Parsed: +1ms
TuyAPI { payload: false, leftover: false, commandByte: 18, sequenceN: 15 } +2ms
TuyAPI Received DP_REFRESH empty response packet. +7ms
TuyAPI GET Payload: +2s
TuyAPI {
TuyAPI gwId: 'bf94066e80ba*****',
TuyAPI devId: 'bf94066e80ba*****',
TuyAPI t: '1621353220',
TuyAPI dpId: [ 18, 19 ],
TuyAPI uid: 'bf94066e80ba*****'
TuyAPI } +1ms
TuyAPI Received data: 000055aa00000010000000120000000c000000002ac3d1750000aa55 +272ms
TuyAPI Parsed: +1ms
TuyAPI { payload: false, leftover: false, commandByte: 18, sequenceN: 16 } +6ms
TuyAPI Received DP_REFRESH empty response packet. +4ms
TuyAPI GET Payload: +2s
TuyAPI {
TuyAPI gwId: 'bf94066e80ba*****',
TuyAPI devId: 'bf94066e80ba*****',
TuyAPI t: '1621353222',
TuyAPI dpId: [ 18, 19 ],
TuyAPI uid: 'bf94066e80ba*****'
TuyAPI } +1ms
TuyAPI Pinging 192.168.1.17 +8ms
TuyAPI Received data: 000055aa00000000000000080000005b00000000332e330000000000004ad5000000013ca48cddbef819b17a8a87a182d1b86ec10400c4550ec04a32d4314eab8a63cb9f1d8e7617e3fcfed26216abdbc145a7163742cd9fba77c0cb85c196c0fa2adedb6f5fb10000aa55 +61ms
TuyAPI Parsed: +1ms
TuyAPI {
TuyAPI payload: { dps: { '18': 56, '19': 44, '20': 2299 }, t: 1621353221 },
TuyAPI leftover: false,
TuyAPI commandByte: 8,
TuyAPI sequenceN: 0
TuyAPI } +3ms
TuyAPI Received DP_REFRESH packet. +4ms
18 May 17:53:42 - [info] [tuya-smart-device:tuya device] Data from device [event:dp-refresh]: {"dps":{"18":56,"19":44,"20":2299},"t":1621353221}
TuyAPI Received data: 000055aa00000011000000120000000c00000000f75508f00000aa55 +133ms
TuyAPI Parsed: +1ms
TuyAPI { payload: false, leftover: false, commandByte: 18, sequenceN: 17 } +2ms
TuyAPI Received DP_REFRESH empty response packet. +3ms
TuyAPI Received data: 000055aa00000000000000090000000c00000000b051ab030000aa55 +96ms
TuyAPI Parsed: +1ms
TuyAPI { payload: false, leftover: false, commandByte: 9, sequenceN: 0 } +6ms
TuyAPI Pong from 192.168.1.17 +4ms
TuyAPI GET Payload: +2s
TuyAPI {
TuyAPI gwId: 'bf94066e80ba*****',
TuyAPI devId: 'bf94066e80ba*****',
TuyAPI t: '1621353224',
TuyAPI dpId: [ 18, 19 ],
TuyAPI uid: 'bf94066e80ba*****'
TuyAPI } +1ms
TuyAPI Received data: 000055aa00000000000000080000004b00000000332e330000000000004ad600000001e1f00c8ff704858a5c61cac48d003232dfa130d233e79fc68f9098afb20cec3fe924d604933443b40b8e4fac7a8616b65ac236eb0000aa55 +95ms
TuyAPI Parsed: +1ms
TuyAPI {
TuyAPI payload: { dps: { '18': 57, '19': 45 }, t: 1621353223 },
TuyAPI leftover: false,
TuyAPI commandByte: 8,
TuyAPI sequenceN: 0
TuyAPI } +3ms
TuyAPI Received DP_REFRESH packet. +4ms
18 May 17:53:44 - [info] [tuya-smart-device:tuya device] Data from device [event:dp-refresh]: {"dps":{"18":57,"19":45},"t":1621353223}
TuyAPI Received data: 000055aa00000013000000120000000c000000009709bdbb0000aa55 +132ms
TuyAPI Parsed: +1ms
TuyAPI { payload: false, leftover: false, commandByte: 18, sequenceN: 19 } +5ms
TuyAPI Received DP_REFRESH empty response packet. +4ms
TuyAPI GET Payload: +2s
TuyAPI {
TuyAPI gwId: 'bf94066e80ba*****',
TuyAPI devId: 'bf94066e80ba*****',
TuyAPI t: '1621353226',
TuyAPI dpId: [ 18, 19 ],
TuyAPI uid: 'bf94066e80ba*****'
TuyAPI } +1ms
TuyAPI Received data: 000055aa00000000000000080000004b00000000332e330000000000004ad700000001c08bd215af0bd731a6cadc72b4c3d0474e19a19c5a8857b0a931b8682e0b08dd4ff1053b8306e83fb56891a6e5341633174b42760000aa55 +126ms
TuyAPI Parsed: +1ms
TuyAPI {
TuyAPI payload: { dps: { '18': 60, '19': 46 }, t: 1621353225 },
TuyAPI leftover: false,
TuyAPI commandByte: 8,
TuyAPI sequenceN: 0
TuyAPI } +6ms
TuyAPI Received DP_REFRESH packet. +5ms
18 May 17:53:46 - [info] [tuya-smart-device:tuya device] Data from device [event:dp-refresh]: {"dps":{"18":60,"19":46},"t":1621353225}
TuyAPI Received data: 000055aa00000014000000120000000c00000000ea7abbe30000aa55 +131ms
TuyAPI Parsed: +1ms
TuyAPI { payload: false, leftover: false, commandByte: 18, sequenceN: 20 } +4ms
TuyAPI Received DP_REFRESH empty response packet. +4ms
TuyAPI GET Payload: +2s
TuyAPI {
TuyAPI gwId: 'bf94066e80ba*****',
TuyAPI devId: 'bf94066e80ba*****',
TuyAPI t: '1621353228',
TuyAPI dpId: [ 18, 19 ],
TuyAPI uid: 'bf94066e80ba*****'
TuyAPI } +1ms
TuyAPI Received data: 000055aa00000000000000080000004b00000000332e330000000000004ad800000001f600026ea71109d2ee23622031bbab70e55c3358fd9730d503ede258f2ff0968291cd83ff9d4349488a13ba6059f84ba6e35414a0000aa55 +162ms
TuyAPI Parsed: +1ms
TuyAPI {
TuyAPI payload: { dps: { '18': 59, '19': 48 }, t: 1621353227 },
TuyAPI leftover: false,
TuyAPI commandByte: 8,
TuyAPI sequenceN: 0
TuyAPI } +6ms
TuyAPI Received DP_REFRESH packet. +2ms
18 May 17:53:48 - [info] [tuya-smart-device:tuya device] Data from device [event:dp-refresh]: {"dps":{"18":59,"19":48},"t":1621353227}
TuyAPI Received data: 000055aa00000015000000120000000c0000000037ec62660000aa55 +137ms
TuyAPI Parsed: +0ms
TuyAPI { payload: false, leftover: false, commandByte: 18, sequenceN: 21 } +2ms
TuyAPI Received DP_REFRESH empty response packet. +7ms
TuyAPI GET Payload: +2s
TuyAPI {
TuyAPI gwId: 'bf94066e80ba*****',
TuyAPI devId: 'bf94066e80ba*****',
TuyAPI t: '1621353230',
TuyAPI dpId: [ 18, 19 ],
TuyAPI uid: 'bf94066e80ba*****'
TuyAPI } +0ms
TuyAPI Received data: 000055aa00000016000000120000000c000000008a260ea80000aa55 +243ms
TuyAPI Parsed: +1ms
TuyAPI { payload: false, leftover: false, commandByte: 18, sequenceN: 22 } +6ms
TuyAPI Received DP_REFRESH empty response packet. +3ms
TuyAPI Pinging 192.168.1.17 +2s
TuyAPI Received data: 000055aa00000000000000090000000c00000000b051ab030000aa55 +5ms
TuyAPI Parsed: +2ms
TuyAPI { payload: false, leftover: false, commandByte: 9, sequenceN: 0 } +5ms
TuyAPI Pong from 192.168.1.17 +2ms
TuyAPI GET Payload: +37ms
TuyAPI {
TuyAPI gwId: 'bf94066e80ba*****',
TuyAPI devId: 'bf94066e80ba*****',
TuyAPI t: '1621353232',
TuyAPI dpId: [ 18, 19 ],
TuyAPI uid: 'bf94066e80ba*****'
TuyAPI } +1ms
TuyAPI Received data: 000055aa00000000000000080000004b00000000332e330000000000004ad9000000015d5a0565dafa115d832a2affc77072d8df3f3c682f2a45fd85cd2dcb376c665d6af399af8ae9f6fcd9d0d9761e00808f934447470000aa55 +72ms
TuyAPI Parsed: +2ms
TuyAPI {
TuyAPI payload: { dps: { '18': 58, '19': 47 }, t: 1621353231 },
TuyAPI leftover: false,
TuyAPI commandByte: 8,
TuyAPI sequenceN: 0
TuyAPI } +9ms
TuyAPI Received DP_REFRESH packet. +3ms
18 May 17:53:52 - [info] [tuya-smart-device:tuya device] Data from device [event:dp-refresh]: {"dps":{"18":58,"19":47},"t":1621353231}
TuyAPI Received data: 000055aa00000018000000120000000c0000000070c002180000aa55 +119ms
TuyAPI Parsed: +1ms
TuyAPI { payload: false, leftover: false, commandByte: 18, sequenceN: 24 } +2ms
TuyAPI Received DP_REFRESH empty response packet. +3ms
TuyAPI GET Payload: +2s
TuyAPI {
TuyAPI gwId: 'bf94066e80ba*****',
TuyAPI devId: 'bf94066e80ba*****',
TuyAPI t: '1621353234',
TuyAPI dpId: [ 18, 19 ],
TuyAPI uid: 'bf94066e80ba*****'
TuyAPI } +1ms
TuyAPI Received data: 000055aa00000000000000080000004b00000000332e330000000000004ada00000001e1f00c8ff704858a5c61cac48d003232dfa130d233e79fc68f9098afb20cec3fe8a8f07bf6dccce67b1e47336a49b022682b50630000aa55 +77ms
TuyAPI Parsed: +1ms
TuyAPI {
TuyAPI payload: { dps: { '18': 57, '19': 45 }, t: 1621353233 },
TuyAPI leftover: false,
TuyAPI commandByte: 8,
TuyAPI sequenceN: 0
TuyAPI } +6ms
TuyAPI Received DP_REFRESH packet. +4ms
18 May 17:53:54 - [info] [tuya-smart-device:tuya device] Data from device [event:dp-refresh]: {"dps":{"18":57,"19":45},"t":1621353233}
TuyAPI Received data: 000055aa00000019000000120000000c00000000ad56db9d0000aa55 +127ms
TuyAPI Parsed: +1ms
TuyAPI { payload: false, leftover: false, commandByte: 18, sequenceN: 25 } +3ms
TuyAPI Received DP_REFRESH empty response packet. +4ms
TuyAPI GET Payload: +2s
TuyAPI {
TuyAPI gwId: 'bf94066e80ba*****',
TuyAPI devId: 'bf94066e80ba*****',
TuyAPI t: '1621353236',
TuyAPI dpId: [ 18, 19 ],
TuyAPI uid: 'bf94066e80ba*****'
TuyAPI } +1ms
TuyAPI Received data: 000055aa00000000000000080000004b00000000332e330000000000004adb00000001f600026ea71109d2ee23622031bbab70e55c3358fd9730d503ede258f2ff0968070b820c3e3e4be2bbfa100be6f1c1eff090e3dd0000aa55 +99ms
TuyAPI Parsed: +1ms
TuyAPI {
TuyAPI payload: { dps: { '18': 59, '19': 48 }, t: 1621353235 },
TuyAPI leftover: false,
TuyAPI commandByte: 8,
TuyAPI sequenceN: 0
TuyAPI } +5ms
TuyAPI Received DP_REFRESH packet. +1ms
18 May 17:53:56 - [info] [tuya-smart-device:tuya device] Data from device [event:dp-refresh]: {"dps":{"18":59,"19":48},"t":1621353235}
TuyAPI Received data: 000055aa0000001a000000120000000c00000000109cb7530000aa55 +140ms
TuyAPI Parsed: +0ms
TuyAPI { payload: false, leftover: false, commandByte: 18, sequenceN: 26 } +3ms
TuyAPI Received DP_REFRESH empty response packet. +3ms
TuyAPI GET Payload: +2s
TuyAPI {
TuyAPI gwId: 'bf94066e80ba*****',
TuyAPI devId: 'bf94066e80ba*****',
TuyAPI t: '1621353238',
TuyAPI dpId: [ 18, 19 ],
TuyAPI uid: 'bf94066e80ba*****'
TuyAPI } +1ms
TuyAPI Received data: 000055aa00000000000000080000004b00000000332e330000000000004adc00000001ee5bf296bc397e76b062efa6bb7b4ecfbb829d2e020e758effdb07909d9ff3a533b376e44a5d7ee539e8fa2ef4fef92f993c663f0000aa55 +137ms
TuyAPI Parsed: +0ms
TuyAPI {
TuyAPI payload: { dps: { '19': 47 }, t: 1621353237 },
TuyAPI leftover: false,
TuyAPI commandByte: 8,
TuyAPI sequenceN: 0
TuyAPI } +2ms
TuyAPI Received DP_REFRESH packet. +4ms
18 May 17:53:58 - [info] [tuya-smart-device:tuya device] Data from device [event:dp-refresh]: {"dps":{"19":47},"t":1621353237}
TuyAPI Received data: 000055aa0000001b000000120000000c00000000cd0a6ed60000aa55 +134ms
TuyAPI Parsed: +1ms
TuyAPI { payload: false, leftover: false, commandByte: 18, sequenceN: 27 } +1ms
TuyAPI Received DP_REFRESH empty response packet. +4ms
TuyAPI GET Payload: +2s
TuyAPI {
TuyAPI gwId: 'bf94066e80ba*****',
TuyAPI devId: 'bf94066e80ba*****',
TuyAPI t: '1621353240',
TuyAPI dpId: [ 18, 19 ],
TuyAPI uid: 'bf94066e80ba*****'
TuyAPI } +1ms
TuyAPI Received data: 000055aa00000000000000080000004b00000000332e330000000000004add000000015d5a0565dafa115d832a2affc77072d8dfa130d233e79fc68f9098afb20cec3feb4cbf3ae6795ff7b44a72978c6288a4f7dad0870000aa55 +167ms
TuyAPI Parsed: +2ms
TuyAPI {
TuyAPI payload: { dps: { '18': 58, '19': 45 }, t: 1621353239 },
TuyAPI leftover: false,
TuyAPI commandByte: 8,
TuyAPI sequenceN: 0
TuyAPI } +5ms
TuyAPI Received DP_REFRESH packet. +5ms
18 May 17:54:00 - [info] [tuya-smart-device:tuya device] Data from device [event:dp-refresh]: {"dps":{"18":58,"19":45},"t":1621353239}
TuyAPI Received data: 000055aa0000001c000000120000000c00000000b079688e0000aa55 +130ms
TuyAPI Parsed: +0ms
TuyAPI { payload: false, leftover: false, commandByte: 18, sequenceN: 28 } +2ms
TuyAPI Received DP_REFRESH empty response packet. +4ms
TuyAPI Pinging 192.168.1.17 +2s
TuyAPI Received data: 000055aa00000000000000090000000c00000000b051ab030000aa55 +10ms
TuyAPI Parsed: +1ms
TuyAPI { payload: false, leftover: false, commandByte: 9, sequenceN: 0 } +2ms
TuyAPI Pong from 192.168.1.17 +2ms
TuyAPI GET Payload: +105ms
TuyAPI {
TuyAPI gwId: 'bf94066e80ba*****',
TuyAPI devId: 'bf94066e80ba*****',
TuyAPI t: '1621353242',
TuyAPI dpId: [ 18, 19 ],
TuyAPI uid: 'bf94066e80ba*****'
TuyAPI } +1ms
TuyAPI Received data: 000055aa0000001e000000120000000c00000000d025ddc50000aa55 +241ms
TuyAPI Parsed: +1ms
TuyAPI { payload: false, leftover: false, commandByte: 18, sequenceN: 30 } +2ms
TuyAPI Received DP_REFRESH empty response packet. +3ms
TuyAPI GET Payload: +2s
TuyAPI {
TuyAPI gwId: 'bf94066e80ba*****',
TuyAPI devId: 'bf94066e80ba*****',
TuyAPI t: '1621353244',
TuyAPI dpId: [ 18, 19 ],
TuyAPI uid: 'bf94066e80ba*****'
TuyAPI } +1ms
TuyAPI Received data: 000055aa00000000000000080000004b00000000332e330000000000004ade00000001e1f00c8ff704858a5c61cac48d003232d670fee55ce61635a401662d25e8a829bbf3cabf533fb7a1eb9897bba73117916cb149220000aa55 +118ms
TuyAPI Parsed: +3ms
TuyAPI {
TuyAPI payload: { dps: { '18': 57, '19': 49 }, t: 1621353243 },
TuyAPI leftover: false,
TuyAPI commandByte: 8,
TuyAPI sequenceN: 0
TuyAPI } +4ms
TuyAPI Received DP_REFRESH packet. +5ms
18 May 17:54:04 - [info] [tuya-smart-device:tuya device] Data from device [event:dp-refresh]: {"dps":{"18":57,"19":49},"t":1621353243}
TuyAPI Received data: 000055aa0000001f000000120000000c000000000db304400000aa55 +138ms
TuyAPI Parsed: +1ms
TuyAPI { payload: false, leftover: false, commandByte: 18, sequenceN: 31 } +1ms
TuyAPI Received DP_REFRESH empty response packet. +4ms
TuyAPI GET Payload: +2s
TuyAPI {
TuyAPI gwId: 'bf94066e80ba*****',
TuyAPI devId: 'bf94066e80ba*****',
TuyAPI t: '1621353246',
TuyAPI dpId: [ 18, 19 ],
TuyAPI uid: 'bf94066e80ba*****'
TuyAPI } +1ms
TuyAPI Received data: 000055aa00000000000000080000004b00000000332e330000000000004adf00000001f600026ea71109d2ee23622031bbab70e55c3358fd9730d503ede258f2ff0968bce7dc4957cb197e826cd713345bd525b9a6d1830000aa55 +147ms
TuyAPI Parsed: +1ms
TuyAPI {
TuyAPI payload: { dps: { '18': 59, '19': 48 }, t: 1621353245 },
TuyAPI leftover: false,
TuyAPI commandByte: 8,
TuyAPI sequenceN: 0
TuyAPI } +6ms
TuyAPI Received DP_REFRESH packet. +5ms
18 May 17:54:06 - [info] [tuya-smart-device:tuya device] Data from device [event:dp-refresh]: {"dps":{"18":59,"19":48},"t":1621353245}
TuyAPI Received data: 000055aa00000020000000120000000c000000002dba3c5a0000aa55 +135ms
TuyAPI Parsed: +1ms
TuyAPI { payload: false, leftover: false, commandByte: 18, sequenceN: 32 } +1ms
TuyAPI Received DP_REFRESH empty response packet. +4ms
TuyAPI GET Payload: +2s
TuyAPI {
TuyAPI gwId: 'bf94066e80ba*****',
TuyAPI devId: 'bf94066e80ba*****',
TuyAPI t: '1621353248',
TuyAPI dpId: [ 18, 19 ],
TuyAPI uid: 'bf94066e80ba*****'
TuyAPI } +0ms
TuyAPI Received data: 000055aa00000000000000080000004b00000000332e330000000000004ae0000000015d5a0565dafa115d832a2affc77072d8df3f3c682f2a45fd85cd2dcb376c665dc1e941fd2a3c78796e0b00743e33ab52da6302cd0000aa55 +89ms
TuyAPI Parsed: +0ms
TuyAPI {
TuyAPI payload: { dps: { '18': 58, '19': 47 }, t: 1621353247 },
TuyAPI leftover: false,
TuyAPI commandByte: 8,
TuyAPI sequenceN: 0
TuyAPI } +6ms
TuyAPI Received DP_REFRESH packet. +1ms
18 May 17:54:08 - [info] [tuya-smart-device:tuya device] Data from device [event:dp-refresh]: {"dps":{"18":58,"19":47},"t":1621353247}
TuyAPI Received data: 000055aa00000021000000120000000c00000000f02ce5df0000aa55 +133ms
TuyAPI Parsed: +1ms
TuyAPI { payload: false, leftover: false, commandByte: 18, sequenceN: 33 } +2ms
TuyAPI Received DP_REFRESH empty response packet. +3ms
TuyAPI GET Payload: +2s
TuyAPI {
TuyAPI gwId: 'bf94066e80ba*****',
TuyAPI devId: 'bf94066e80ba*****',
TuyAPI t: '1621353250',
TuyAPI dpId: [ 18, 19 ],
TuyAPI uid: 'bf94066e80ba*****'
TuyAPI } +0ms
TuyAPI Received data: 000055aa00000000000000080000004b00000000332e330000000000004ae100000001006a66fe03ae72dea834362a8a12fc0ebc1cc0f9d07f74d99b71e625ec54c2b533b376e44a5d7ee539e8fa2ef4fef92fcfd298a50000aa55 +66ms
TuyAPI Parsed: +1ms
TuyAPI {
TuyAPI payload: { dps: { '19': 46 }, t: 1621353249 },
TuyAPI leftover: false,
TuyAPI commandByte: 8,
TuyAPI sequenceN: 0
TuyAPI } +2ms
TuyAPI Received DP_REFRESH packet. +4ms
18 May 17:54:10 - [info] [tuya-smart-device:tuya device] Data from device [event:dp-refresh]: {"dps":{"19":46},"t":1621353249}
TuyAPI Received data: 000055aa00000022000000120000000c000000004de689110000aa55 +131ms
TuyAPI Parsed: +0ms
TuyAPI { payload: false, leftover: false, commandByte: 18, sequenceN: 34 } +3ms
TuyAPI Received DP_REFRESH empty response packet. +7ms
TuyAPI Pinging 192.168.1.17 +2s
TuyAPI Received data: 000055aa00000000000000090000000c00000000b051ab030000aa55 +5ms
TuyAPI Parsed: +2ms
TuyAPI { payload: false, leftover: false, commandByte: 9, sequenceN: 0 } +3ms
TuyAPI Pong from 192.168.1.17 +2ms
TuyAPI GET Payload: +178ms
TuyAPI {
TuyAPI gwId: 'bf94066e80ba*****',
TuyAPI devId: 'bf94066e80ba*****',
TuyAPI t: '1621353252',
TuyAPI dpId: [ 18, 19 ],
TuyAPI uid: 'bf94066e80ba*****'
TuyAPI } +1ms
TuyAPI Received data: 000055aa00000024000000120000000c00000000ed0356cc0000aa55 +300ms
TuyAPI Parsed: +0ms
TuyAPI { payload: false, leftover: false, commandByte: 18, sequenceN: 36 } +6ms
TuyAPI Received DP_REFRESH empty response packet. +1ms
TuyAPI GET Payload: +2s
TuyAPI {
TuyAPI gwId: 'bf94066e80ba*****',
TuyAPI devId: 'bf94066e80ba*****',
TuyAPI t: '1621353254',
TuyAPI dpId: [ 18, 19 ],
TuyAPI uid: 'bf94066e80ba*****'
TuyAPI } +1ms
TuyAPI Received data: 000055aa00000000000000080000004b00000000332e330000000000004ae200000001dcd15fee2cd808f2c426bd54412d47671d8620595458ed062d14b84d7cf81b1d33b376e44a5d7ee539e8fa2ef4fef92f4eb1e9220000aa55 +97ms
TuyAPI Parsed: +1ms
TuyAPI {
TuyAPI payload: { dps: { '18': 57 }, t: 1621353253 },
TuyAPI leftover: false,
TuyAPI commandByte: 8,
TuyAPI sequenceN: 0
TuyAPI } +6ms
TuyAPI Received DP_REFRESH packet. +5ms
18 May 17:54:14 - [info] [tuya-smart-device:tuya device] Data from device [event:dp-refresh]: {"dps":{"18":57},"t":1621353253}
TuyAPI Received data: 000055aa00000025000000120000000c0000000030958f490000aa55 +130ms
TuyAPI Parsed: +0ms
TuyAPI { payload: false, leftover: false, commandByte: 18, sequenceN: 37 } +2ms
TuyAPI Received DP_REFRESH empty response packet. +5ms
TuyAPI GET Payload: +2s
TuyAPI {
TuyAPI gwId: 'bf94066e80ba*****',
TuyAPI devId: 'bf94066e80ba*****',
TuyAPI t: '1621353256',
TuyAPI dpId: [ 18, 19 ],
TuyAPI uid: 'bf94066e80ba*****'
TuyAPI } +1ms
TuyAPI Received data: 000055aa00000000000000080000004b00000000332e330000000000004ae300000001f600026ea71109d2ee23622031bbab70dfa130d233e79fc68f9098afb20cec3f6c0b6bf9d9cb6c0669ae054be03a30d0297c454d0000aa55 +135ms
TuyAPI Parsed: +1ms
TuyAPI {
TuyAPI payload: { dps: { '18': 59, '19': 45 }, t: 1621353255 },
TuyAPI leftover: false,
TuyAPI commandByte: 8,
TuyAPI sequenceN: 0
TuyAPI } +2ms
TuyAPI Received DP_REFRESH packet. +4ms
18 May 17:54:16 - [info] [tuya-smart-device:tuya device] Data from device [event:dp-refresh]: {"dps":{"18":59,"19":45},"t":1621353255}
TuyAPI Received data: 000055aa00000026000000120000000c000000008d5fe3870000aa55 +135ms
TuyAPI Parsed: +1ms
TuyAPI { payload: false, leftover: false, commandByte: 18, sequenceN: 38 } +2ms
TuyAPI Received DP_REFRESH empty response packet. +4ms
TuyAPI GET Payload: +2s
TuyAPI {
TuyAPI gwId: 'bf94066e80ba*****',
TuyAPI devId: 'bf94066e80ba*****',
TuyAPI t: '1621353258',
TuyAPI dpId: [ 18, 19 ],
TuyAPI uid: 'bf94066e80ba*****'
TuyAPI } +0ms
TuyAPI Received data: 000055aa00000000000000080000004b00000000332e330000000000004ae400000001e1f00c8ff704858a5c61cac48d003232df3f3c682f2a45fd85cd2dcb376c665dc8d50e6f14b120ece1bb45929f25d292f48246a60000aa55 +72ms
TuyAPI Parsed: +2ms
TuyAPI {
TuyAPI payload: { dps: { '18': 57, '19': 47 }, t: 1621353257 },
TuyAPI leftover: false,
TuyAPI commandByte: 8,
TuyAPI sequenceN: 0
TuyAPI } +5ms
TuyAPI Received DP_REFRESH packet. +6ms
18 May 17:54:18 - [info] [tuya-smart-device:tuya device] Data from device [event:dp-refresh]: {"dps":{"18":57,"19":47},"t":1621353257}
TuyAPI Received data: 000055aa00000027000000120000000c0000000050c93a020000aa55 +124ms
TuyAPI Parsed: +0ms
TuyAPI { payload: false, leftover: false, commandByte: 18, sequenceN: 39 } +2ms
TuyAPI Received DP_REFRESH empty response packet. +4ms
TuyAPI GET Payload: +2s
TuyAPI {
TuyAPI gwId: 'bf94066e80ba*****',
TuyAPI devId: 'bf94066e80ba*****',
TuyAPI t: '1621353260',
TuyAPI dpId: [ 18, 19 ],
TuyAPI uid: 'bf94066e80ba*****'
TuyAPI } +0ms
TuyAPI Received data: 000055aa00000000000000080000004b00000000332e330000000000004ae500000001c6990bf555af0b8c634897c8fee1e73741aebaf3c0496942c84f0ff44e96bb6f33b376e44a5d7ee539e8fa2ef4fef92f2de30edf0000aa55 +71ms
TuyAPI Parsed: +1ms
TuyAPI {
TuyAPI payload: { dps: { '19': 44 }, t: 1621353259 },
TuyAPI leftover: false,
TuyAPI commandByte: 8,
TuyAPI sequenceN: 0
TuyAPI } +6ms
TuyAPI Received DP_REFRESH packet. +3ms
18 May 17:54:20 - [info] [tuya-smart-device:tuya device] Data from device [event:dp-refresh]: {"dps":{"19":44},"t":1621353259}
TuyAPI Received data: 000055aa00000028000000120000000c0000000077b9ef370000aa55 +128ms
TuyAPI Parsed: +1ms
TuyAPI { payload: false, leftover: false, commandByte: 18, sequenceN: 40 } +7ms
TuyAPI Received DP_REFRESH empty response packet. +5ms
TuyAPI Pinging 192.168.1.17 +2s
TuyAPI Received data: 000055aa00000000000000090000000c00000000b051ab030000aa55 +23ms
TuyAPI Parsed: +1ms
TuyAPI { payload: false, leftover: false, commandByte: 9, sequenceN: 0 } +2ms
TuyAPI Pong from 192.168.1.17 +3ms
TuyAPI GET Payload: +222ms
TuyAPI {
TuyAPI gwId: 'bf94066e80ba*****',
TuyAPI devId: 'bf94066e80ba*****',
TuyAPI t: '1621353262',
TuyAPI dpId: [ 18, 19 ],
TuyAPI uid: 'bf94066e80ba*****'
TuyAPI } +0ms
TuyAPI Received data: 000055aa00000000000000080000004b00000000332e330000000000004ae6000000015d5a0565dafa115d832a2affc77072d8dfa130d233e79fc68f9098afb20cec3f28c8b71d94a1b631f88a6a3ef2df88dd3f35caac0000aa55 +69ms
TuyAPI Parsed: +2ms
TuyAPI {
TuyAPI payload: { dps: { '18': 58, '19': 45 }, t: 1621353261 },
TuyAPI leftover: false,
TuyAPI commandByte: 8,
TuyAPI sequenceN: 0
TuyAPI } +7ms
TuyAPI Received DP_REFRESH packet. +3ms
18 May 17:54:22 - [info] [tuya-smart-device:tuya device] Data from device [event:dp-refresh]: {"dps":{"18":58,"19":45},"t":1621353261}
TuyAPI Received data: 000055aa0000002a000000120000000c0000000017e55a7c0000aa55 +126ms
TuyAPI Parsed: +0ms
TuyAPI { payload: false, leftover: false, commandByte: 18, sequenceN: 42 } +2ms
TuyAPI Received DP_REFRESH empty response packet. +4ms
TuyAPI GET Payload: +2s
TuyAPI {
TuyAPI gwId: 'bf94066e80ba*****',
TuyAPI devId: 'bf94066e80ba*****',
TuyAPI t: '1621353264',
TuyAPI dpId: [ 18, 19 ],
TuyAPI uid: 'bf94066e80ba*****'
TuyAPI } +1ms
TuyAPI Received data: 000055aa0000002b000000120000000c00000000ca7383f90000aa55 +207ms
TuyAPI Parsed: +0ms
TuyAPI { payload: false, leftover: false, commandByte: 18, sequenceN: 43 } +3ms
TuyAPI Received DP_REFRESH empty response packet. +3ms
TuyAPI GET Payload: +2s
TuyAPI {
TuyAPI gwId: 'bf94066e80ba*****',
TuyAPI devId: 'bf94066e80ba*****',
TuyAPI t: '1621353266',
TuyAPI dpId: [ 18, 19 ],
TuyAPI uid: 'bf94066e80ba*****'
TuyAPI } +0ms
TuyAPI Received data: 000055aa00000000000000080000005b00000000332e330000000000004ae700000001e1f00c8ff704858a5c61cac48d003232724a959a79dd84410f8d552f071aa4b91394eb9d7a761f54d665dbfd3a782125fb83e18bd5d7a7fb4699c53640699675c99947560000aa55 +85ms
TuyAPI Parsed: +1ms
TuyAPI {
TuyAPI payload: { dps: { '18': 57, '19': 47, '20': 2306 }, t: 1621353265 },
TuyAPI leftover: false,
TuyAPI commandByte: 8,
TuyAPI sequenceN: 0
TuyAPI } +7ms
TuyAPI Received DP_REFRESH packet. +2ms
18 May 17:54:26 - [info] [tuya-smart-device:tuya device] Data from device [event:dp-refresh]: {"dps":{"18":57,"19":47,"20":2306},"t":1621353265}
REFONE every 2 seconds
TuyAPI Received data: 000055aa00000000000000080000004b00000000332e330000000000004af000000001637439291b582d0db492acdfdd15aa34a2e21faece073b341a8002825933eb1233b376e44a5d7ee539e8fa2ef4fef92f7604f2940000aa55 +154ms
TuyAPI Parsed: +1ms
TuyAPI {
TuyAPI payload: { dps: { '18': 59 }, t: 1621353993 },
TuyAPI leftover: false,
TuyAPI commandByte: 8,
TuyAPI sequenceN: 0
TuyAPI } +6ms
TuyAPI Received DP_REFRESH packet. +5ms
18 May 18:06:34 - [info] [tuya-smart-device:tuya device] Data from device [event:dp-refresh]: {"dps":{"18":59},"t":1621353993}
TuyAPI Received data: 000055aa00000000000000080000004b00000000332e330000000000004af000000001637439291b582d0db492acdfdd15aa34a2e21faece073b341a8002825933eb1233b376e44a5d7ee539e8fa2ef4fef92f7604f2940000aa55 +11ms
TuyAPI Parsed: +3ms
TuyAPI {
TuyAPI payload: { dps: { '18': 59 }, t: 1621353993 },
TuyAPI leftover: false,
TuyAPI commandByte: 8,
TuyAPI sequenceN: 0
TuyAPI } +1ms
TuyAPI Received DP_REFRESH packet. +2ms
18 May 18:06:34 - [info] [tuya-smart-device:tuya device] Data from device [event:dp-refresh]: {"dps":{"18":59},"t":1621353993}
TuyAPI Received data: 000055aa00000008000000120000000c00000000c4c7a4c20000aa55 +107ms
TuyAPI Parsed: +1ms
TuyAPI { payload: false, leftover: false, commandByte: 18, sequenceN: 8 } +2ms
TuyAPI Received DP_REFRESH empty response packet. +3ms
TuyAPI GET Payload: +2s
TuyAPI {
TuyAPI gwId: 'bf94066e80ba*****',
TuyAPI devId: 'bf94066e80ba*****',
TuyAPI t: '1621353996',
TuyAPI dpId: [ 18, 19 ],
TuyAPI uid: 'bf94066e80ba*****'
TuyAPI } +0ms
TuyAPI Received data: 000055aa00000000000000080000004b00000000332e330000000000004af1000000015d5a0565dafa115d832a2affc77072d84e19a19c5a8857b0a931b8682e0b08dd83a9fc5de578f5c6f188e0d0260298b3c3ae13030000aa55 +92ms
TuyAPI Parsed: +0ms
TuyAPI {
TuyAPI payload: { dps: { '18': 58, '19': 46 }, t: 1621353995 },
TuyAPI leftover: false,
TuyAPI commandByte: 8,
TuyAPI sequenceN: 0
TuyAPI } +2ms
TuyAPI Received DP_REFRESH packet. +4ms
18 May 18:06:36 - [info] [tuya-smart-device:tuya device] Data from device [event:dp-refresh]: {"dps":{"18":58,"19":46},"t":1621353995}
TuyAPI Received data: 000055aa00000000000000080000004b00000000332e330000000000004af1000000015d5a0565dafa115d832a2affc77072d84e19a19c5a8857b0a931b8682e0b08dd83a9fc5de578f5c6f188e0d0260298b3c3ae13030000aa55 +1ms
TuyAPI Parsed: +0ms
TuyAPI {
TuyAPI payload: { dps: { '18': 58, '19': 46 }, t: 1621353995 },
TuyAPI leftover: false,
TuyAPI commandByte: 8,
TuyAPI sequenceN: 0
TuyAPI } +1ms
TuyAPI Received DP_REFRESH packet. +1ms
18 May 18:06:36 - [info] [tuya-smart-device:tuya device] Data from device [event:dp-refresh]: {"dps":{"18":58,"19":46},"t":1621353995}
TuyAPI Received data: 000055aa00000009000000120000000c0000000019517d470000aa55 +133ms
TuyAPI Parsed: +1ms
TuyAPI { payload: false, leftover: false, commandByte: 18, sequenceN: 9 } +3ms
TuyAPI Received DP_REFRESH empty response packet. +3ms
TuyAPI GET Payload: +2s
TuyAPI {
TuyAPI gwId: 'bf94066e80ba*****',
TuyAPI devId: 'bf94066e80ba*****',
TuyAPI t: '1621353998',
TuyAPI dpId: [ 18, 19 ],
TuyAPI uid: 'bf94066e80ba*****'
TuyAPI } +1ms
TuyAPI Received data: 000055aa00000000000000080000004b00000000332e330000000000004af200000001637439291b582d0db492acdfdd15aa343bfb5b89c2ea685cc3d0ce1019d08c6e33b376e44a5d7ee539e8fa2ef4fef92fe72199900000aa55 +134ms
TuyAPI Parsed: +1ms
TuyAPI {
TuyAPI payload: { dps: { '18': 59 }, t: 1621353997 },
TuyAPI leftover: false,
TuyAPI commandByte: 8,
TuyAPI sequenceN: 0
TuyAPI } +6ms
TuyAPI Received DP_REFRESH packet. +4ms
18 May 18:06:38 - [info] [tuya-smart-device:tuya device] Data from device [event:dp-refresh]: {"dps":{"18":59},"t":1621353997}
TuyAPI Received data: 000055aa00000000000000080000004b00000000332e330000000000004af200000001637439291b582d0db492acdfdd15aa343bfb5b89c2ea685cc3d0ce1019d08c6e33b376e44a5d7ee539e8fa2ef4fef92fe72199900000aa55 +4ms
TuyAPI Parsed: +10ms
TuyAPI {
TuyAPI payload: { dps: { '18': 59 }, t: 1621353997 },
TuyAPI leftover: false,
TuyAPI commandByte: 8,
TuyAPI sequenceN: 0
TuyAPI } +2ms
TuyAPI Received DP_REFRESH packet. +4ms
18 May 18:06:38 - [info] [tuya-smart-device:tuya device] Data from device [event:dp-refresh]: {"dps":{"18":59},"t":1621353997}
TuyAPI Received data: 000055aa0000000a000000120000000c00000000a49b11890000aa55 +108ms
TuyAPI Parsed: +0ms
TuyAPI { payload: false, leftover: false, commandByte: 18, sequenceN: 10 } +2ms
TuyAPI Received DP_REFRESH empty response packet. +3ms
TuyAPI Pinging 192.168.1.17 +181ms
TuyAPI Received data: 000055aa00000000000000090000000c00000000b051ab030000aa55 +26ms
TuyAPI Parsed: +1ms
TuyAPI { payload: false, leftover: false, commandByte: 9, sequenceN: 0 } +4ms
TuyAPI Pong from 192.168.1.17 +3ms
TuyAPI GET Payload: +2s
TuyAPI {
TuyAPI gwId: 'bf94066e80ba*****',
TuyAPI devId: 'bf94066e80ba*****',
TuyAPI t: '1621354000',
TuyAPI dpId: [ 18, 19 ],
TuyAPI uid: 'bf94066e80ba*****'
TuyAPI } +1ms
TuyAPI Received data: 000055aa00000000000000080000004b00000000332e330000000000004af3000000015d5a0565dafa115d832a2affc77072d865c39dc2a7c69ffd1a2c19deab6e286f9a6339c0de92daef42ca247fa20c56c6a0fadbed0000aa55 +163ms
TuyAPI Parsed: +1ms
TuyAPI {
TuyAPI payload: { dps: { '18': 58, '19': 44 }, t: 1621353999 },
TuyAPI leftover: false,
TuyAPI commandByte: 8,
TuyAPI sequenceN: 0
TuyAPI } +9ms
TuyAPI Received DP_REFRESH packet. +3ms
18 May 18:06:40 - [info] [tuya-smart-device:tuya device] Data from device [event:dp-refresh]: {"dps":{"18":58,"19":44},"t":1621353999}
TuyAPI Received data: 000055aa00000000000000080000004b00000000332e330000000000004af3000000015d5a0565dafa115d832a2affc77072d865c39dc2a7c69ffd1a2c19deab6e286f9a6339c0de92daef42ca247fa20c56c6a0fadbed0000aa55 +14ms
TuyAPI Parsed: +2ms
TuyAPI {
TuyAPI payload: { dps: { '18': 58, '19': 44 }, t: 1621353999 },
TuyAPI leftover: false,
TuyAPI commandByte: 8,
TuyAPI sequenceN: 0
TuyAPI } +1ms
TuyAPI Received DP_REFRESH packet. +4ms
18 May 18:06:40 - [info] [tuya-smart-device:tuya device] Data from device [event:dp-refresh]: {"dps":{"18":58,"19":44},"t":1621353999}
TuyAPI Received data: 000055aa0000000b000000120000000c00000000790dc80c0000aa55 +107ms
TuyAPI Parsed: +1ms
TuyAPI { payload: false, leftover: false, commandByte: 18, sequenceN: 11 } +1ms
TuyAPI Received DP_REFRESH empty response packet. +4ms
TuyAPI GET Payload: +2s
TuyAPI {
TuyAPI gwId: 'bf94066e80ba*****',
TuyAPI devId: 'bf94066e80ba*****',
TuyAPI t: '1621354002',
TuyAPI dpId: [ 18, 19 ],
TuyAPI uid: 'bf94066e80ba*****'
TuyAPI } +1ms
TuyAPI Received data: 000055aa0000000c000000120000000c00000000047ece540000aa55 +229ms
TuyAPI Parsed: +1ms
TuyAPI { payload: false, leftover: false, commandByte: 18, sequenceN: 12 } +6ms
TuyAPI Received DP_REFRESH empty response packet. +4ms
TuyAPI Pinging 192.168.1.17 +1s
TuyAPI Received data: 000055aa00000000000000090000000c00000000b051ab030000aa55 +19ms
TuyAPI Parsed: +1ms
TuyAPI { payload: false, leftover: false, commandByte: 9, sequenceN: 0 } +6ms
TuyAPI Pong from 192.168.1.17 +3ms
TuyAPI GET Payload: +541ms
TuyAPI {
TuyAPI gwId: 'bf94066e80ba*****',
TuyAPI devId: 'bf94066e80ba*****',
TuyAPI t: '1621354004',
TuyAPI dpId: [ 18, 19 ],
TuyAPI uid: 'bf94066e80ba*****'
TuyAPI } +1ms
TuyAPI Received data: 000055aa00000000000000080000004b00000000332e330000000000004af400000001d0201de5982cc902fb115ccf243af688b17e95586339c35478dc66154ba351a5896ec57c024d3ced949237c33ef0210252da26ed0000aa55 +118ms
TuyAPI Parsed: +2ms
TuyAPI {
TuyAPI payload: { dps: { '20': 2314 }, t: 1621354003 },
TuyAPI leftover: false,
TuyAPI commandByte: 8,
TuyAPI sequenceN: 0
TuyAPI } +7ms
TuyAPI Received DP_REFRESH packet. +4ms
18 May 18:06:44 - [info] [tuya-smart-device:tuya device] Data from device [event:dp-refresh]: {"dps":{"20":2314},"t":1621354003}
TuyAPI Received data: 000055aa00000000000000080000004b00000000332e330000000000004af400000001d0201de5982cc902fb115ccf243af688b17e95586339c35478dc66154ba351a5896ec57c024d3ced949237c33ef0210252da26ed0000aa55 +5ms
TuyAPI Parsed: +2ms
TuyAPI {
TuyAPI payload: { dps: { '20': 2314 }, t: 1621354003 },
TuyAPI leftover: false,
TuyAPI commandByte: 8,
TuyAPI sequenceN: 0
TuyAPI } +2ms
TuyAPI Received DP_REFRESH packet. +13ms
18 May 18:06:44 - [info] [tuya-smart-device:tuya device] Data from device [event:dp-refresh]: {"dps":{"20":2314},"t":1621354003}
TuyAPI Received data: 000055aa0000000e000000120000000c0000000064227b1f0000aa55 +103ms
TuyAPI Parsed: +0ms
TuyAPI { payload: false, leftover: false, commandByte: 18, sequenceN: 14 } +2ms
TuyAPI Received DP_REFRESH empty response packet. +4ms
TuyAPI GET Payload: +2s
TuyAPI {
TuyAPI gwId: 'bf94066e80ba*****',
TuyAPI devId: 'bf94066e80ba*****',
TuyAPI t: '1621354006',
TuyAPI dpId: [ 18, 19 ],
TuyAPI uid: 'bf94066e80ba*****'
TuyAPI } +0ms
TuyAPI Received data: 000055aa00000000000000080000004b00000000332e330000000000004af500000001398f86a40168fedf873c028ffa675cc0dfa130d233e79fc68f9098afb20cec3ff30c9b52cbb4e750c59c1a9b8d3c3dae82ebc9f20000aa55 +149ms
TuyAPI Parsed: +2ms
TuyAPI {
TuyAPI payload: { dps: { '18': 53, '19': 45 }, t: 1621354005 },
TuyAPI leftover: false,
TuyAPI commandByte: 8,
TuyAPI sequenceN: 0
TuyAPI } +6ms
TuyAPI Received DP_REFRESH packet. +5ms
18 May 18:06:46 - [info] [tuya-smart-device:tuya device] Data from device [event:dp-refresh]: {"dps":{"18":53,"19":45},"t":1621354005}
TuyAPI Received data: 000055aa00000000000000080000004b00000000332e330000000000004af500000001398f86a40168fedf873c028ffa675cc0dfa130d233e79fc68f9098afb20cec3ff30c9b52cbb4e750c59c1a9b8d3c3dae82ebc9f20000aa55 +5ms
TuyAPI Parsed: +2ms
TuyAPI {
TuyAPI payload: { dps: { '18': 53, '19': 45 }, t: 1621354005 },
TuyAPI leftover: false,
TuyAPI commandByte: 8,
TuyAPI sequenceN: 0
TuyAPI } +10ms
TuyAPI Received DP_REFRESH packet. +3ms
18 May 18:06:46 - [info] [tuya-smart-device:tuya device] Data from device [event:dp-refresh]: {"dps":{"18":53,"19":45},"t":1621354005}
TuyAPI Received data: 000055aa0000000f000000120000000c00000000b9b4a29a0000aa55 +107ms
TuyAPI Parsed: +0ms
TuyAPI { payload: false, leftover: false, commandByte: 18, sequenceN: 15 } +2ms
TuyAPI Received DP_REFRESH empty response packet. +5ms
TuyAPI GET Payload: +2s
TuyAPI {
TuyAPI gwId: 'bf94066e80ba*****',
TuyAPI devId: 'bf94066e80ba*****',
TuyAPI t: '1621354008',
TuyAPI dpId: [ 18, 19 ],
TuyAPI uid: 'bf94066e80ba*****'
TuyAPI } +1ms
TuyAPI Received data: 000055aa00000000000000080000004b00000000332e330000000000004af60000000124703fa7396339891ba5e0a0f2ef0b4d2cd5ffb7a0a7746a6fd4789a9ba48b0833b376e44a5d7ee539e8fa2ef4fef92f62b70c590000aa55 +87ms
TuyAPI Parsed: +1ms
TuyAPI {
TuyAPI payload: { dps: { '18': 58 }, t: 1621354007 },
TuyAPI leftover: false,
TuyAPI commandByte: 8,
TuyAPI sequenceN: 0
TuyAPI } +7ms
TuyAPI Received DP_REFRESH packet. +4ms
18 May 18:06:48 - [info] [tuya-smart-device:tuya device] Data from device [event:dp-refresh]: {"dps":{"18":58},"t":1621354007}
TuyAPI Received data: 000055aa00000000000000080000004b00000000332e330000000000004af60000000124703fa7396339891ba5e0a0f2ef0b4d2cd5ffb7a0a7746a6fd4789a9ba48b0833b376e44a5d7ee539e8fa2ef4fef92f62b70c590000aa55 +5ms
TuyAPI Parsed: +2ms
TuyAPI {
TuyAPI payload: { dps: { '18': 58 }, t: 1621354007 },
TuyAPI leftover: false,
TuyAPI commandByte: 8,
TuyAPI sequenceN: 0
TuyAPI } +10ms
TuyAPI Received DP_REFRESH packet. +3ms
18 May 18:06:48 - [info] [tuya-smart-device:tuya device] Data from device [event:dp-refresh]: {"dps":{"18":58},"t":1621354007}
TuyAPI Received data: 000055aa00000010000000120000000c000000002ac3d1750000aa55 +112ms
TuyAPI Parsed: +1ms
TuyAPI { payload: false, leftover: false, commandByte: 18, sequenceN: 16 } +6ms
TuyAPI Received DP_REFRESH empty response packet. +3ms
TuyAPI Pinging 192.168.1.17 +136ms
TuyAPI Received data: 000055aa00000000000000090000000c00000000b051ab030000aa55 +60ms
TuyAPI Parsed: +1ms
TuyAPI { payload: false, leftover: false, commandByte: 9, sequenceN: 0 } +7ms
TuyAPI Pong from 192.168.1.17 +2ms
TuyAPI GET Payload: +2s
TuyAPI {
TuyAPI gwId: 'bf94066e80ba*****',
TuyAPI devId: 'bf94066e80ba*****',
TuyAPI t: '1621354010',
TuyAPI dpId: [ 18, 19 ],
TuyAPI uid: 'bf94066e80ba*****'
TuyAPI } +0ms
TuyAPI Received data: 000055aa00000000000000080000004b00000000332e330000000000004af700000001f600026ea71109d2ee23622031bbab70df3f3c682f2a45fd85cd2dcb376c665d8ab4bc9c3b544b2ef0adab95dd366d70260c1abe0000aa55 +131ms
TuyAPI Parsed: +2ms
TuyAPI {
TuyAPI payload: { dps: { '18': 59, '19': 47 }, t: 1621354009 },
TuyAPI leftover: false,
TuyAPI commandByte: 8,
TuyAPI sequenceN: 0
TuyAPI } +8ms
TuyAPI Received DP_REFRESH packet. +3ms
18 May 18:06:50 - [info] [tuya-smart-device:tuya device] Data from device [event:dp-refresh]: {"dps":{"18":59,"19":47},"t":1621354009}
TuyAPI Received data: 000055aa00000000000000080000004b00000000332e330000000000004af700000001f600026ea71109d2ee23622031bbab70df3f3c682f2a45fd85cd2dcb376c665d8ab4bc9c3b544b2ef0adab95dd366d70260c1abe0000aa55 +5ms
TuyAPI Parsed: +11ms
TuyAPI {
TuyAPI payload: { dps: { '18': 59, '19': 47 }, t: 1621354009 },
TuyAPI leftover: false,
TuyAPI commandByte: 8,
TuyAPI sequenceN: 0
TuyAPI } +1ms
TuyAPI Received DP_REFRESH packet. +2ms
18 May 18:06:50 - [info] [tuya-smart-device:tuya device] Data from device [event:dp-refresh]: {"dps":{"18":59,"19":47},"t":1621354009}
TuyAPI Received data: 000055aa00000011000000120000000c00000000f75508f00000aa55 +113ms
TuyAPI Parsed: +1ms
TuyAPI { payload: false, leftover: false, commandByte: 18, sequenceN: 17 } +5ms
TuyAPI Received DP_REFRESH empty response packet. +3ms
TuyAPI GET Payload: +2s
TuyAPI {
TuyAPI gwId: 'bf94066e80ba*****',
TuyAPI devId: 'bf94066e80ba*****',
TuyAPI t: '1621354012',
TuyAPI dpId: [ 18, 19 ],
TuyAPI uid: 'bf94066e80ba*****'
TuyAPI } +0ms
TuyAPI Received data: 000055aa00000000000000080000004b00000000332e330000000000004af800000001b9054a23f59ccbae5a4623b4930f8ce1295e31f5adba9033e1971270b876d58c33b376e44a5d7ee539e8fa2ef4fef92f8cc0f3e60000aa55 +174ms
TuyAPI Parsed: +1ms
TuyAPI {
TuyAPI payload: { dps: { '19': 45 }, t: 1621354012 },
TuyAPI leftover: false,
TuyAPI commandByte: 8,
TuyAPI sequenceN: 0
TuyAPI } +3ms
TuyAPI Received DP_REFRESH packet. +5ms
18 May 18:06:52 - [info] [tuya-smart-device:tuya device] Data from device [event:dp-refresh]: {"dps":{"19":45},"t":1621354012}
TuyAPI Received data: 000055aa00000000000000080000004b00000000332e330000000000004af800000001b9054a23f59ccbae5a4623b4930f8ce1295e31f5adba9033e1971270b876d58c33b376e44a5d7ee539e8fa2ef4fef92f8cc0f3e60000aa55 +2ms
TuyAPI Parsed: +1ms
TuyAPI {
TuyAPI payload: { dps: { '19': 45 }, t: 1621354012 },
TuyAPI leftover: false,
TuyAPI commandByte: 8,
TuyAPI sequenceN: 0
TuyAPI } +1ms
TuyAPI Received DP_REFRESH packet. +1ms
18 May 18:06:52 - [info] [tuya-smart-device:tuya device] Data from device [event:dp-refresh]: {"dps":{"19":45},"t":1621354012}
REFSCHEMA every 2 seconds
TuyAPI Received data: 000055aa00000021000000120000000c00000000f02ce5df0000aa55 +126ms
TuyAPI Parsed: +0ms
TuyAPI { payload: false, leftover: false, commandByte: 18, sequenceN: 33 } +2ms
TuyAPI Received DP_REFRESH empty response packet. +0ms
TuyAPI GET Payload: +2s
TuyAPI {
TuyAPI gwId: 'bf94066e80ba*****',
TuyAPI devId: 'bf94066e80ba*****',
TuyAPI t: '1621355209',
TuyAPI dpId: [ 18, 19 ],
TuyAPI uid: 'bf94066e80ba*****'
TuyAPI } +1ms
TuyAPI Received data: 000055aa00000000000000080000004b00000000332e330000000000004b110000000124703fa7396339891ba5e0a0f2ef0b4d662d157da8dddd677d11841b0684e4dd33b376e44a5d7ee539e8fa2ef4fef92f6a1a95900000aa55 +70ms
TuyAPI Parsed: +1ms
TuyAPI {
TuyAPI payload: { dps: { '18': 58 }, t: 1621355208 },
TuyAPI leftover: false,
TuyAPI commandByte: 8,
TuyAPI sequenceN: 0
TuyAPI } +4ms
TuyAPI Received DP_REFRESH packet. +2ms
18 May 18:26:48 - [info] [tuya-smart-device:tuya device] Data from device [event:dp-refresh]: {"dps":{"18":58},"t":1621355208}
TuyAPI Received data: 000055aa00000000000000080000004b00000000332e330000000000004b110000000124703fa7396339891ba5e0a0f2ef0b4d662d157da8dddd677d11841b0684e4dd33b376e44a5d7ee539e8fa2ef4fef92f6a1a95900000aa55 +1ms
TuyAPI Parsed: +1ms
TuyAPI {
TuyAPI payload: { dps: { '18': 58 }, t: 1621355208 },
TuyAPI leftover: false,
TuyAPI commandByte: 8,
TuyAPI sequenceN: 0
TuyAPI } +1ms
TuyAPI Received DP_REFRESH packet. +1ms
18 May 18:26:48 - [info] [tuya-smart-device:tuya device] Data from device [event:dp-refresh]: {"dps":{"18":58},"t":1621355208}
TuyAPI Received data: 000055aa00000022000000120000000c000000004de689110000aa55 +127ms
TuyAPI Parsed: +0ms
TuyAPI { payload: false, leftover: false, commandByte: 18, sequenceN: 34 } +2ms
TuyAPI Received DP_REFRESH empty response packet. +1ms
TuyAPI GET Payload: +2s
TuyAPI {
TuyAPI gwId: 'bf94066e80ba*****',
TuyAPI devId: 'bf94066e80ba*****',
TuyAPI t: '1621355211',
TuyAPI dpId: [ 18, 19 ],
TuyAPI uid: 'bf94066e80ba*****'
TuyAPI } +1ms
TuyAPI Received data: 000055aa00000000000000080000004b00000000332e330000000000004b1200000001ee5bf296bc397e76b062efa6bb7b4ecf1f777f92bb1e60545d24b85d30a935c433b376e44a5d7ee539e8fa2ef4fef92f54573c210000aa55 +62ms
TuyAPI Parsed: +1ms
TuyAPI {
TuyAPI payload: { dps: { '19': 47 }, t: 1621355210 },
TuyAPI leftover: false,
TuyAPI commandByte: 8,
TuyAPI sequenceN: 0
TuyAPI } +3ms
TuyAPI Received DP_REFRESH packet. +2ms
18 May 18:26:50 - [info] [tuya-smart-device:tuya device] Data from device [event:dp-refresh]: {"dps":{"19":47},"t":1621355210}
TuyAPI Received data: 000055aa00000000000000080000004b00000000332e330000000000004b1200000001ee5bf296bc397e76b062efa6bb7b4ecf1f777f92bb1e60545d24b85d30a935c433b376e44a5d7ee539e8fa2ef4fef92f54573c210000aa55 +1ms
TuyAPI Parsed: +1ms
TuyAPI {
TuyAPI payload: { dps: { '19': 47 }, t: 1621355210 },
TuyAPI leftover: false,
TuyAPI commandByte: 8,
TuyAPI sequenceN: 0
TuyAPI } +0ms
TuyAPI Received DP_REFRESH packet. +8ms
18 May 18:26:50 - [info] [tuya-smart-device:tuya device] Data from device [event:dp-refresh]: {"dps":{"19":47},"t":1621355210}
TuyAPI Received data: 000055aa00000023000000120000000c00000000907050940000aa55 +122ms
TuyAPI Parsed: +1ms
TuyAPI { payload: false, leftover: false, commandByte: 18, sequenceN: 35 } +1ms
TuyAPI Received DP_REFRESH empty response packet. +0ms
TuyAPI GET Payload: +2s
TuyAPI {
TuyAPI gwId: 'bf94066e80ba*****',
TuyAPI devId: 'bf94066e80ba*****',
TuyAPI t: '1621355213',
TuyAPI dpId: [ 18, 19 ],
TuyAPI uid: 'bf94066e80ba*****'
TuyAPI } +0ms
TuyAPI Received data: 000055aa00000000000000080000004b00000000332e330000000000004b1300000001637439291b582d0db492acdfdd15aa34a6235f45a14dd2f06b69428fb192806033b376e44a5d7ee539e8fa2ef4fef92fc8c9d8120000aa55 +136ms
TuyAPI Parsed: +1ms
TuyAPI {
TuyAPI payload: { dps: { '18': 59 }, t: 1621355212 },
TuyAPI leftover: false,
TuyAPI commandByte: 8,
TuyAPI sequenceN: 0
TuyAPI } +4ms
TuyAPI Received DP_REFRESH packet. +3ms
18 May 18:26:52 - [info] [tuya-smart-device:tuya device] Data from device [event:dp-refresh]: {"dps":{"18":59},"t":1621355212}
TuyAPI Received data: 000055aa00000000000000080000004b00000000332e330000000000004b1300000001637439291b582d0db492acdfdd15aa34a6235f45a14dd2f06b69428fb192806033b376e44a5d7ee539e8fa2ef4fef92fc8c9d8120000aa55 +1ms
TuyAPI Parsed: +1ms
TuyAPI {
TuyAPI payload: { dps: { '18': 59 }, t: 1621355212 },
TuyAPI leftover: false,
TuyAPI commandByte: 8,
TuyAPI sequenceN: 0
TuyAPI } +1ms
TuyAPI Received DP_REFRESH packet. +1ms
18 May 18:26:53 - [info] [tuya-smart-device:tuya device] Data from device [event:dp-refresh]: {"dps":{"18":59},"t":1621355212}
TuyAPI Received data: 000055aa00000024000000120000000c00000000ed0356cc0000aa55 +127ms
TuyAPI Parsed: +0ms
TuyAPI { payload: false, leftover: false, commandByte: 18, sequenceN: 36 } +1ms
TuyAPI Received DP_REFRESH empty response packet. +0ms
TuyAPI Pinging 192.168.1.17 +1s
TuyAPI Received data: 000055aa00000000000000090000000c00000000b051ab030000aa55 +64ms
TuyAPI Parsed: +1ms
TuyAPI { payload: false, leftover: false, commandByte: 9, sequenceN: 0 } +1ms
TuyAPI Pong from 192.168.1.17 +1ms
TuyAPI GET Payload: +296ms
TuyAPI {
TuyAPI gwId: 'bf94066e80ba*****',
TuyAPI devId: 'bf94066e80ba*****',
TuyAPI t: '1621355215',
TuyAPI dpId: [ 18, 19 ],
TuyAPI uid: 'bf94066e80ba*****'
TuyAPI } +0ms
TuyAPI Received data: 000055aa00000026000000120000000c000000008d5fe3870000aa55 +304ms
TuyAPI Parsed: +1ms
TuyAPI { payload: false, leftover: false, commandByte: 18, sequenceN: 38 } +4ms
TuyAPI Received DP_REFRESH empty response packet. +1ms
TuyAPI Pinging 192.168.1.17 +802ms
TuyAPI Received data: 000055aa00000000000000090000000c00000000b051ab030000aa55 +22ms
TuyAPI Parsed: +1ms
TuyAPI { payload: false, leftover: false, commandByte: 9, sequenceN: 0 } +0ms
TuyAPI Pong from 192.168.1.17 +1ms
TuyAPI GET Payload: +877ms
TuyAPI {
TuyAPI gwId: 'bf94066e80ba*****',
TuyAPI devId: 'bf94066e80ba*****',
TuyAPI t: '1621355217',
TuyAPI dpId: [ 18, 19 ],
TuyAPI uid: 'bf94066e80ba*****'
TuyAPI } +1ms
TuyAPI Received data: 000055aa00000027000000120000000c0000000050c93a020000aa55 +236ms
TuyAPI Parsed: +1ms
TuyAPI { payload: false, leftover: false, commandByte: 18, sequenceN: 39 } +4ms
TuyAPI Received DP_REFRESH empty response packet. +1ms
TuyAPI GET Payload: +2s
TuyAPI {
TuyAPI gwId: 'bf94066e80ba*****',
TuyAPI devId: 'bf94066e80ba*****',
TuyAPI t: '1621355219',
TuyAPI dpId: [ 18, 19 ],
TuyAPI uid: 'bf94066e80ba*****'
TuyAPI } +1ms
TuyAPI Received data: 000055aa00000000000000080000004b00000000332e330000000000004b1400000001c08bd215af0bd731a6cadc72b4c3d0474e19a19c5a8857b0a931b8682e0b08ddab02e96259d5f1cd40dcdf077a7487fa246b1b800000aa55 +62ms
TuyAPI Parsed: +2ms
TuyAPI {
TuyAPI payload: { dps: { '18': 60, '19': 46 }, t: 1621355218 },
TuyAPI leftover: false,
TuyAPI commandByte: 8,
TuyAPI sequenceN: 0
TuyAPI } +4ms
TuyAPI Received DP_REFRESH packet. +2ms
18 May 18:26:58 - [info] [tuya-smart-device:tuya device] Data from device [event:dp-refresh]: {"dps":{"18":60,"19":46},"t":1621355218}
Conclusion: In this device (and the other), the "REFRESH triggers an immediate resampling and the device sends all DPs that are changed: options like dp, schema ... have no effect".
P.S. That is not exact. Looking at data better I noticed that we can found duplicated responses in cases REFONE and REFSCHEMA but not in case REFONLY. Also the rule "DPs that are changed" is stricty valid only for REFONLY.
Sic stantibus rebus, for me the better solution is to use REFONLY only (sic!) to reduce the band.
On my collection of 41 tuya devices, only 2 accept REFRESH, so I can't do more tests.
Best regards
m.s.
Cool, thanks for the data.
I've tested a second device that handles the REFRESH, a wifi plug. The behavior is the same as the previous device: see ISSUE#460. I can't found on my devices any difference between:
refresh()
refresh(schema=true)
// never got a SCHEMA so, also if this device as the SCHEMA capabilityrefresh(dp=21)
// the 'dp' is ignored, device sends other DPrefresh(requestedDPS=[20,21]).
In my experience, REFRESH is a device command, not a DP capability. It triggers an immediate resampling and the device sends all DPs that are changed: options like
dp
,schema
... have no effect.That looks very different from the expected behavior of that command and these options as described in the tuyApi documentation. Or am I misleading the documentation?
I have implemented a
refreshCycle
, that works as fast as 1 sec, ISSUE#56 using therefresh()
, but I don't know if there are more general and better solutions.Best regards m.s.