# SONOFF Zigbee Human Presence Sensor | SNZB-06P

**URL:** <https://community.homey.app/t/sonoff-zigbee-human-presence-sensor-snzb-06p/96391>\
**Category:** Devices\
**Tags:** zigbee, presence, homey-pro\
**Created:** [November 30, 2023, 10:04pm UTC](https://community.homey.app/t/sonoff-zigbee-human-presence-sensor-snzb-06p/96391 "2023-11-30T22:04:30Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ricardo\_Santos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ricardo_santos/32/79224_2.png) [@Ricardo\_Santos](https://community.homey.app/u/Ricardo_Santos)\
**Post date:** [November 30, 2023, 10:04pm UTC](https://community.homey.app/t/sonoff-zigbee-human-presence-sensor-snzb-06p/96391/1 "2023-11-30T22:04:30Z")

</div>

Hi, all,

Sonoff just released this mmWave occupancy sensor. Do you know if it will be supported in Homey pro?

(Just thinking that I need to know how to use the SDK to add new devices 🙂 )

Cheers,  
Ricardo

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [December 1, 2023, 2:43am UTC](https://community.homey.app/t/sonoff-zigbee-human-presence-sensor-snzb-06p/96391/2 "2023-12-01T02:43:14Z")

</div>

Not by itself most probably.  
There’s one sonoff app, but I think it’s not actively maintained.  
So I think building a driver (app) yourself is one way to do it.

Or, while it’s supported by zha / zigbee2mqtt

 ![Screenshot_20231201-034454_Chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/3/73a7378760fdd074691c816392bc9b45cd70a1a1.jpeg)

You can install homeassistant with the zigbee2mqtt add-on OR the zha integration on an (old) Rpi or thin client. With the [Home Assistant Community app](https://community.homey.app/t/app-pro-home-assistant-community-app/71477) you can add the sensor to Homey, like right away.

Or install zigbee2mqtt on an (old) Rpi or thin client. Together with the [Zigbee2mqtt app](https://community.homey.app/t/app-pro-zigbee2mqtt/83214) you possibly can add the sensor to Homey. If not, you can ask nicely to the dev Robin to add support for this sensor, and donate him some of those presence sensors 😊

---

<div class="post-metadata">

**Author:** ![Ricardo\_Santos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ricardo_santos/32/79224_2.png) [@Ricardo\_Santos](https://community.homey.app/u/Ricardo_Santos)\
**Post date:** [December 1, 2023, 9:30am UTC](https://community.homey.app/t/sonoff-zigbee-human-presence-sensor-snzb-06p/96391/3 "2023-12-01T09:30:44Z")

</div>

Thanks, @Peter_Kawa for the detailed reply.

I have HA running on my NAS so I’ll probably follow your suggestion. I may also adventure myself into writing a driver and learn along the way.

Cheers,  
Ricardo

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [December 2, 2023, 4:23pm UTC](https://community.homey.app/t/sonoff-zigbee-human-presence-sensor-snzb-06p/96391/4 "2023-12-02T16:23:52Z")

</div>

> [@Ricardo\_Santos](#):
>
> I need to know how to use the SDK to add new devices 🙂

> **[Home - Homey Apps SDK v3](https://apps-sdk-v3.developer.homey.app/index.html)**

---

<div class="post-metadata">

**Author:** ![Ricardo\_Santos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ricardo_santos/32/79224_2.png) [@Ricardo\_Santos](https://community.homey.app/u/Ricardo_Santos)\
**Post date:** [December 2, 2023, 4:39pm UTC](https://community.homey.app/t/sonoff-zigbee-human-presence-sensor-snzb-06p/96391/5 "2023-12-02T16:39:51Z")

</div>

Thanks, @JPe4619. That’s quite a good info repo.  
I’ll probably give it a try as soon as I receive the sensor.

Thanks again.

Cheers,  
Ricardo

---

<div class="post-metadata">

**Author:** ![Mike\_Breault](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mike_breault/32/80103_2.png) [@Mike\_Breault](https://community.homey.app/u/Mike_Breault)\
**Post date:** [December 7, 2023, 6:26pm UTC](https://community.homey.app/t/sonoff-zigbee-human-presence-sensor-snzb-06p/96391/6 "2023-12-07T18:26:37Z")

</div>

i just received 2 of these sensors, i wish they would integrate them into Homey

---

<div class="post-metadata">

**Author:** ![Ricardo\_Santos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ricardo_santos/32/79224_2.png) [@Ricardo\_Santos](https://community.homey.app/u/Ricardo_Santos)\
**Post date:** [December 7, 2023, 6:47pm UTC](https://community.homey.app/t/sonoff-zigbee-human-presence-sensor-snzb-06p/96391/7 "2023-12-07T18:47:34Z")

</div>

Indeed. I’m still waiting for mine (coming from china…) but when it arrives I may give it a shot at developing the driver for it. If that happens I’ll let it be known on this thread.

---

<div class="post-metadata">

**Author:** ![Boechie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/boechie/32/29808_2.png) [@Boechie](https://community.homey.app/u/Boechie)\
**Post date:** [December 8, 2023, 1:16am UTC](https://community.homey.app/t/sonoff-zigbee-human-presence-sensor-snzb-06p/96391/8 "2023-12-08T01:16:05Z")

</div>

@Ricardo_Santos @Peter_Kawa I do think the Sonoff Zigbee app is actively maintained. It is just that there weren’t that many new Sonoff Zigbee devices to be added lately. Also I’m sure that the developer @johan_bendz is quite busy maintaining the Tuya Zigbee app.

I think there are 2 much simpler ways to have the SNZB-06P device supported:

1. It could be added as a supported device in the Sonoff Zigbee app. The amount of work depends on the exact Zigbee clusters it supports. Unfortunately the code for this app is not on Github, but I’m quite sure it is a spin off of the Tuya Zigbee app. At least it is the same developer that built both apps. Further see 2.
2. It could be added as a supported device in the Tuya Zigbee app. From the specs of your device I think that it has the same Zigbee clusters as the existing Radar Sensor that is supported in the **Test version** of the Tuya Zigbee app. You could first try to install that from this url: [Tuya Zigbee | Homey](https://homey.app/nl-nl/app/com.tuya.zigbee/Tuya-Zigbee/test/) (append /test to the url)  
It might work, but if that doesn’t work, you could request support for the device by creating a Github issue. **Please read the first post of [this topic](https://community.homey.app/t/app-pro-tuya-zigbee-app/26439) carefully**. You need to do some home work for that. 😉 Maybe @johan_bendz decides to also add that to the Sonoff Zigbee app.

Good luck!

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [December 8, 2023, 1:58am UTC](https://community.homey.app/t/sonoff-zigbee-human-presence-sensor-snzb-06p/96391/9 "2023-12-08T01:58:18Z")

</div>

@Boechie Oww my bad, I checked the wrong Sonoff app as it appears. The wifi version.

---

<div class="post-metadata">

**Author:** ![Mike\_Breault](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mike_breault/32/80103_2.png) [@Mike\_Breault](https://community.homey.app/u/Mike_Breault)\
**Post date:** [December 8, 2023, 5:59am UTC](https://community.homey.app/t/sonoff-zigbee-human-presence-sensor-snzb-06p/96391/10 "2023-12-08T05:59:00Z")

</div>

if they got this device to work in Smartthings, someone should be able to get it working in Homey

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [December 8, 2023, 6:59am UTC](https://community.homey.app/t/sonoff-zigbee-human-presence-sensor-snzb-06p/96391/11 "2023-12-08T06:59:54Z")

</div>

> [@Mike\_Breault](#):
>
> someone should be able to get it working in Homey

The issue isn’t that it isn’t possible, the issue is that most community app developers have a chronic lack of time.

---

<div class="post-metadata">

**Author:** ![Ricardo\_Santos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ricardo_santos/32/79224_2.png) [@Ricardo\_Santos](https://community.homey.app/u/Ricardo_Santos)\
**Post date:** [December 29, 2023, 9:27am UTC](https://community.homey.app/t/sonoff-zigbee-human-presence-sensor-snzb-06p/96391/12 "2023-12-29T09:27:47Z")

</div>

Hi,

Here’s an update after getting it to work in Homey.

**1) Pairing**  
I paired the sensor with HomeAssistant (via Sonoff Zigbee Dongle 3.0 / ZHA). This was pretty straightforward.  
Details here:  
[How SONOFF Works with Home Assistant - SONOFF Official](https://sonoff.tech/product-review/how-sonoff-works-with-home-assistant/)

Just a note: I did not use the Sonoff app eWeLink. I added the sensor directly in HA.

**2) Firmware Upgrade**  
The factory firmware version was 1.0.3, which seems to be buggy according to online feedback.  
I upgraded the firmware to 1.0.5 via HA by following the official Sonoff docs, here:  
[SNZB-06P Firmware Upgrade and Home Assistant Operation Guide - SONOFF Official](https://sonoff.tech/product-review/tutorial/snzb-06p-firmware-upgrade-and-home-assistant-operation-guide/)

**3) From HA to Homey**  
I installed the HomeAssistant App in Homey and added a new Device. The Sensor was immediately “discovered” and easily added to Homey.

**4) Capabilities**  
The sensor has two main capabilities: motion alarm (alarm\_occupancy) and occupancy alarm (alarm\_motion)

In HA:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/6/366f87433e5daf59ab237e0e07c328938bec4740.png)

In Homey:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/f/bfceb03876bcd694de01925b5fd8409f6594f8f1.png)

As seen in the images above, only the Occupancy alarm is triggered. The motion alarm was never triggered.

**5) Available cards in Homey**  
Unfortunately, in Homey flows there’s only a ‘When’ card for Motion alarm and not for Occupancy alarm.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/1/f13104803e7c73a74149120d36f321b3942a2955.png)

This meant I could not create a simple flow to turn on a light when the occupancy alarm was triggered.

**6) Workaround**  
The workaround was to create an advanced flow, in which I can use a ‘And’ Logic card to check the Occupancy alarm state every second.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/2/92e78fb96779da79491b2ba5eedc40eae264a866.png)

This works well. Not the “nicest” approach as it’s a periodic-status-check instead of event triggered, but it’s the simpler I could find without having to go into HomeyScript or developing an App (I’m a newbie to Homey).

I hope this can help whoever may need to use this sensor before it’s supported in an App.

Cheers,  
Ricardo

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [December 29, 2023, 10:46am UTC](https://community.homey.app/t/sonoff-zigbee-human-presence-sensor-snzb-06p/96391/13 "2023-12-29T10:46:22Z")

</div>

> [@Ricardo\_Santos](#):
>
> to check the Occupancy alarm state every second.

Be aware that Homey may choose to rate-limit your flow if it thinks it gets called too often.

Since you’re using Home Assistant, there are other ways to get it working that will be push (event-based), not pull, like creating a Home Assistant automation that gets triggered on occupancy (or motion) and will execute a webhook call to Homey.

---

<div class="post-metadata">

**Author:** ![Ricardo\_Santos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ricardo_santos/32/79224_2.png) [@Ricardo\_Santos](https://community.homey.app/u/Ricardo_Santos)\
**Post date:** [December 29, 2023, 11:12am UTC](https://community.homey.app/t/sonoff-zigbee-human-presence-sensor-snzb-06p/96391/14 "2023-12-29T11:12:16Z")

</div>

Thanks, @robertklep

So far, it’s been working fine, but thanks for the heads-up wrt rate-limiting.

Indeed, the approach you mention in HA is better. But I want to limit the dependencies on HA as much as possible and use it only as a “bridge”, without any logic or automations in it.

I’ll either patiently wait for this sensor to be available in an Homey App or adventure myself in developing one if I can find the time and state-of-mind to learn it.

Thanks again for the insights.

Cheers,  
Ricardo

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [December 29, 2023, 10:00pm UTC](https://community.homey.app/t/sonoff-zigbee-human-presence-sensor-snzb-06p/96391/15 "2023-12-29T22:00:59Z")

</div>

> [@Ricardo\_Santos](#):
>
> motion alarm (alarm\_occupancy)
> 
> The motion alarm was never triggered.

Because `alarm_occupancy` is not a valid Homey capability…

Ditch the Athom HA app 🤭😬  
The following is only possible with the very cool [Home Assistant Community app:](https://community.homey.app/t/app-pro-home-assistant-community-app/71477)  
(_installable side-by-side with the Athom HA app_)  
It most probably gets it right when you add a new HA sensor. When it doesn’t, no worries;  
Just edit the device in Homey, and add the motion capability again (maybe it has to be removed prior to adding)  
Make sure to use `alarm_motion` as Homey capability.  
Xmpl:

> ![Screenshot_20231229-225955_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/6/76b1ccfa89b6cc56caf8ce83b4215f40a76913c4.jpeg)

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [December 29, 2023, 10:16pm UTC](https://community.homey.app/t/sonoff-zigbee-human-presence-sensor-snzb-06p/96391/16 "2023-12-29T22:16:59Z")

</div>

As suggestey by @Peter_Kawa and using the HA community app:  
If the HA entities device\_class is ‘occupancy’, then it’s added with alarm\_motion capability when adding it as sensor device to Homey (the simple way). Peter is showing the more complex way of adding an entity to an existing device (like custom device).

---

<div class="post-metadata">

**Author:** ![Ricardo\_Santos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ricardo_santos/32/79224_2.png) [@Ricardo\_Santos](https://community.homey.app/u/Ricardo_Santos)\
**Post date:** [December 29, 2023, 10:24pm UTC](https://community.homey.app/t/sonoff-zigbee-human-presence-sensor-snzb-06p/96391/17 "2023-12-29T22:24:19Z")

</div>

Thanks, @Peter_Kawa and @RonnyW. I was not aware of that App! I’ll try it out and let you know.  
Thanks for mentioning it.

Cheers,  
Ricardo

---

<div class="post-metadata">

**Author:** ![Ricardo\_Santos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ricardo_santos/32/79224_2.png) [@Ricardo\_Santos](https://community.homey.app/u/Ricardo_Santos)\
**Post date:** [January 2, 2024, 6:56pm UTC](https://community.homey.app/t/sonoff-zigbee-human-presence-sensor-snzb-06p/96391/18 "2024-01-02T18:56:58Z")

</div>

Hi,

I have developed the driver for this sensor based of the [athombv/node-homey-zigbeedriver: Generic class to map ZigBee Endpoints/Clusters to Homey capabilities (github.com)](https://github.com/athombv/node-homey-zigbeedriver).

@johan_bendz I’m glad to send you the four source files in case you want to add it to your SONOFF ZIGBEE app.

I believe SONOFF will release a new firmware in the coming weeks unlocking more functionalitites, but for now it’s working great with basic motion detection and already with two flows controlling the lights in my office room.

Cheers,  
Ricardo

---

<div class="post-metadata">

**Author:** ![Mr.K](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mr.k/32/71050_2.png) [@Mr.K](https://community.homey.app/u/Mr.K)\
**Post date:** [January 6, 2024, 10:12am UTC](https://community.homey.app/t/sonoff-zigbee-human-presence-sensor-snzb-06p/96391/19 "2024-01-06T10:12:02Z")

</div>

Hi @Ricardo_Santos

Sounds very good. Where can we get your driver?

Best,  
Marcus

---

<div class="post-metadata">

**Author:** ![Ricardo\_Santos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ricardo_santos/32/79224_2.png) [@Ricardo\_Santos](https://community.homey.app/u/Ricardo_Santos)\
**Post date:** [January 6, 2024, 11:51am UTC](https://community.homey.app/t/sonoff-zigbee-human-presence-sensor-snzb-06p/96391/20 "2024-01-06T11:51:54Z")

</div>

Hi, @Mr.K

I tried to get it added to the existing Sonoff ZigBee community app, but got no replies from the developer so far. I’ll initiate now the process of publishing a dedicated app with this driver. I already have part of the required images and I plan to submit it in the coming week or so.

I’ll post here as soon as it becomes available.

Cheers,  
Ricardo

[Next page](https://community.homey.app/t/sonoff-zigbee-human-presence-sensor-snzb-06p/96391.md?page=2)
