Skip to content
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

Google Home Plugin not working due to DNS issues in Avahi #89

Closed
MarcPow opened this issue Dec 26, 2021 · 7 comments
Closed

Google Home Plugin not working due to DNS issues in Avahi #89

MarcPow opened this issue Dec 26, 2021 · 7 comments

Comments

@MarcPow
Copy link

MarcPow commented Dec 26, 2021

starting plugin @scrypted/google-home 0.0.23
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/blog/projects/avahi-compat.html
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/blog/projects/avahi-compat.html
plugin successfully loaded
http://127.0.0.1:10080/endpoint/@scrypted/google-home/public/
uncaughtException Error: dns service error: unknown
at new Advertisement (/server/node_modules/mdns/lib/advertisement.js:56:10)
at Object.createAdvertisement (/server/node_modules/mdns/lib/advertisement.js:64:10)
at /src/main.ts:127:29
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorCode: -65537
}

Using the following docker image

pi@raspberrypi:~ $ docker pull koush/scrypted
Using default tag: latest
latest: Pulling from koush/scrypted
Digest: sha256:9896483f13523e256eb68e77cd0dda0db7c77f95c2309e5ffffc05608ad9f3ab
Status: Image is up to date for koush/scrypted:latest
docker.io/koush/scrypted:latest

@koush
Copy link
Owner

koush commented Dec 26, 2021

Will fix. This is actually benign and shouldn't cause it to fail. Need to guard for the error.

@MarcPow
Copy link
Author

MarcPow commented Dec 26, 2021

Out of curiosity: Is the advertisement actually unnecessary? Wouldn't that Inhibit traffic back to Scrypted?

@koush
Copy link
Owner

koush commented Dec 26, 2021

Out of curiosity: Is the advertisement actually unnecessary? Wouldn't that Inhibit traffic back to Scrypted?

The advertisement is used for local fulfillment: google home can talk to scrypted directly over lan. This is often faster, and has the benefit of not using Scrypted's server.

@koush
Copy link
Owner

koush commented Dec 26, 2021

Fixed with bf3bec0
Uses ciao now, which has no native dependencies.

@koush koush closed this as completed Dec 26, 2021
@MarcPow
Copy link
Author

MarcPow commented Dec 26, 2021

@koush

1 - Thank you. Now, it seems to start up in console.

starting plugin @scrypted/google-home 0.0.30
plugin successfully loaded
http://127.0.0.1:10080/endpoint/@scrypted/google-home/public/

2 - However, it doesn't seem to DO anything.

No device discovery, etc. Also, when I click on the "Show public endpoint" or "Show private endpoint" links, I get "https://192.168.1.106:10443/endpoint/undefined/"

Are there any debug logs I can supply?

@koush
Copy link
Owner

koush commented Dec 26, 2021

This is the Google Home plugin which syncs scrypted devices with Google Home (aka Google Assistant). Install scrypted cloud, click login. Then add scrypted in the google home app. It does not import Google devices. You want the Google Device Access plugin (which will pull in nest thermostats, cameras, etc).

@koush
Copy link
Owner

koush commented Dec 26, 2021

I'll add some documentation around the plugins in both the npm site and in the dashboard. This is understandably confusing. Hop on discord if you have any questions. Syncing Nest devices is unfortunately non-trivial and the process is documented there (and should be in the readme).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants