-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Register with a sleep proxy to wake homebridge during MacOS sleep #9
Comments
As homebridge is not using the mDNS Responder of the system (like With the upcoming 1.3.0 (see homebridge/homebridge#2765) version we add the ciao library as a configuration option, but ship with bonjour-hap as default for now, until we can be sure that ciao is stable enough. I got some plans where instead of advertising our own address records, we just redirect to the ones advertised by the system itself (e.g. by the Such compatibility as you request is planned. There is no time schedule for this. If we ship it, it will be definitely only available with the ciao library. EDIT: As stated, this addresses the ciao library, thus I moved the issue to that repo. |
I appreciate your reply. Whilst awaiting a ciao nirvana, is there a dirty OS hack to manually register homebridge with the sleep proxy: |
I think there is no way to create a hack as described from the outside. You would need to alter the records advertised by ciao, and the conflict detection would prevent this. |
@Supereg - way back in the sands of time (HAP-NodeJS 0.4.41 and earlier, to be exact) the 'mdns' package was used, which used the native mDNS stack (Avahi/mDNSResponder etc.) Then, in 0.4.42, this was replaced with the 'bonjour' npm package, which shortly thereafter was forked to 'bonjour-hap'. And the rest (along with, as it appears, pain for some people) is history. Do you know why the 'mdns' package stopped being used? Since the native libraries (Avahi/mDNSResponder) are likely extremely reliable, it kind of seems 'obvious' we should just use that. And yet, presumably there was a good reason to instead ditch the native stuff, and re-implement in the 'bonjour' npm library, which started the painful journey of mdns->bonjour->bonjour-hap->ciao and now ciao->bonjour-hap again. Do you know the reason? Thanks! |
@adriancable sorry for the long turnaround time. As it is really only a native binding for Apples But you are right, using the systems native responder, is the best choice in terms of efficiency (and feature compatibility with stuff like sleep proxies). |
Any progress on this issue? |
Describe Your Problem:
Forgive the blue sky noob question. I have homebridge working well on MacOS. Obviously the service is unavailable during MacOS sleep (and I could/should commission a Rpi).
However, as confirmed by _dns-sd -B _sleep-proxy.udp local I have available sleep proxies on the LAN (HomePod, Airport, AppleTV etc). Other services successfully wake MacOS as necessary. Wouldn’t it be cool if MacOS woke when I used HomeKit?
I considered registering the homebridge service with the proxy (dns-sd -R...) but I don’t know the requisite port/service details. I poked around Node.js and homebridge forums and searches but got nobody trying/succeeding to do this.
Best wishes all!
Logs:
n/a
Homebridge Config:
All standard, just a couple of plugins:
homebridge-evohome v0.7.3
homebridge-away-mode v1.5.2
Environment:
The text was updated successfully, but these errors were encountered: