shelly-homekit doorbell

It would be cool to use a Shelly with the HomeKit Firmeware as a Doorbell like this Homebridge Plugin enables a Shelly 1 to do so: Shelly-Doorbell. I try to avoid using Homebridge so a direct integration would make perfect sense.

Asked Dec 25 '21 11:12
avatar DerKoller-eu
DerKoller-eu

20 Answer:

This sounds great. Should work like a garage door opener Shelly 1. My doorbell uses a pulse for the ring and the close Sensor should be the ring button. Ring Button is also a pulse comming to SW on Shelly 1

@rojer / @andyblac: I think this could be easy as it should only be a new Mode for Shelly 1. Am I right? By the way: Thanks again for the great work with this firmware!

1
Answered Jan 01 '21 at 20:52
avatar  of BlancoDeMallloca
BlancoDeMallloca

My doorbell uses a pulse for the ring and the close Sensor should be the ring button. Ring Button is also a pulse comming to SW on Shelly 1

My Doorbell works exactly like that and I can’t hear it when I‘m in my Cellar‘s Office. So having a ring on my HomePod would be great if someone is at the door. I also think it should just be another mode for the Shelly like the Garagedoor.

1
Answered Jan 01 '21 at 21:04
avatar  of DerKoller-eu
DerKoller-eu

I already use this. The input has to be in detached mode. And the HAP type must be set to occupancy. Then it appears in HomeKit as a sensor that can e.g. trigger your iPhone to show a notification. Additionally you can set a routine which activates a light or a bell. I have another Shelly connected to a buzzer which gets activated for two seconds (via auto off function) when the occupancy sensor gets active. So I think there is no need to do anything. Everything is already there.

1
Answered Jan 08 '21 at 12:10
avatar  of Cojaeck
Cojaeck

The advantage of Doorbell mode is that all homepods in the House ring immediately, no delay and every device in the home also immediately gets a push notification. You only need one Shelly 1 for this and also your old doorbell still rings. You also get two switches in home app to enable or disable the mechanical bell as well as the digital bell. This can be useful to disable the bells based on time, occupancy or routines.

1
Answered Jan 08 '21 at 12:32
avatar  of DerKoller-eu
DerKoller-eu

Is it possible to use it on the gate as well? I've attached a shelly 1 in parallel to the button to use it as gate opener but attaching it to the ring button would be nice!

1
Answered Jan 08 '21 at 12:45
avatar  of simonfield76
simonfield76

The advantage of Doorbell mode is that all homepods in the House ring immediately, no delay and every device in the home also immediately gets a push notification. You only need one Shelly 1 for this and also your old doorbell still rings. You also get two switches in home app to enable or disable the mechanical bell as well as the digital bell. This can be useful to disable the bells based on time, occupancy or routines.

Ok. Interesting. In my environment (no homepods) this wouldn't change anything. And the switching is done via switching routines on/off.

1
Answered Jan 08 '21 at 13:02
avatar  of Cojaeck
Cojaeck

Is it possible to use it on the gate as well? I've attached a shelly 1 in parallel to the button to use it as gate opener but attaching it to the ring button would be nice!

When you set the Input to detached you should be able to do this. Then the switch operates separated from the input (as two separate devices). But the input is not isolated (the output of a Shelly 1 is). So the input must receive a signal from the same source as the supply voltage.

1
Answered Jan 08 '21 at 13:07
avatar  of Cojaeck
Cojaeck

doorbell in HAP spec has only one required characteristic - programmable switch event, exactly the same as the stateless switch. so adding doorbell mode for input would be super easy, just a matter of plumbing. @ZeevoX this would be a good first issue to tackle on the firmware side.

1
Answered Jan 08 '21 at 17:55
avatar  of rojer
rojer

So the input must receive a signal from the same source as the supply voltage.

And as remark: As the standard doorbells often work with 12 Volt AC (in Austria at least) make sure to change that to 12 Volt DC or 24 Volt AC (If using 12 Volt DC don’t forget to set the jumper on the Shelly to the correct setting). Otherwise your Shelly gets toasted.

1
Answered Jan 08 '21 at 18:52
avatar  of DerKoller-eu
DerKoller-eu

I now have a Shelly 1 connected to receive button presses from outside and ring the doorbell. Works like a charm but needs Homebridge and some work.

I’d rather have a simpler approach using on-Shelly firmware.

1
Answered Jan 23 '21 at 18:56
avatar  of basroovers
basroovers

@ZeevoX: Could you already take a look into this? It would be great to have the doorbell mode. Thanks for your support

1
Answered Feb 06 '21 at 15:36
avatar  of BlancoDeMallloca
BlancoDeMallloca

@BlancoDeMallloca and everyone else

Regarding the support status of doorbells in HomeKit. The service type is still present on Apple's developer docs. However, it is not mentioned even once in the code for the HomeKit ADK. Back in July 2018 Apple removed the entire doorbell category from its accessory list.

I implemented a doorbell for Shelly-HomeKit but it shows up as "not supported" in the HomeKit app:

image

Apparently doorbells no longer function as stand-alone devices, they can be attached to a camera to produce a video doorbell, for reference see this issue comment on another HAP library. Or, as the HAP Specification vaguely puts it:

The Doorbell service describes a doorbell and is the primary service of the Video Doorbell Profile.

For those that have homebridge-shelly-doorbell could you share some insight on how it works with HomeKit? Does it show a blank camera stream?

1
Answered Feb 12 '21 at 16:32
avatar  of ZeevoX
ZeevoX

I would be fine if it fakes a camera somehow. I just want it for the notifications.

1
Answered Feb 12 '21 at 16:42
avatar  of basroovers
basroovers

I use https://github.com/Sunoo/homebridge-camera-ffmpeg for my Video Doorbell with a GIF stored on my raspberry pi for the image and it works well on my iPhone with iOS 14.4 (and prior versions) . It also works with a static image or with no image. You could always add a default image, one of the existing icons and maybe some text, if you can pack that into the tiny memory space. And my Video Doorbell uses a single Shelly1 to detect the doorbell button push (using a 6VAC relay connected to the doorbell buzzer which switches 220V to the SW input) and also as a door opener (using the Shelly1 relay to activate the apartment intercom Door Opener button)

1
Answered Feb 12 '21 at 16:45
avatar  of jsiegenthaler
jsiegenthaler

@ZeevoX and all: Thanks for the time spent on this issue.

For me its also fine to have a predefined image or an icon. As @basroovers already wrote the main feature is the notification.

Trank you very much

1
Answered Feb 12 '21 at 16:52
avatar  of BlancoDeMallloca
BlancoDeMallloca

For those that have homebridge-shelly-doorbell could you share some insight on how it works with HomeKit? Does it show a blank camera stream?

I attached two screenshots how it looks like in my home app.

i have a Shelly 1 with the stock firmware and Homebridge-Shelly-doorbell plug-in from @sl1nd installed.

The Bell itself doesn’t show up in HomeKit but the Homepods ring if someone pushes the button. Additionally you get two switches where I can turn the mechanical gong at my door as well as the digital gong for the HomePods on or off. Very useful for my „Good Night“ Automation. AE914940-DC68-4ED5-A139-9957F86FFC8D BD63FE2C-1359-436C-ADD4-80F6114534B5

1
Answered Feb 12 '21 at 17:08
avatar  of DerKoller-eu
DerKoller-eu

@ZeevoX The post that are you liked to is outdated or wrong, doorbells are back and they worked, only the Home app tile says unsupported. Hier is it listeded in Apple Docs https://www.apple.com/ios/home/accessories/#section-bell Screenshot 2021-02-12 at 21 52 19

The Home app says it's unsupported, but that only means there is no interface in the Home app. If you use Home+ or the Eve app you can attach automatisation for the doorbell.

And if you trigger a doorbell the Home app gives a push notification and all HomePods are plaining a doorbell sound. image The push notification cam outside the Home app, too.

1
Answered Feb 12 '21 at 21:06
avatar  of timoschilling
timoschilling

@timoschilling Yes! Thank you for pointing this out, indeed it says unsupported but pressing it causes a notification.

image

But I guess since there is no UI that means there is no switch for digital and mechanical gong like in the screenshot @DerKoller-eu posted?

1
Answered Feb 12 '21 at 21:40
avatar  of ZeevoX
ZeevoX

But I guess since there is no UI that means there is no switch for digital and mechanical gong like in the screenshot @DerKoller-eu posted?

The switch is created by the Homebridg plug-in. S as this is a nice feature I would love to see this in a Shelly HomeKit Firmware as well..

1
Answered Feb 13 '21 at 06:11
avatar  of DerKoller-eu
DerKoller-eu

@DerKoller-eu @BlancoDeMallloca i've cut 2.8.0-alpha1, please help test - https://github.com/mongoose-os-apps/shelly-homekit/issues/498

1
Answered Feb 14 '21 at 13:03
avatar  of rojer
rojer