You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently got some "Tuya PIR Sensors" from Ali express. They connect fine and work fine for a few hours then it's almost as if they got into a sleep and then become unavailable in HA. If you walk past them they flash red to indicate they have detected motion but as they appear to be in a sleep HA side they don't report that motion back to HA.
Solution description
I'd like to be able to control a few things -
Always on - Stop it going into a sleep and becoming unavailable in HA (seems to be currently 4/5 hours)
Adjust time out time - Currently think its 90 seconds would like to lower this to 30
Sensitivity - Would like to adjust the sensitivity, if I run past these on a brisk walk they dont pick up my motion
Device Information
[zha-01J4VE8VBTT0XZX55XN045BEXA-_TZ3000_o4mkahkc TS0202-4c3264f54c0a06583c77d31ede08040b.json](https://github.com/user-attachments/files/18436196/zha-01J4VE8VBTT0XZX55XN045BEXA-_TZ3000_o4mkahkc.TS0202-4c3264f54c0a06583c77d31ede08040b.json)
### Logs
Logs
[Pastethelogshere]
Custom quirk
Custom Quirks
"""Tuya PIR motion sensor."""
from zigpy.profiles import zha
from zigpy.quirks import CustomDevice
import zigpy.types as t
from zigpy.zcl.clusters.general import (
Basic,
Identify,
OnOff,
Ota,
PowerConfiguration,
Time,
)
from zigpy.zcl.clusters.lightlink import LightLink
from zigpy.zcl.clusters.security import IasZone
I have currently got a quirk setup for these which doesn't seem to make any difference so not sure if that shows in the logs or not but have pasted it above
The text was updated successfully, but these errors were encountered:
Problem description
I recently got some "Tuya PIR Sensors" from Ali express. They connect fine and work fine for a few hours then it's almost as if they got into a sleep and then become unavailable in HA. If you walk past them they flash red to indicate they have detected motion but as they appear to be in a sleep HA side they don't report that motion back to HA.
Solution description
I'd like to be able to control a few things -
Screenshots/Video
Screenshots/Video
[Paste/upload your media here]
Device signature
Device Signature
{ "node_descriptor": { "logical_type": 2, "complex_descriptor_available": 0, "user_descriptor_available": 0, "reserved": 0, "aps_flags": 0, "frequency_band": 8, "mac_capability_flags": 128, "manufacturer_code": 4417, "maximum_buffer_size": 66, "maximum_incoming_transfer_size": 66, "server_mask": 10752, "maximum_outgoing_transfer_size": 66, "descriptor_capability_field": 0 }, "endpoints": { "1": { "profile_id": "0x0104", "device_type": "0x0402", "input_clusters": [ "0x0000", "0x0001", "0x0003", "0x0500" ], "output_clusters": [ "0x0006", "0x000a", "0x0019", "0x1000" ] } }, "manufacturer": "_TZ3000_o4mkahkc", "model": "TS0202", "class": "ts0202.PirMotion" }Diagnostic information
Device Information
[zha-01J4VE8VBTT0XZX55XN045BEXA-_TZ3000_o4mkahkc TS0202-4c3264f54c0a06583c77d31ede08040b.json](https://github.com/user-attachments/files/18436196/zha-01J4VE8VBTT0XZX55XN045BEXA-_TZ3000_o4mkahkc.TS0202-4c3264f54c0a06583c77d31ede08040b.json)Logs
Custom quirk
Custom Quirks
"""Tuya PIR motion sensor."""from zigpy.profiles import zha
from zigpy.quirks import CustomDevice
import zigpy.types as t
from zigpy.zcl.clusters.general import (
Basic,
Identify,
OnOff,
Ota,
PowerConfiguration,
Time,
)
from zigpy.zcl.clusters.lightlink import LightLink
from zigpy.zcl.clusters.security import IasZone
from zhaquirks.const import (
DEVICE_TYPE,
ENDPOINTS,
INPUT_CLUSTERS,
MODELS_INFO,
OUTPUT_CLUSTERS,
PROFILE_ID,
)
class SensitivityLevel(t.enum8):
"""Sensitivity level enum."""
class OnTimeValues(t.enum8):
"""Sensitivity level enum."""
class PirSensor(IasZone):
"""IasZone with extra attributes."""
class PirMotion(CustomDevice):
"""Tuya PIR motion sensor."""
Additional information
I have currently got a quirk setup for these which doesn't seem to make any difference so not sure if that shows in the logs or not but have pasted it above
The text was updated successfully, but these errors were encountered: