brutella / hc

hc is a lightweight framework to develop HomeKit accessories in Go.
Apache License 2.0
1.74k stars 189 forks source link

doorbell implementation #176

Closed ra1nb0w closed 4 years ago

ra1nb0w commented 4 years ago

Hi, first of all, thank you to share your hard work! I am trying to implement a basic version of doorbell on my mac: camera + audio from camera + audio from ios. I am using as template your hkcam project and camera with audio from camera works fine. Now I would to move from accessory.NewCamera() to create a new accessory, something like accessory.NewDoorbell() where acc.Control = service.NewDoorbell() and then I will add IPCamera as service? Or just create two accessory and then link doorbell and IPCamera? (I am not sure about the last since I see TypeVideoDoorbell as AccessoryType ). What should be the workflow? Ps. do you know something on how to manage the audio flow from ios to camera?

thank you very much and have a nice weekend.

brutella commented 4 years ago

Please try to create a video doorbell accessory using the HomeKit Accessory Simulator (which is included in Additional Tools for Xcode 11 from https://developer.apple.com/downloads) and check which services are required for a video doorbell.

ra1nb0w commented 4 years ago

thank you very much for the answer. In the meantime, I built a working doorbell and the only things that I don't understand is how to enable the speaker audio session (ios mic). I check the simulator.