brutella / hkcam

Open-Source HomeKit Surveillance Camera
https://hochgatterer.me/hkcam/
Apache License 2.0
925 stars 141 forks source link

Connecting... on Apple Watch #14

Open RaymondMouthaan opened 5 years ago

RaymondMouthaan commented 5 years ago

Hi @brutella ,

Not sure whether HKCam should work on Apple Watch (4), but currently only Still Image seems to work, when Live video is requested, my Apple Watch remains "Connecting ..."

Same as reported here by @iMartzen

benbeton commented 5 years ago

what app are you using on the apple watch? With Home 3 it works fine here (Apple Watch 4) With Apple Home it doesn't work

RaymondMouthaan commented 5 years ago

I am using both the Apple Home app and also Home 3 app.

Apple Home: shows a still image and tries Live video but remains "connecting ..."

Home 3: does pretty much the same as Apple Home app

btw. the displayed still image seems to be an older image

iMartzen commented 5 years ago

I am only using the Apple Home App

dfbills commented 5 years ago

I see this working sporadically on my end with the 3a825f0 build. Seems to me like the Apple Home has better connectivity, but it often just pulls a still. I have yet to see HK Home actually stream, but it does show the still captured by Apple Home. Likely cached in HomeKit.

Apple Home IMG_1485 IMG_1486

HK Home IMG_1482 IMG_1483 IMG_1484

RaymondMouthaan commented 5 years ago

@brutella, any idea's to get this working?

brutella commented 5 years ago

We may have to analyse the log file to see what happens when connecting with the Apple Watch.

The main difference between a connection from the iPhone and the Apple Watch is that the Apple Watch requests a low-resolution camera stream with low frame rate. Maybe there lies the problem.

RaymondMouthaan commented 5 years ago

@brutella should it matter whether to use Apple Home or Home3 ?

I'll create some logs and post them here.

brutella commented 5 years ago

@brutella should it matter whether to use Apple Home or Home3 ?

No, I don't think so.

RaymondMouthaan commented 5 years ago

@brutella

The step I took to test are:

  1. flashed sdcard with raspbian-stretch-lite-2019-04-08-hkcam-v0.0.8-armv6.img
  2. re-added the camera accessory in Apple Home on my iPhone X
  3. checked if still image and live stream worked, which worked 👍
  4. then I did several tests from Apple Home and Home3 from the Apple Watch 4 and iPhone. I've attached the current log where you find marks with a description of what I did. The first tests went well, and I thought I couldn't reproduce the error, however ...
  5. after shutting down the rpi zero to move it to a different location and rebooted it again
  6. Apple Watch wasn't able to stream Live video anymore ...

Please consider the current.zip and hopefully it helps to fix this issue.

Some additional steps after above steps:

  1. removed camera accessory from Home on iPhone and checked it also has been removed from Watch
  2. added the camera accessory again via Home
  3. Home worked fine with Live video
  4. Watch still failed