moritzmhmk / homebridge-camera-rpi

raspberry pi camera plugin for homebridge
MIT License
159 stars 29 forks source link

Rich notification #31

Closed tokamac closed 6 years ago

tokamac commented 6 years ago

I'm trying to enable this kind of "rich notification" on the iPhone, which sends a notification containing a still image taken by the camera each time a sensor (e.g. a motion sensor) located in the same room is triggered. If a smartlock is present, there is also a button in the rich notification to unlock the door. Same thing to start an audio conversation (intercom) if mic & speaker are present.

rich_notification

Of course my idea is to couple a sensor with my dummy doorbell. For now I am only trying to trigger the still picture. So far with no success: although the pi camera appears in Home, it is not listed as an accessory, hence it cannot be selected in the automation panel.

Any clue?

eerickson commented 6 years ago

I'm interested in something similar. I have a PIR and camera in the same room and when the PIR detects motion I get a notification but no image. I've read that at least with other camera plugins an image is sent with the notification.

Is this possible with this plugin? Maybe I have something not quite setup?

moritzmhmk commented 6 years ago

Notifications (from doorbell or motion sensors) automatically become "rich" when you place a camera in the same room in the Home App.

tokamac commented 6 years ago

That's my understanding as well, but actually it does not work. My motion sensor and my pi camera are in the same room "hallway" in Home, but the motion sensor does not trigger a rich notification, only a standard notification with no image. iOS 11.3.1

Squuiid commented 6 years ago

@tokamac Perhaps its a bug in 11.3.1? You could try the public beta of 11.4, currently at b6 I believe (or wait for 11.4 final and see). I too am very interested in this working but I'm still waiting on my Pi3 B+ order to arrive. Will let you know how I get on once up and running.

UPDATE: I'm seeing the same issue. No rich notifications available unfortunately.

moritzmhmk commented 6 years ago

I tested this and it works fine most of the time. I guess that when the notification is not "rich" the camera was to slow.

Reopen if the issue persists.