Added pseudo-camera back to doorbell so the chime can be controlled. Doorbell settings are tied to the camera in home app.
authorLuke Hoersten <luke@hoersten.org>
Sat, 14 Nov 2020 10:48:00 -0600
changeset 29 04bc5820407b
parent 28 f891e481f06d
child 30 14c6ce90a512
Added pseudo-camera back to doorbell so the chime can be controlled. Doorbell settings are tied to the camera in home app.
npmjs-package/src/door.js
--- a/npmjs-package/src/door.js	Sun Aug 02 15:02:37 2020 -0500
+++ b/npmjs-package/src/door.js	Sat Nov 14 10:48:00 2020 -0600
@@ -110,6 +110,11 @@
 accessory.addService(doorbellService);
 accessory.addService(lockService);
 
+// pseudo-services
+accessory.addService(Service.CameraRTPStreamManagement, "Pseudo-Camera");
+accessory.addService(Service.Speaker, "Pseudo-Speaker");
+accessory.addService(Service.Microphone, "Pseudo-Microphone");
+
 accessory.getService(Service.AccessoryInformation)
     .setCharacteristic(Characteristic.Manufacturer, "Raspberry Pi")
     .setCharacteristic(Characteristic.Model, "Zero W")