dgreif / ring

Unofficial packages for Ring Doorbells, Cameras, Alarm System, and Smart Lighting
MIT License
1.21k stars 163 forks source link

Ring Intercom #1398

Closed Philomath88 closed 7 months ago

Philomath88 commented 8 months ago

Is there an existing issue for this?

Describe The Bug

I would like to receive the events from the Ring Intercom (the device to make an existing intercom smart). The API gets the location but does not detect the device:

Refresh token updated in .env file Found 1 location(s). Location: Home (73ee35ca-968f-499f-9b01-2d3c708cf0a2) Devices at Home:

To Reproduce

No response

Expected behavior

Should at least show the Intercom device

Relevant log output

Refresh token updated in .env file
Found 1 location(s).
Location: Home (73ee35ca-968f-499f-9b01-2d3c708cf0a2)
Devices at Home:

Screenshots

No response

Additional context

No response

OS

macOS

Node.js Version

18.6.0

NPM Version

9.5.1

ring-client-api

v1.0.0

Operating System

macOS

tsightler commented 8 months ago

It's not clear to me what code you are running, but it looks a lot like the API example code, which does not currently list intercom devices, only camera and alarm devices, but the API itself supports Intercoms for some time. Similar to cameras, intercoms are available as an array via location.intercoms property.

Philomath88 commented 7 months ago

@tsightler Thank you - how can I get a notification when a ring event occurs (someone is at my door)?

tsightler commented 7 months ago

I would suggest using the code from the Homebridge plugin as an example, see:

https://github.com/dgreif/ring/blob/main/packages/homebridge-ring/intercom.ts

Basically, subscript to onDing events and take action.

Philomath88 commented 7 months ago

Thank you @tsightler !

What I couldn't see in the example is whether it is possible to get the real-time audio and send real-time audio to the intercom - do you happen to know if that is possible?

tsightler commented 7 months ago

No, it is not possible.