Not able to add Zigbee device

I’m trying to add a TRV to home assistant but see the following log messages when adding the valve. Anyone an idea what is going wrong? This is my first zigbee device so I’m not sure if this has anything to do with the TRV or something else.

Device 0xb91b (ec:1b:bd:ff:fe:8d:51:39) joined the network
[0xb91b] Scheduling initialization
[0xb91b] Canceling old initialize callTries remaining: 3
[0xb91b] Already have endpoints: {0: <zigpy.zdo.ZDO object at 0x7fcf6e1e0fd0>, 1: <Endpoint id=1 in=[] out=[] status=<Status.NEW: 0>>}
[0xb91b] Initializing endpoints [<Endpoint id=1 in=[] out=[] status=<Status.NEW: 0>>][0xb91b:1] Discovering endpoint informationTries remaining: 3
[0xb91b] Extending timeout for 0x0f requestDevice 0xb91b (ec:1b:bd:ff:fe:8d:51:39) joined the network
[0xb91b] Scheduling initialization
[0xb91b] Canceling old initialize callTries remaining: 3
[0xb91b] Already have endpoints: {0: <zigpy.zdo.ZDO object at 0x7fcf6e1e0fd0>, 1: <Endpoint id=1 in=[] out=[] status=<Status.NEW: 0>>}
[0xb91b] Initializing endpoints [<Endpoint id=1 in=[] out=[] status=<Status.NEW: 0>>][0xb91b:1] Discovering endpoint informationTries remaining: 3
[0xb91b] Extending timeout for 0x10 requestDevice 0xb91b (ec:1b:bd:ff:fe:8d:51:39) joined the network
[0xb91b] Scheduling initialization
[0xb91b] Canceling old initialize callReceived frame on uninitialized device <Device model=None manuf=None nwk=0xB91B ieee=ec:1b:bd:ff:fe:8d:51:39 is_initialized=False> from ep 0 to ep 0, cluster ZDOCmd.Device_annce: b'\xFF\x1B\xB9\x39\x51\x8D\xFE\xFF\xBD\x1B\xEC\x80'[0xb91b:zdo] ZDO request ZDOCmd.Device_annce: [0xB91B, ec:1b:bd:ff:fe:8d:51:39, 128]Tries remaining: 3
[0xb91b] Already have endpoints: {0: <zigpy.zdo.ZDO object at 0x7fcf6e1e0fd0>, 1: <Endpoint id=1 in=[] out=[] status=<Status.NEW: 0>>}
[0xb91b] Initializing endpoints [<Endpoint id=1 in=[] out=[] status=<Status.NEW: 0>>][0xb91b:1] Discovering endpoint informationTries remaining: 3
[0xb91b] Extending timeout for 0x11 requestReceived frame on uninitialized device <Device model=None manuf=None nwk=0xB91B ieee=ec:1b:bd:ff:fe:8d:51:39 is_initialized=False> from ep 0 to ep 0, cluster ZDOCmd.Simple_Desc_rsp: b'\x11\x00\x1B\xB9\x10\x01\x04\x01\x00\x00\x00\x02\x00\x00\x03\x00\x02\x03\x00\x19\x00'[0xb91b:1] Discovered endpoint information: SizePrefixedSimpleDescriptor(endpoint=1, profile=260, device_type=0, device_version=0, input_clusters=[0, 3], output_clusters=[3, 25])
[0xb91b] Extending timeout for 0x12 request[0xb91b:1:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=18 command_id=Command.Read_Attributes_rsp>
[0xb91b] Read model 'kud7u2l' and manufacturer '_TYST11_ckud7u2l' from <Endpoint id=1 in=[basic:0x0000, identify:0x0003] out=[identify:0x0003, ota:0x0019] status=<Status.ZDO_INIT: 1>>
[0xb91b] Discovered basic device information for <Device model='kud7u2l' manuf='_TYST11_ckud7u2l' nwk=0xB91B ieee=ec:1b:bd:ff:fe:8d:51:39 is_initialized=True>
Device is initialized <Device model='kud7u2l' manuf='_TYST11_ckud7u2l' nwk=0xB91B ieee=ec:1b:bd:ff:fe:8d:51:39 is_initialized=True>
Checking quirks for _TYST11_ckud7u2l kud7u2l (ec:1b:bd:ff:fe:8d:51:39)Considering <class 'zhaquirks.tuya.valve.MoesHY368_Type2'>
Found custom device replacement for ec:1b:bd:ff:fe:8d:51:39: <class 'zhaquirks.tuya.valve.MoesHY368_Type2'>Device failed to initialize due to unexpected error
Error handling '_save_attribute' event with (ec:1b:bd:ff:fe:8d:51:39, 1, 0, 4, '_TYST11_ckud7u2l') params: FOREIGN KEY constraint failed
Error handling '_save_attribute' event with (ec:1b:bd:ff:fe:8d:51:39, 1, 0, 5, 'kud7u2l') params: FOREIGN KEY constraint failed
Ignoring message (b'0926240000') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:8d:51:39, 1)'
Ignoring message (b'09270101d66602000400000005') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:8d:51:39, 1)'
Ignoring message (b'09280101d76702000400000023') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:8d:51:39, 1)'
Ignoring message (b'09290101d802020004000000d2') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:8d:51:39, 1)'
Ignoring message (b'092a0101d903020004000000dc') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:8d:51:39, 1)'
Ignoring message (b'092b0101da0404000102') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:8d:51:39, 1)'
Ignoring message (b'092c0101db0701000100') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:8d:51:39, 1)'
Ignoring message (b'092e0101dd2c020004fffffff6') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:8d:51:39, 1)'
Ignoring message (b'092d0101dc0d05000100') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:8d:51:39, 1)'
Ignoring message (b'092f0101de6800000300050a') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:8d:51:39, 1)'
Ignoring message (b'09300101df690200040000012c') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:8d:51:39, 1)'
Ignoring message (b'09320101e16b02000400000014') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:8d:51:39, 1)'
Ignoring message (b'09310101e06a04000100') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:8d:51:39, 1)'
Ignoring message (b'09330101e26c0200040000000f') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:8d:51:39, 1)'
Ignoring message (b'09340101e36d02000400000000') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:8d:51:39, 1)'
Ignoring message (b'09360101e56f04000102') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:8d:51:39, 1)'
Ignoring message (b'09370101e6700000120600140a010f0b1e0f8c1e0f111d1416000f') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:8d:51:39, 1)'
Ignoring message (b'09350101e46e01000100') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:8d:51:39, 1)'
Ignoring message (b'09380101e77100001206001408000f0b1e0f0c1e0f111e1416000f') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:8d:51:39, 1)'
Ignoring message (b'093b0101ea7401000100') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:8d:51:39, 1)'
Ignoring message (b'093a0101e97301000100') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:8d:51:39, 1)'
Ignoring message (b'09390101e8720200040000000f') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:8d:51:39, 1)'
Ignoring message (b'093c0101eb7502000400000001') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:8d:51:39, 1)'

I’m still stuck in this situation. Does anyone knows how to make this work or where I should ask this question in order to have a fix any time soon?

Thx

If it is a Tuya made TVR then understand they are bit of a mess, but check device ID then search here:

https://github.com/zigpy/zha-device-handlers/issues

There is more information in laymen terms about what “ZHA Device Handlers” (a.k.a. “quirks”) do here:

https://www.home-assistant.io/integrations/zha#zha-exception-and-deviation-handling

https://github.com/zigpy/zha-device-handlers/blob/dcee551996a0a9e388b6afb1e054dada46897ee5/README.md

Tip! Do not buy Tuya, Aqara or Xiaomi made devices unless willing to spend time improving ZHA quirks.

PS: Note that Tuya is OEM and/or ODM for a lot of rebranded Zigbee devices sold under other brands.