Fail because input cluster mismatch on at least one endpoint - MOES Smart Button TS004F

Hi Team

Trying to install a MOES Smart Button (1 button). It is a Zigbee 3.0 model TS004F.

HA and ZHA are recognizing it but as a switch and I am trying to change it to be a button so I can use “Press one time”, “twice” and “long press”.

I added this to the configuration.yml but didn’t work.

zha:
  device_config:
    e0:79:8d:ff:fe:c1:11:f8-1:    # format: {ieee}-{endpoint_id}
      type: "button"

I noticed these messages in the homeassistant.log.

Do you have any idea what is happening here ?

THANK YOU VERY MUCH

2023-07-26 12:02:05.537 DEBUG (MainThread) [zigpy.zcl] [0xE2E2:1:0x0000] Received ZCL frame: b'\x18\x19\x01\x04\x00\x00B\x10_TZ3000_kjfzuycl\x05\x00\x00B\x06TS004F'
2023-07-26 12:02:05.538 DEBUG (MainThread) [zigpy.zcl] [0xE2E2:1:0x0000] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, direction=<Direction.Client_to_Server: 1>, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=25, command_id=1, *direction=<Direction.Client_to_Server: 1>)
2023-07-26 12:02:05.540 DEBUG (MainThread) [zigpy.zcl] [0xE2E2:1:0x0000] Decoded ZCL frame: Basic:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0004, status=<Status.SUCCESS: 0>, value=TypeValue(type=CharacterString, value='_TZ3000_kjfzuycl')), ReadAttributeRecord(attrid=0x0005, status=<Status.SUCCESS: 0>, value=TypeValue(type=CharacterString, value='TS004F'))])
2023-07-26 12:02:05.542 INFO (MainThread) [zigpy.device] [0xe2e2] Read model 'TS004F' and manufacturer '_TZ3000_kjfzuycl' from <Endpoint id=1 in=[basic:0x0000, power:0x0001, identify:0x0003, groups:0x0004, on_off:0x0006, lightlink:0x1000, None:0xE001] out=[ota:0x0019, time:0x000A, identify:0x0003, groups:0x0004, on_off:0x0006, level:0x0008, lightlink:0x1000] status=<Status.ZDO_INIT: 1>>
2023-07-26 12:02:05.543 INFO (MainThread) [zigpy.device] [0xe2e2] Discovered basic device **information for <Device model='TS004F' manuf='_TZ3000_kjfzuycl' nwk=0xE2E2 ieee=e0:79:8d:ff:fe:c1:11:f8 is_initialized=True>**
2023-07-26 12:02:05.543 DEBUG (MainThread) [zigpy.application] Device is initialized <Device model='TS004F' manuf='_TZ3000_kjfzuycl' nwk=0xE2E2 ieee=e0:79:8d:ff:fe:c1:11:f8 is_initialized=True>
2023-07-26 12:02:05.546 DEBUG (MainThread) [zigpy.quirks.registry] Checking quirks for _TZ3000_kjfzuycl TS004F (e0:79:8d:ff:fe:c1:11:f8)
2023-07-26 12:02:05.546 DEBUG (MainThread) [zigpy.quirks.registry] Considering <class 'zhaquirks.tuya.ts004f.TuyaSmartRemote004F'>
**2023-07-26 12:02:05.547 DEBUG (MainThread) [zigpy.quirks.registry] Fail because input cluster mismatch on at least one endpoint**
**2023-07-26 12:02:05.548 DEBUG (MainThread) [zigpy.quirks.registry] Considering <class 'zhaquirks.xiaomi.aqara.opple_switch.XiaomiOpple2ButtonSwitchFace2'>**
**2023-07-26 12:02:05.548 DEBUG (MainThread) [zigpy.quirks.registry] Fail because endpoint list mismatch: {1, 2, 242} {1}**
**2023-07-26 12:02:05.548 DEBUG (MainThread) [zigpy.quirks.registry] Considering <class 'zhaquirks.xiaomi.aqara.opple_switch.XiaomiOpple2ButtonSwitchFace1'>**
**2023-07-26 12:02:05.549 DEBUG (MainThread) [zigpy.quirks.registry] Fail because endpoint list mismatch: {1, 2, 41, 42, 242, 51, 21, 31} {1}**
2023-07-26 12:02:05.549 DEBUG (MainThread) [zigpy.quirks.registry] Considering <class 'zhaquirks.xbee.xbee_io.XBeeSensor'>
2023-07-26 12:02:05.549 DEBUG (MainThread) [zigpy.quirks.registry] Fail because endpoint list mismatch: {232, 230} {1}
2023-07-26 12:02:05.549 DEBUG (MainThread) [zigpy.quirks.registry] Considering <class 'zhaquirks.xbee.xbee3_io.XBee3Sensor'>
2023-07-26 12:02:05.550 DEBUG (MainThread) [zigpy.quirks.registry] Fail because endpoint list mismatch: {232, 230} {1}
2023-07-26 12:02:05.550 DEBUG (MainThread) [zigpy.quirks.registry] Considering <class 'zhaquirks.tuya.ts0201.MoesTemperatureHumidtySensorWithScreen'>
2023-07-26 12:02:05.550 DEBUG (MainThread) [zigpy.quirks.registry] Fail because device_type mismatch on at least one endpoint
2023-07-26 12:02:05.550 DEBUG (MainThread) [zigpy.quirks.registry] Considering <class 'zhaquirks.smartthings.tag_v4.SmartThingsTagV4'>
2023-07-26 12:02:05.551 DEBUG (MainThread) [zigpy.quirks.registry] Fail because device_type mismatch on at least one endpoint
2023-07-26 12:02:05.551 DEBUG (MainThread) [zigpy.quirks.registry] Considering <class 'zhaquirks.smartthings.multi.SmartthingsMultiPurposeSensor'>
2023-07-26 12:02:05.551 DEBUG (MainThread) [zigpy.quirks.registry] Fail because device_type mismatch on at least one endpoint
2023-07-26 12:02:05.551 DEBUG (MainThread) [zigpy.quirks.registry] Considering <class 'zhaquirks.netvox.z308e3ed.Z308E3ED'>
2023-07-26 12:02:05.552 DEBUG (MainThread) [zigpy.quirks.registry] Fail because device_type mismatch on at least one endpoint
2023-07-26 12:02:05.552 DEBUG (MainThread) [zigpy.quirks.registry] Considering <class 'zhaquirks.gledopto.soposhgu10.SoposhGU10'>
2023-07-26 12:02:05.552 DEBUG (MainThread) [zigpy.quirks.registry] Fail because endpoint list mismatch: {11, 13} {1}
2023-07-26 12:02:05.556 INFO (MainThread) [homeassistant.components.zha.core.endpoint] Creating cluster handler for cluster id: 0 class: <class 'homeassistant.components.zha.core.cluster_handlers.general.BasicClusterHandler'>
2023-07-26 12:02:05.557 INFO (MainThread) [homeassistant.components.zha.core.endpoint] Creating cluster handler for cluster id: 1 class: <class 'homeassistant.components.zha.core.cluster_handlers.general.PowerConfigurationClusterHandler'>
2023-07-26 12:41:56.183 INFO (MainThread) [homeassistant.components.zha.core.endpoint] Creating cluster handler for cluster id: 57345 class: <class 'homeassistant.components.zha.core.cluster_handlers.ClusterHandler'>
2023-07-26 12:41:56.184 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] Discovering entities for endpoint: e0:79:8d:ff:fe:c1:11:f8-1
2023-07-26 12:41:56.189 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] 'button' component -> 'ZHAIdentifyButton' using ['identify']
2023-07-26 12:41:56.190 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] 'sensor' component -> 'Battery' using ['power']
2023-07-26 12:41:56.190 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] 'sensor' component -> 'RSSISensor' using ['basic']
2023-07-26 12:41:56.193 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] 'sensor' component -> 'LQISensor' using ['basic']
2023-07-26 12:41:56.197 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] 'select' component -> 'ZHAStartupOnOffSelectEntity' using ['on_off']
2023-07-26 12:41:56.199 DEBUG (MainThread) [homeassistant.components.zha.core.gateway] device - 0xE2E2:e0:79:8d:ff:fe:c1:11:f8 entering async_device_initialized - is_new_join: True
2023-07-26 12:41:56.199 DEBUG (MainThread) [homeassistant.components.zha.core.gateway] device - 0xE2E2:e0:79:8d:ff:fe:c1:11:f8 has joined the ZHA zigbee network
2023-07-26 12:41:56.200 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xE2E2](TS004F): started configuration
2023-07-26 12:41:56.201 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0xE2E2:ZDO](TS004F): 'async_configure' stage succeeded
2023-07-26 12:41:56.214 DEBUG (MainThread) [zigpy.appdb] Error handling '_save_attribute' event with (e0:79:8d:ff:fe:c1:11:f8, 1, 0, 4, '_TZ3000_kjfzuycl') params: FOREIGN KEY constraint failed
2023-07-26 12:41:56.216 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0xE2E2:1:0x0000]: Configuring cluster attribute reporting
2023-07-26 12:41:56.217 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0xE2E2:1:0x0000]: finished cluster handler configuration
2023-07-26 12:41:56.217 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0xE2E2:1:0x0003]: Configuring cluster attribute reporting
2023-07-26 12:41:56.218 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0xE2E2:1:0x0003]: finished cluster handler configuration
2023-07-26 12:41:56.218 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0xE2E2:1:0x0001]: Performing cluster binding

Hi All

I believe the issue is here but I don’t know what to do now, maybe report a bug to the zigpy GitHub?

07-26 12:02:05.552 DEBUG (MainThread) [zigpy.quirks.registry] Fail because endpoint list mismatch: {11, 13} {1}

Hi Again

Interesting: my device was recognized as a TS004F and when I Google it, seems it is a
Dimmer Switch with these actions: On/Off, Move±, Step±, Stop

Could be that the manufacturer did flash with the wrong firmware?

did you find a fix for this issue