Skip to content

Zigbee subdevice dp-refresh not working #695

@serseb

Description

@serseb

I have a ZigBee plug which I can control successfully (ON/OFF) by sending requests to the gateway and using cid to specify the subdevice. However, when I try to issue a forced refresh in order to get the power consumption, I get a DP_REFRESH event without data, as following:

TuyAPI GET Payload (refresh): +818ms
TuyAPI {
TuyAPI gwId: 'GATEWAY_ID',
TuyAPI devId: 'GATEWAY_ID',
TuyAPI t: '1740192863',
TuyAPI dpId: [ 4, 5, 6, 18, 19, 20 ],
TuyAPI uid: 'GATEWAY_ID',
TuyAPI cid: 'SUBDEVICE_MAC_NO_COLONS'
TuyAPI } +1ms
TuyAPI Received data: 000055aa00004e81000000120000002800000000b82db93d716f2e95a05604143f0971ea5f41bd1fc93423a63c884686d2c630710000aa55 +10ms
TuyAPI Parsed: +4ms
TuyAPI { payload: false, leftover: false, commandByte: 18, sequenceN: 20097 } +0ms
TuyAPI Received DP_REFRESH response packet without data - resolve +1ms

The subdevice does support this feature as whenever I have the device "Electric" screen in SmartLife app I do get the DP_REFRESH event successfully every few seconds. Otherwise, I will only get a DP_REFRESH at every 60 seconds or so.

I also tried to use the device Virtual ID instead of the MAC address, without success.

Please advise if there is a known bug / missing feature, or I'm missing something.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions