zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

PIR Sensor CR0202 Tuya occupancy false

Open c0dr1ver opened this issue 4 years ago • 3 comments

What happened?

Tuya CR0202 motion sensor change occupancy to 'false' after occupancy_timeout is expired, but "last seen" value not changed

MQTT publish: topic 'zigbee2mqtt/EntranceDD', payload '{"battery":100,"battery_low":false,"device":{"applicationVersion":68,"friendlyName":"EntranceDD","ieeeAddr":"0x847127fffe219a0a","manufacturerID":0,"manufacturerName":"_TYZB01_jytabjkb","model":"TS0202_CR","networkAddress":45129,"powerSource":"Battery","type":"EndDevice","zclVersion":3},"last_seen":"2022-02-22T15:05:30.292Z","linkquality":61,"occupancy":true,"tamper":false}'
Info MQTT publish: topic 'zigbee2mqtt/EntranceDD', payload '{"battery":100,"battery_low":false,"device":{"applicationVersion":68,"friendlyName":"EntranceDD","ieeeAddr":"0x847127fffe219a0a","manufacturerID":0,"manufacturerName":"_TYZB01_jytabjkb","model":"TS0202_CR","networkAddress":45129,"powerSource":"Battery","type":"EndDevice","zclVersion":3},"last_seen":"2022-02-22T15:05:30.292Z","linkquality":61,"occupancy":false,"tamper":false}'

The problem is compounded by the fact that the sensor does not send a new value until the movement physically stops. I bought 2 sensors and both work the same way

are there any differences between TS0202_CR and TS0202 ?

What did you expect to happen?

No response

How to reproduce it (minimal and precise)

No response

Zigbee2MQTT version

1.23

Adapter firmware version

20211114

Adapter

zStack3x0

Debug log

No response

c0dr1ver avatar Feb 23 '22 12:02 c0dr1ver

If I'm not wrong, the false is sent by zigbee2mqtt with a timeout over the last true... So the last seen is correct because the device has not been seen since the true.

McGiverGim avatar Feb 23 '22 18:02 McGiverGim

If I'm not wrong, the false is sent by zigbee2mqtt with a timeout over the last true... So the last seen is correct because the device has not been seen since the true.

So think I, but if I set occupancy_timeout for example 3 minutes it's didn't solve the problem if motion continious. How I can recieve true info from sensor when motion is false

c0dr1ver avatar Feb 23 '22 18:02 c0dr1ver

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Mar 26 '22 00:03 github-actions[bot]