slsys/Gateway

Add new device support Tuya WSD500A

Closed this issue · 0 comments

Здравствуйте, добавьте пожалуйста поддержку Tuya WSD500A
Страничка: https://www.zigbee2mqtt.io/devices/WSD500A.html

Подключается как TS0201, отображает температуру и влажность, но не правильно.

Device:
EndDevice

ieeeAddr
0xA4C138F889A54D82
nwkAddr
0x6017
Power source
Converter Id
0
ManufName
_TZ3000_bguser20
ModelId
TS0201
Routes
Endpoint #1

ProfileId

0x0104

DeviceId

0x0302

Input clusters

GEN_BASIC
GEN_POWER_CFG
GEN_IDENTIFY
MS_TEMPERATURE_MEASUREMENT
MS_RELATIVE_HUMIDITY

Output clusters

GEN_IDENTIFY
GEN_TIME
OTA

LOG:

[22:00:56.629] [D] -- ReceiveCmd: 0x45CA AREQ_ZDO_TC_DEV_IND, Len: 12, Data: AF4F824DA589F838C1A40000
[22:00:56.638] [V] AREQ_ZDO_TC_DEV_IND SrcNwkAddr: 0x4FAF, SrcIEEEAddr: 0xA4C138F889A54D82, ParentNwkAddr: 0x0000
[22:00:56.651] [D] SetDeviceState nwkAddr: 0x4FAF, last_seen = UINT32: 1648753256
[22:00:56.677] [D] ProcessDeviceInterview nwkAddr: 0x4FAF, State: 0, TS: 0, CurrentTS: 1648753256
[22:00:57.686] [D] -- SendCmd 0x2502 SREQ_ZDO_NODE_DESC_REQ, DataLen: 4, Data: AF4FAF4F
[22:00:57.719] [D] -- ReceiveCmd: 0x6502 SRSP_ZDO_NODE_DESC_REQ, Len: 1, Data: 00
[22:00:57.741] [D] -- ReceiveCmd: 0x45C1 AREQ_ZDO_END_DEVICE_ANNCE_IND, Len: 13, Data: AF4FAF4F824DA589F838C1A480
[22:00:57.752] [V] AREQ_ZDO_END_DEVICE_ANNCE_IND SrcNwkAddr: 0x4FAF, NwkAddr: 0x4FAF, ieeeAddr: 0xA4C138F889A54D82, Capabilites: 0x80
[22:00:57.765] Device announce: 0xA4C138F889A54D82, DevType: EndDevice, PowerSource: Battery, ReceiverOnIdle: OFF, Security: OFF
[22:00:57.776] [D] SetDeviceState nwkAddr: 0x4FAF, last_seen = UINT32: 1648753257
[22:00:57.811] [D] ProcessDeviceInterview nwkAddr: 0x4FAF, State: 0, TS: 1648753256, CurrentTS: 1648753257
[22:00:57.845] [D] -- ReceiveCmd: 0x4582 AREQ_ZDO_NODE_DESC_RSP, Len: 18, Data: AF4F00AF4F0240804111424200002A420000
[22:00:57.859] [D] SetDeviceState nwkAddr: 0x4FAF, last_seen = UINT32: 1648753257
[22:00:57.871] [D] ProcessDeviceInterview nwkAddr: 0x4FAF, State: 1, TS: 0, CurrentTS: 1648753257
[22:00:57.880] [D] -- SendCmd 0x2505 SREQ_ZDO_ACTIVE_EP_REQ, DataLen: 4, Data: AF4FAF4F
[22:00:57.917] [D] -- ReceiveCmd: 0x6505 SRSP_ZDO_ACTIVE_EP_REQ, Len: 1, Data: 00
[22:00:57.226] [D] -- ReceiveCmd: 0x4585 AREQ_ZDO_ACTIVE_EP_RSP, Len: 7, Data: AF4F00AF4F0101
[22:00:57.236] [V] -- Found active Endpoints, nwkAddr: 0x4FAF, Endpoints: 1
[22:00:57.248] [D] SetDeviceState nwkAddr: 0x4FAF, last_seen = UINT32: 1648753257
[22:00:57.273] [D] ProcessDeviceInterview nwkAddr: 0x4FAF, State: 2, TS: 0, CurrentTS: 1648753257
[22:00:57.283] [D] -- SendCmd 0x2504 SREQ_ZDO_SIMPLE_DESC_REQ, DataLen: 5, Data: AF4FAF4F01
[22:00:57.305] [D] -- ReceiveCmd: 0x6504 SRSP_ZDO_SIMPLE_DESC_REQ, Len: 1, Data: 00
[22:00:57.346] [D] -- ReceiveCmd: 0x4584 AREQ_ZDO_SIMPLE_DESC_RSP, Len: 30, Data: AF4F00AF4F18010401020301050100030002040504000003030019000A00
[22:00:57.360] [D] AREQ_ZDO_SIMPLE_DESC_RSP nwkAddr: 0x4FAF, Endpoint: 1, ProfileId: 0x0104, DeviceId: 0x0302, DevVer: 1
[22:00:57.371] NumInClusters: 5
[22:00:57.385] [D] -- Found InCluster: 0x0001 GEN_POWER_CFG
[22:00:57.394] [D] -- Found InCluster: 0x0003 GEN_IDENTIFY
[22:00:57.406] [D] -- Found InCluster: 0x0402 MS_TEMPERATURE_MEASUREMENT
[22:00:57.415] [D] -- Found InCluster: 0x0405 MS_RELATIVE_HUMIDITY
[22:00:57.428] [D] -- Found InCluster: 0x0000 GEN_BASIC
[22:00:57.437] NumOutClusters: 3
[22:00:57.448] [D] -- Found OutCluster: 0x0003 GEN_IDENTIFY
[22:00:57.459] [D] -- Found OutCluster: 0x0019 OTA
[22:00:57.470] [D] -- Found OutCluster: 0x000A GEN_TIME
[22:00:57.482] [D] SetDeviceState nwkAddr: 0x4FAF, last_seen = UINT32: 1648753257
[22:00:57.504] [D] ProcessDeviceInterview nwkAddr: 0x4FAF, State: 2, TS: 0, CurrentTS: 1648753257
[22:00:57.528] [D] ProcessDeviceInterview nwkAddr: 0x4FAF, State: 3, TS: 0, CurrentTS: 1648753257
[22:00:57.540] [D] -- SendCmd 0x2401 SREQ_AF_DATA_REQUEST, DataLen: 19, Data: AF4F0101000001001E09107100040005000700
[22:00:57.562] [D] -- ReceiveCmd: 0x6401 SRSP_AF_DATA_REQUEST, Len: 1, Data: 00
[22:00:58.723] [D] -- ReceiveCmd: 0x4480 AREQ_AF_DATA_CONFIRM, Len: 3, Data: 000101
[22:00:58.743] [D] -- ReceiveCmd: 0x4481 AREQ_AF_INCOMING_MSG, Len: 60, Data: 00000000AF4F010100AB0080CCEF00002818710104000042105F545A333030305F626775736572323005000042065453303230310700003003AF4F1D
[22:00:58.763] [V] AREQ_AF_INCOMING_MSG GroupId: 0x0000, ClusterId: 0x0000 GEN_BASIC, SrcAddr: 0x4FAF, SrcEn: 1, DstEn: 1, WasBr: 0x00, LinkQuality: 171, SecurityUse: 0x00, TimeStamp: 0x00EFCC80, TransSeqNum: 0, Len: 40, Data: 18710104000042105F545A333030305F626775736572323005000042065453303230310700003003
[22:00:58.789] [D] SetDeviceState nwkAddr: 0x4FAF, last_seen = UINT32: 1648753258
[22:00:58.812] [V] ZCL FrameControl: 0x18, Type: 00, ManuSpecific: 00, Direction: 01, DisableDefaultRsp: 01, TrSeqNum: 113, CmdId: 0x01 READ_RSP, Payload: 04000042105F545A333030305F626775736572323005000042065453303230310700003003
[22:00:58.831] [D] SetDeviceState nwkAddr: 0x4FAF, linkquality = UINT8: 171
[22:00:58.854] [D] SetDeviceState nwkAddr: 0x4FAF, trSeqNum = UINT8: 113
[22:00:58.884] [V] AttrId: 0x0004, AttrDataType: 0x42, AttrDataLen: 17, AttrValue: _TZ3000_bguser20
[22:00:58.896] [V] AttrId: 0x0005, AttrDataType: 0x42, AttrDataLen: 7, AttrValue: TS0201
[22:00:58.909] [V] AttrId: 0x0007, AttrDataType: 0x30, AttrDataLen: 1, AttrValue: 3
[22:00:58.920] [D] -- SendCmd 0x2401 SREQ_AF_DATA_REQUEST, DataLen: 15, Data: AF4F0101000001001E051072000600
[22:00:58.944] New device 'TS0201' with address 0xA4C138F889A54D82 interview completed!
[22:00:58.003] [D] -- ReceiveCmd: 0x6401 SRSP_AF_DATA_REQUEST, Len: 1, Data: 00
[22:00:58.225] [D] -- ReceiveCmd: 0x4480 AREQ_AF_DATA_CONFIRM, Len: 3, Data: 000101
[22:00:58.246] [D] -- ReceiveCmd: 0x4481 AREQ_AF_INCOMING_MSG, Len: 28, Data: 00000000AF4F0101008A00A245000000081872010600004200AF4F1D
[22:00:58.259] [V] AREQ_AF_INCOMING_MSG GroupId: 0x0000, ClusterId: 0x0000 GEN_BASIC, SrcAddr: 0x4FAF, SrcEn: 1, DstEn: 1, WasBr: 0x00, LinkQuality: 138, SecurityUse: 0x00, TimeStamp: 0x000045A2, TransSeqNum: 0, Len: 8, Data: 1872010600004200
[22:00:58.280] [D] SetDeviceState nwkAddr: 0x4FAF, last_seen = UINT32: 1648753258
[22:00:58.291] [V] ZCL FrameControl: 0x18, Type: 00, ManuSpecific: 00, Direction: 01, DisableDefaultRsp: 01, TrSeqNum: 114, CmdId: 0x01 READ_RSP, Payload: 0600004200
[22:00:58.304] [D] SetDeviceState nwkAddr: 0x4FAF, linkquality = UINT8: 138
[22:00:58.326] [D] SetDeviceState nwkAddr: 0x4FAF, trSeqNum = UINT8: 114
[22:00:58.350] [V] AttrId: 0x0006, AttrDataType: 0x42, AttrDataLen: 1, AttrValue:
[22:01:00.229] Device with address 0x4FAF configuration starting...
[22:01:00.245] [ERROR] Device: 0xA4C138F889A54D82 converter Configure not found for CID: 0, ManufName: _TZ3000_bguser20, ModelId: TS0201
[22:01:00.264] SaveDevices()
[22:01:00.273] [D] GetZigbeeDevices
[22:01:00.290] [D] 2 GetZigbeeDevices() 871
[22:01:00.300] 3 308444 134756 90412
[22:01:00.310] FreeMem: 134760
[22:01:00.319] JsonSize: 871
[22:01:00.563] FileWrite time: 290
[22:01:00.577] free2
[22:01:00.586] free2 done
[22:01:01.776] [D] SaveDevices OK FileSize: 871
[22:01:01.977] [D] SaveGroups OK