I need a better vacancy detector

A simple and cheap Sonoff IR motion detector is working well enough to detect motion and turn the lights on. But it’s the common problem of when you are sitting motionless in a room reading, the lights go out. Yes I can set the timeout longer.

One work aroubd I thought of is to program a slow-motion dimming effect when the sensor thinks the room is vacant, then if someone is still in there they can wave a hand. But better if this is not needed.

What’s the best solution for this? millimeter wave? But I think these require AC mains power. I have Wifi, zigbee and Thread networks

My security camera will detect human-presence failrly well but I don’t want indoor cameras.

I have deployed Tuya Zigbee Human Presence Detectors around my house. They work great. Pretty cheap from Aliexpress. And yes, they are power hungry and require USB power. Placement and sensitivity adjustments take trial and error, but once you get them fine-tuned, they are a game changer.

I also have the Tuya mmwave sensor and it’s very nice. One thing to note is that it may require a special zigbee quirks file since many do not use standard zigbee methods.

Good point!
The ones I am using require this:
Quirk: TZE204_sxm7l9xa.TuyaMmwRadarOccupancyVariant2

There may be something wrong with your sensors. When I tested mine it used a few 10s of mA @ 5V. So like 150mW.

They work OOTB with Zigbee@MQtt.

I’ve never seen a battery powered mmwave occupancy sensor, only devices that must be plugged in. It definitely uses more power than a standard PIR. It actively sends out radar pulses, so it makes sense.

I’m currently testing these out myself, got them yesterday. They are battery powered.

How are those going for you? I bought a number and mine arrived this week.

Using z2m 1.36.1

So far it seems to have got stuck in this state

    "battery": 100,
    "fading_time": 30,
    "illuminance_lux": 1188,
    "indicator": "ON",
    "linkquality": 58,
    "motion_state": "large",
    "presence": true,
    "static_detection_distance": 5,
    "static_detection_sensitivity": 6

I have a zStack3x0 coordinator with firmware 20220219 (which is probably a bit old).

Not too much use as it is.

These have been working well for me (USB-C power not battery):


The athom works well https://www.aliexpress.com/item/1005005772833515.html but isn’t cheap and is USB C powered. That’s why I was hoping the battery powered ZG-204ZM would work better.

Haven’t had time to test much yet, but the one I’ve unpacked is not stuck at least. 20240321 FW on the coordinator.

Thanks. I suspect then that I need to update the coordinator firmware. Always makes me nervous.

What version of z2m are you on?

1.37.0. Be aware of the 20230507 FW, I kept getting dropped devices on that.

1 Like

Could you please be so kind to point me to the exact link to download this quirk ?
I cannot find it, the ones I found are exposing only occupancy and the best one occupancy and lumens.

The ZG-204ZM is a piece of junk.
The PIR has a very short range and the mmWave simply does not work as advertised.

Yeah I’m not too impressed with them either.