Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Device Support Request: Tuya WiFi/Zigbee Human Presence Sensor MmWave Radar Detector (ZigBee version) #2004

Closed
AndySymons opened this issue Dec 10, 2022 · 2 comments
Labels
stale Issue is inactivate and might get closed soon Tuya Request/PR regarding a Tuya device waiting for reply Waiting for a reply (e.g. to test a custom quirk)

Comments

@AndySymons
Copy link

The device "Tuya WiFi/Zigbee Human Presence Sensor MmWave Radar Detection" (ZigBee version) is recognised by ZHA but has no entities.

Could you make this a ZHA supported device?

Zigbee device signature
{
  "node_descriptor": "NodeDescriptor(logical_type=<LogicalType.Router: 1>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress|RxOnWhenIdle|MainsPowered|FullFunctionDevice: 142>, 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=False, *is_full_function_device=True, *is_mains_powered=True, *is_receiver_on_when_idle=True, *is_router=True, *is_security_capable=False)",
  "endpoints": {
    "1": {
      "profile_id": 260,
      "device_type": "0x0051",
      "in_clusters": [
        "0x0000",
        "0x0004",
        "0x0005",
        "0xef00"
      ],
      "out_clusters": [
        "0x000a",
        "0x0019"
      ]
    },
    "242": {
      "profile_id": 41440,
      "device_type": "0x0061",
      "in_clusters": [],
      "out_clusters": [
        "0x0021"
      ]
    }
  },
  "manufacturer": "_TZE200_0u3bj3rc",
  "model": "TS0601",
  "class": "zigpy.device.Device"
}
Diagnostic information
{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2022.12.1",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.10.7",
    "docker": true,
    "arch": "x86_64",
    "timezone": "Europe/London",
    "os_name": "Linux",
    "os_version": "5.15.74",
    "supervisor": "2022.11.2",
    "host_os": "Home Assistant OS 9.3",
    "docker_version": "20.10.18",
    "chassis": "embedded",
    "run_as_root": true
  },
  "custom_components": {
    "alexa_media": {
      "version": "4.3.2",
      "requirements": [
        "alexapy==1.26.4",
        "packaging>=20.3",
        "wrapt>=1.12.1"
      ]
    },
    "localtuya": {
      "version": "4.1.1",
      "requirements": []
    },
    "better_thermostat": {
      "version": "1.0.0-beta50",
      "requirements": []
    },
    "hacs": {
      "version": "1.28.4",
      "requirements": [
        "aiogithubapi>=22.2.4"
      ]
    },
    "webrtc": {
      "version": "v2.3.1",
      "requirements": []
    },
    "sonoff": {
      "version": "3.3.1",
      "requirements": [
        "pycryptodome>=3.6.6"
      ]
    }
  },
  "integration_manifest": {
    "domain": "zha",
    "name": "Zigbee Home Automation",
    "config_flow": true,
    "documentation": "https://www.home-assistant.io/integrations/zha",
    "requirements": [
      "bellows==0.34.5",
      "pyserial==3.5",
      "pyserial-asyncio==0.6",
      "zha-quirks==0.0.88",
      "zigpy-deconz==0.19.2",
      "zigpy==0.52.3",
      "zigpy-xbee==0.16.2",
      "zigpy-zigate==0.10.3",
      "zigpy-znp==0.9.2"
    ],
    "usb": [
      {
        "vid": "10C4",
        "pid": "EA60",
        "description": "*2652*",
        "known_devices": [
          "slae.sh cc2652rb stick"
        ]
      },
      {
        "vid": "1A86",
        "pid": "55D4",
        "description": "*sonoff*plus*",
        "known_devices": [
          "sonoff zigbee dongle plus v2"
        ]
      },
      {
        "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",
      "@puddly"
    ],
    "zeroconf": [
      {
        "type": "_esphomelib._tcp.local.",
        "name": "tube*"
      },
      {
        "type": "_zigate-zigbee-gateway._tcp.local.",
        "name": "*zigate*"
      },
      {
        "type": "_zigstar_gw._tcp.local.",
        "name": "*zigstar*"
      }
    ],
    "dependencies": [
      "file_upload"
    ],
    "after_dependencies": [
      "onboarding",
      "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": 24793,
    "manufacturer": "_TZE200_0u3bj3rc",
    "model": "TS0601",
    "name": "_TZE200_0u3bj3rc TS0601",
    "quirk_applied": false,
    "quirk_class": "zigpy.device.Device",
    "manufacturer_code": 4417,
    "power_source": "Mains",
    "lqi": 138,
    "rssi": null,
    "last_seen": "2022-12-10T18:52:56",
    "available": true,
    "device_type": "Router",
    "signature": {
      "node_descriptor": "NodeDescriptor(logical_type=<LogicalType.Router: 1>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress|RxOnWhenIdle|MainsPowered|FullFunctionDevice: 142>, 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=False, *is_full_function_device=True, *is_mains_powered=True, *is_receiver_on_when_idle=True, *is_router=True, *is_security_capable=False)",
      "endpoints": {
        "1": {
          "profile_id": 260,
          "device_type": "0x0051",
          "in_clusters": [
            "0x0000",
            "0x0004",
            "0x0005",
            "0xef00"
          ],
          "out_clusters": [
            "0x000a",
            "0x0019"
          ]
        },
        "242": {
          "profile_id": 41440,
          "device_type": "0x0061",
          "in_clusters": [],
          "out_clusters": [
            "0x0021"
          ]
        }
      }
    },
    "active_coordinator": false,
    "entities": [],
    "neighbors": [],
    "routes": [],
    "endpoint_names": [
      {
        "name": "SMART_PLUG"
      },
      {
        "name": "unknown 97 device_type of 0xa1e0 profile id"
      }
    ],
    "user_given_name": "Tuya ZigBee Human Presence Sensor",
    "device_reg_id": "75228fa5eac5932502eb0c68ab537976",
    "area_id": "laboratory",
    "cluster_details": {
      "1": {
        "device_type": {
          "name": "SMART_PLUG",
          "id": 81
        },
        "profile_id": 260,
        "in_clusters": {
          "0x0004": {
            "endpoint_attribute": "groups",
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0x0005": {
            "endpoint_attribute": "scenes",
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0xef00": {
            "endpoint_attribute": null,
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0x0000": {
            "endpoint_attribute": "basic",
            "attributes": {
              "0x0001": {
                "attribute_name": "app_version",
                "value": 70
              },
              "0x0004": {
                "attribute_name": "manufacturer",
                "value": "_TZE200_0u3bj3rc"
              },
              "0x0005": {
                "attribute_name": "model",
                "value": "TS0601"
              }
            },
            "unsupported_attributes": {}
          }
        },
        "out_clusters": {
          "0x0019": {
            "endpoint_attribute": "ota",
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0x000a": {
            "endpoint_attribute": "time",
            "attributes": {},
            "unsupported_attributes": {}
          }
        }
      },
      "242": {
        "device_type": {
          "name": "unknown",
          "id": 97
        },
        "profile_id": 41440,
        "in_clusters": {},
        "out_clusters": {
          "0x0021": {
            "endpoint_attribute": "green_power",
            "attributes": {},
            "unsupported_attributes": {}
          }
        }
      }
    }
  }
}
Additional logs
2022-12-10 19:00:21.646 WARNING (MainThread) [zigpy.zcl] [0x60D9:1:0xef00] Unknown cluster command 2 b'\x00\x81\x01\x04\x00\x01\x01'
2022-12-10 19:00:21.842 WARNING (MainThread) [zigpy.zcl] [0x60D9:1:0xef00] Unknown cluster command 2 b'\x00\x81\x01\x04\x00\x01\x01'
2022-12-10 19:00:22.042 WARNING (MainThread) [zigpy.zcl] [0x60D9:1:0xef00] Unknown cluster command 2 b'\x00\x81\x01\x04\x00\x01\x01'
2022-12-10 19:00:22.243 WARNING (MainThread) [zigpy.zcl] [0x60D9:1:0xef00] Unknown cluster command 2 b'\x00\x81\x01\x04\x00\x01\x01'
2022-12-10 19:00:22.443 WARNING (MainThread) [zigpy.zcl] [0x60D9:1:0xef00] Unknown cluster command 2 b'\x00\x81\x01\x04\x00\x01\x01'
2022-12-10 19:00:22.642 WARNING (MainThread) [zigpy.zcl] [0x60D9:1:0xef00] Unknown cluster command 2 b'\x00\x81\x01\x04\x00\x01\x01'
2022-12-10 19:00:22.842 WARNING (MainThread) [zigpy.zcl] [0x60D9:1:0xef00] Unknown cluster command 2 b'\x00\x81\x01\x04\x00\x01\x01'
2022-12-10 19:00:23.042 WARNING (MainThread) [zigpy.zcl] [0x60D9:1:0xef00] Unknown cluster command 2 b'\x00\x81\x01\x04\x00\x01\x01'
2022-12-10 19:00:23.436 WARNING (MainThread) [zigpy.zcl] [0x60D9:1:0xef00] Unknown cluster command 2 b'\x00\x81e\x02\x00\x04\x00\x00\x00\x11'
2022-12-10 19:00:23.830 WARNING (MainThread) [zigpy.zcl] [0x60D9:1:0xef00] Unknown cluster command 2 b'\x00\x81f\x02\x00\x04\x00\x00\x00\x00'
2022-12-10 19:00:24.225 WARNING (MainThread) [zigpy.zcl] [0x60D9:1:0xef00] Unknown cluster command 2 b'\x00\x81g\x01\x00\x01\x01'
2022-12-10 19:00:24.753 WARNING (MainThread) [zigpy.zcl] [0x60D9:1:0xef00] Unknown cluster command 2 b'\x00\x82\x01\x04\x00\x01\x01'
2022-12-10 19:00:24.948 WARNING (MainThread) [zigpy.zcl] [0x60D9:1:0xef00] Unknown cluster command 2 b'\x00\x82\x01\x04\x00\x01\x01'
2022-12-10 19:00:25.143 WARNING (MainThread) [zigpy.zcl] [0x60D9:1:0xef00] Unknown cluster command 2 b'\x00\x82\x01\x04\x00\x01\x01'
2022-12-10 19:00:25.338 WARNING (MainThread) [zigpy.zcl] [0x60D9:1:0xef00] Unknown cluster command 2 b'\x00\x82\x01\x04\x00\x01\x01'
2022-12-10 19:00:25.534 WARNING (MainThread) [zigpy.zcl] [0x60D9:1:0xef00] Unknown cluster command 2 b'\x00\x82\x01\x04\x00\x01\x01'
2022-12-10 19:00:25.729 WARNING (MainThread) [zigpy.zcl] [0x60D9:1:0xef00] Unknown cluster command 2 b'\x00\x82\x01\x04\x00\x01\x01'
2022-12-10 19:00:25.925 WARNING (MainThread) [zigpy.zcl] [0x60D9:1:0xef00] Unknown cluster command 2 b'\x00\x82\x01\x04\x00\x01\x01'
2022-12-10 19:00:26.121 WARNING (MainThread) [zigpy.zcl] [0x60D9:1:0xef00] Unknown cluster command 2 b'\x00\x82\x01\x04\x00\x01\x01'
2022-12-10 19:00:26.317 WARNING (MainThread) [zigpy.zcl] [0x60D9:1:0xef00] Unknown cluster command 2 b'\x00\x82\x01\x04\x00\x01\x01'
2022-12-10 19:00:26.514 WARNING (MainThread) [zigpy.zcl] [0x60D9:1:0xef00] Unknown cluster command 2 b'\x00\x82\x01\x04\x00\x01\x01'
2022-12-10 19:00:26.911 WARNING (MainThread) [zigpy.zcl] [0x60D9:1:0xef00] Unknown cluster command 2 b'\x00\x82e\x02\x00\x04\x00\x00\x00\x11'
2022-12-10 19:00:27.415 WARNING (MainThread) [zigpy.zcl] [0x60D9:1:0xef00] Unknown cluster command 2 b'\x00\x82f\x02\x00\x04\x00\x00\x00\x00'
2022-12-10 19:00:27.815 WARNING (MainThread) [zigpy.zcl] [0x60D9:1:0xef00] Unknown cluster command 2 b'\x00\x82g\x01\x00\x01\x01'
2022-12-10 19:00:28.353 WARNING (MainThread) [zigpy.zcl] [0x60D9:1:0xef00] Unknown cluster command 2 b'\x00\x83\x01\x04\x00\x01\x01'
2022-12-10 19:00:28.550 WARNING (MainThread) [zigpy.zcl] [0x60D9:1:0xef00] Unknown cluster command 2 b'\x00\x83\x01\x04\x00\x01\x01'

(repeated many times)

@javicalle
Copy link
Collaborator

I suggest to you to add your device at the MmwRadarMotionGPP quirk.

Enable your local quirk folder. There's a good guide:

Copy in your folder the current ts0601_motion.py file:

Add your device signature to the MmwRadarMotionGPP quirk like:

        MODELS_INFO: [
            ("_TZE200_0u3bj3rc", "TS0601"),
            ("_TZE200_ar0slwnd", "TS0601"),
            ("_TZE200_sfiy5tfs", "TS0601"),
            ("_TZE200_mrf6vtua", "TS0601"),
        ],

Save changes, restart HA and pair the device again.
After pairing check what is working and what isn't. Check the logs for errors.
If something is missing enable the debug logs and attach the relevant info from your device:

@TheJulianJES TheJulianJES added Tuya Request/PR regarding a Tuya device waiting for reply Waiting for a reply (e.g. to test a custom quirk) labels Jan 4, 2023
@github-actions
Copy link

github-actions bot commented Jul 3, 2023

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale Issue is inactivate and might get closed soon label Jul 3, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Issue is inactivate and might get closed soon Tuya Request/PR regarding a Tuya device waiting for reply Waiting for a reply (e.g. to test a custom quirk)
Projects
None yet
Development

No branches or pull requests

3 participants