_TZE200_3towulqd TS0601 Tuya Motion Sensor with illuminance sensor
See original GitHub issueHello, the device is possible to connect to ZHA integration but then it is not really recognized
Device signature
{
"node_descriptor": "NodeDescriptor(logical_type=<LogicalType.EndDevice: 2>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress: 128>, manufacturer_code=4417, maximum_buffer_size=66, maximum_incoming_transfer_size=66, server_mask=10752, maximum_outgoing_transfer_size=66, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=True, *is_full_function_device=False, *is_mains_powered=False, *is_receiver_on_when_idle=False, *is_router=False, *is_security_capable=False)",
"endpoints": {
"1": {
"profile_id": 260,
"device_type": "0x0402",
"in_clusters": [
"0x0000",
"0x0001",
"0x0500"
],
"out_clusters": [
"0x000a",
"0x0019"
]
}
},
"manufacturer": "_TZE200_3towulqd",
"model": "TS0601",
"class": "zigpy.device.Device"
}
Don't remove the extra line breaks outside the ``` marks.
Diagnostic information
{
"home_assistant": {
"installation_type": "Home Assistant OS",
"version": "2022.6.1",
"dev": false,
"hassio": true,
"virtualenv": false,
"python_version": "3.9.12",
"docker": true,
"arch": "x86_64",
"timezone": "Europe/Berlin",
"os_name": "Linux",
"os_version": "5.15.41",
"supervisor": "2022.05.3",
"host_os": "Home Assistant OS 8.1",
"docker_version": "20.10.14",
"chassis": "vm",
"run_as_root": true
},
"custom_components": {
"ecowitt": {
"version": "0.7",
"requirements": [
"pyecowitt==0.14"
]
},
"frigate": {
"version": "2.3",
"requirements": []
},
"hacs": {
"version": "1.25.5",
"requirements": [
"aiogithubapi>=22.2.4"
]
},
"sonoff": {
"version": "3.0.5",
"requirements": [
"pycryptodome>=3.6.6"
]
},
"alarmo": {
"version": "v1.9.3",
"requirements": []
},
"remote_homeassistant": {
"version": "3.6",
"requirements": []
},
"ble_monitor": {
"version": "8.8.0",
"requirements": [
"pycryptodomex>=3.14.1",
"janus>=1.0.0",
"aioblescan>=0.2.12",
"btsocket>=0.2.0",
"pyric>=0.1.6.3"
]
}
},
"integration_manifest": {
"domain": "zha",
"name": "Zigbee Home Automation",
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/zha",
"requirements": [
"bellows==0.30.0",
"pyserial==3.5",
"pyserial-asyncio==0.6",
"zha-quirks==0.0.75",
"zigpy-deconz==0.16.0",
"zigpy==0.45.1",
"zigpy-xbee==0.14.0",
"zigpy-zigate==0.7.4",
"zigpy-znp==0.7.0"
],
"usb": [
{
"vid": "10C4",
"pid": "EA60",
"description": "*2652*",
"known_devices": [
"slae.sh cc2652rb stick"
]
},
{
"vid": "10C4",
"pid": "EA60",
"description": "*sonoff*plus*",
"known_devices": [
"sonoff zigbee dongle plus"
]
},
{
"vid": "10C4",
"pid": "EA60",
"description": "*tubeszb*",
"known_devices": [
"TubesZB Coordinator"
]
},
{
"vid": "1A86",
"pid": "7523",
"description": "*tubeszb*",
"known_devices": [
"TubesZB Coordinator"
]
},
{
"vid": "1A86",
"pid": "7523",
"description": "*zigstar*",
"known_devices": [
"ZigStar Coordinators"
]
},
{
"vid": "1CF1",
"pid": "0030",
"description": "*conbee*",
"known_devices": [
"Conbee II"
]
},
{
"vid": "10C4",
"pid": "8A2A",
"description": "*zigbee*",
"known_devices": [
"Nortek HUSBZB-1"
]
},
{
"vid": "0403",
"pid": "6015",
"description": "*zigate*",
"known_devices": [
"ZiGate+"
]
},
{
"vid": "10C4",
"pid": "EA60",
"description": "*zigate*",
"known_devices": [
"ZiGate"
]
},
{
"vid": "10C4",
"pid": "8B34",
"description": "*bv 2010/10*",
"known_devices": [
"Bitron Video AV2010/10"
]
}
],
"codeowners": [
"@dmulcahey",
"@adminiuga"
],
"zeroconf": [
{
"type": "_esphomelib._tcp.local.",
"name": "tube*"
},
{
"type": "_zigate-zigbee-gateway._tcp.local.",
"name": "*zigate*"
}
],
"after_dependencies": [
"usb",
"zeroconf"
],
"iot_class": "local_polling",
"loggers": [
"aiosqlite",
"bellows",
"crccheck",
"pure_pcapy3",
"zhaquirks",
"zigpy",
"zigpy_deconz",
"zigpy_xbee",
"zigpy_zigate",
"zigpy_znp"
],
"is_built_in": true
},
"data": {
"ieee": "**REDACTED**",
"nwk": 46235,
"manufacturer": "_TZE200_3towulqd",
"model": "TS0601",
"name": "_TZE200_3towulqd TS0601",
"quirk_applied": false,
"quirk_class": "zigpy.device.Device",
"manufacturer_code": 4417,
"power_source": "Battery or Unknown",
"lqi": 18,
"rssi": null,
"last_seen": "2022-06-03T19:40:04",
"available": true,
"device_type": "EndDevice",
"signature": {
"node_descriptor": "NodeDescriptor(logical_type=<LogicalType.EndDevice: 2>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress: 128>, manufacturer_code=4417, maximum_buffer_size=66, maximum_incoming_transfer_size=66, server_mask=10752, maximum_outgoing_transfer_size=66, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=True, *is_full_function_device=False, *is_mains_powered=False, *is_receiver_on_when_idle=False, *is_router=False, *is_security_capable=False)",
"endpoints": {
"1": {
"profile_id": 260,
"device_type": "0x0402",
"in_clusters": [
"0x0000",
"0x0001",
"0x0500"
],
"out_clusters": [
"0x000a",
"0x0019"
]
}
}
},
"entities": [
{
"entity_id": "binary_sensor.tze200_3towulqd_ts0601_5bc87feb_ias_zone",
"name": "_TZE200_3towulqd TS0601"
},
{
"entity_id": "sensor.tze200_3towulqd_ts0601_5bc87feb_power",
"name": "_TZE200_3towulqd TS0601"
}
],
"neighbors": [],
"endpoint_names": [
{
"name": "IAS_ZONE"
}
],
"user_given_name": null,
"device_reg_id": "c2fdfe7937f3ebd26c55aef21bd6cda7",
"area_id": "diele"
}
}
``
</details>
<details>
<summary>Additional logs</summary>
</details>

Issue Analytics
- State:
- Created a year ago
- Comments:43 (1 by maintainers)
Top Results From Across the Web
TUYA PIR Motion Sensor Review - YouTube
The TUYA PIR Motion sensor is a budget smart motion sensor compatible with TUYA, Hey! I'm Home and Smart Life accessories.
Read more >Custom ZHA quirk for Tuya ZG-204ZL motion and illuminance ...
This file should contain the quirk from this post - TZE200_3towulqd TS0601 Tuya Motion Sensor with illuminance sensor #1599 (comment) ...
Read more >Smart Sensor Solutions - Tuya Smart
Tuya focuses on providing home security sensing solutions to create a smart ... Support real-time alarm, adjust the alarm sound level and light...
Read more >Tuya Ceiling Mounted Motion & Illuminance Sensor LY-TAD ...
Model LY-TAD-K616S-ZB manufactured by Tuya. Zigbee ID: TS0601 | _TZE200_auin8mzr. Ceiling Mounted Motion & Illuminance Sensor ...
Read more >[RELEASE] Tuya Zigbee Multi-Sensor 4 In 1 (PIR motion ...
Zigbee ID: "TS0601"; "__TZE200_ztc6ggyl", "__TZE200_ikvncluo" ... Combined Radar and PIR and illuminance sensor, detects movement pretty ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Just because there is a lot going on in this thread, the current solution to this is as follows:
Create a folder for your custom quirks (I created /config/zha_quirks/)
Create a quirk/file in this directory (I followed the guide above and called it “ts0601_pirmotion.py”). This file should contain the quirk from this post - https://github.com/zigpy/zha-device-handlers/issues/1599#issuecomment-1146852599
Add the following to your config.yaml
Holy cow it’s fixed. Either through the many removals and restarts or because I changed line 92.
converter=lambda x: (10000.0 * math.log10(x) + 1.0 if x != 0 else 0),I found that version in another device handler here. I now correctly see values peaking at 1000 in the sensor.