How to get your Tuya TS0601 _TZE204_mtoaryre presence sensor work in Home Assistant?
- Download the custom quirk by BlitzWolf:
[https://raw.githubusercontent.com/zigpy/zha-device-handlers/c7b130a20614e3e364c9fea023d632014a5726d1/zhaquirks/tuya/ts0601_motion.py] - Rename this file to ts0601.py
- Edit this file en search for the section TuyaMmwRadarOccupancyVariant1(CustomDevice)
- Under MODELS_INFO, add:” (“_TZE204_mtoaryre”, “TS0601”),”
EXAMPLE:
…
\ MODELS_INFO: [
("_TZE204_qasjif9e", "TS0601"),
("_TZE204_mtoaryre", "TS0601"),
],
...
- Save the file
- In Home Assistant open Settings - Add-Ons - File Editor
- Make sure you have a folder called zha_quirks , if not create it.
- Open the folder zha_quirks and Upload the file ts0601.py
- Now go up one level and open the file configuration.yaml
- Add the following section
############################################################################
# ZHA QUIRKS
############################################################################
zha:
custom_quirks_path: /config/zha_quirks
- Make sure there is a green check mark and save the file.
- Now go to Devices and remove the Tuya presence sensor if it was previously added.
- Restart Home Assistant and there should be no warnings after the restart.
- Now add the Tuya presence sensor to HA and everything should work.