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
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
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
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 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 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
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
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
i just received 2 of these sensors, i wish they would integrate them into Homey
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.
@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:
Good luck!
@Boechie Oww my bad, I checked the wrong Sonoff app as it appears. The wifi version.
if they got this device to work in Smartthings, 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.
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
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
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:
In Homey:
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.
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.
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
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.
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
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:
(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:
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).
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
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).
@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
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