homebridge-ring 11.4.0 → 11.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/lib/camera.js +12 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -102,9 +102,11 @@ Only include an optional parameter if you actually need it. Default behavior wit
|
|
|
102
102
|
|
|
103
103
|
### Cameras
|
|
104
104
|
|
|
105
|
+
The plugin supports all Ring camera models, as well as ONVIF cameras connected via Ring Edge
|
|
106
|
+
|
|
105
107
|
- Camera Feed
|
|
106
108
|
- Shows a snapshot from the camera while viewing the room in Home. There are limitations on when battery cameras can take snapshots. See [the Snapshot Limitations Wiki](https://github.com/dgreif/ring/wiki/Snapshot-Limitations) for details.
|
|
107
|
-
- Shows a live feed from the camera if you click on it. The feed supports video and 2-way audio, but requires that you have `ffmpeg` with `libfdk_aac` installed. A pre-built `ffmpeg` will be automatically installed on most platforms using `ffmpeg-for-homebridge`. See the [FFmpeg wiki](https://github.com/dgreif/ring/wiki/FFmpeg) for details.
|
|
109
|
+
- Shows a live feed from the camera if you click on it. The feed supports video and 2-way audio, but requires that you have `ffmpeg` with `libfdk_aac` installed. A pre-built `ffmpeg` will be automatically installed on most platforms using `ffmpeg-for-homebridge`. See the [FFmpeg wiki](https://github.com/dgreif/ring/wiki/FFmpeg) for details. 2-way audio may not work for ONVIF cameras.
|
|
108
110
|
- Motion Sensor
|
|
109
111
|
- Can be hidden with `hideCameraMotionSensor`
|
|
110
112
|
- Light (if camera is equipped)
|
package/lib/camera.js
CHANGED
|
@@ -130,12 +130,22 @@ class Camera extends _baseDataAccessory.BaseDataAccessory {
|
|
|
130
130
|
this.registerCharacteristic({
|
|
131
131
|
characteristicType: Characteristic.Manufacturer,
|
|
132
132
|
serviceType: Service.AccessoryInformation,
|
|
133
|
-
getValue: ()=>
|
|
133
|
+
getValue: (data)=>{
|
|
134
|
+
if ('metadata' in data && 'third_party_manufacturer' in data.metadata) {
|
|
135
|
+
return data.metadata.third_party_manufacturer;
|
|
136
|
+
}
|
|
137
|
+
return 'Ring';
|
|
138
|
+
}
|
|
134
139
|
});
|
|
135
140
|
this.registerCharacteristic({
|
|
136
141
|
characteristicType: Characteristic.Model,
|
|
137
142
|
serviceType: Service.AccessoryInformation,
|
|
138
|
-
getValue: (data)
|
|
143
|
+
getValue: (data)=>{
|
|
144
|
+
if ('metadata' in data && 'third_party_model' in data.metadata) {
|
|
145
|
+
return data.metadata.third_party_model;
|
|
146
|
+
}
|
|
147
|
+
return `${device.model} (${data.kind})`;
|
|
148
|
+
}
|
|
139
149
|
});
|
|
140
150
|
this.registerCharacteristic({
|
|
141
151
|
characteristicType: Characteristic.SerialNumber,
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "homebridge-ring",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.5.0",
|
|
4
4
|
"description": "Homebridge plugin for Ring doorbells, cameras, security alarm system and smart lighting",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "rm -rf lib && swc $PWD -d lib && swc homebridge-ui -d lib/homebridge-ui && mv ../homebridge-ui/build ./lib/homebridge-ui/public",
|
|
8
|
-
"lint": "eslint . --ext .ts"
|
|
8
|
+
"lint": "eslint . --ext .ts && tsc --noEmit"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@homebridge/camera-utils": "^2.2.0",
|
|
12
12
|
"@homebridge/plugin-ui-utils": "^0.0.19",
|
|
13
|
-
"ring-client-api": "11.
|
|
13
|
+
"ring-client-api": "11.5.0"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@swc/cli": "^0.1.57",
|