tim-hellhake / google-home-adapter Goto Github PK
View Code? Open in Web Editor NEWUses your Google Home device to speak to you
License: Mozilla Public License 2.0
Uses your Google Home device to speak to you
License: Mozilla Public License 2.0
I installed the addon and connected my Google Home device. The speak command doesn't work, so I'm trying to remove the Things from my gateway. The remove button also doesn't work.
Follow-up of #1
This is one of my favorite add-ons. Unfortunately the Google Home Adapter has stopped working for me. Each time I enable it, I see these errors, repeated.
2021-11-18 19:26:41.958 INFO : google-home-adapter: Opening database: /home/pi/.webthings/config/db.sqlite3
2021-11-18 19:26:41.990 INFO : google-home-adapter: Ignoring https://raw.githubusercontent.com/WebThingsIO/gateway-addon-ipc-schema/master/schema.json because it has no messageType
2021-11-18 19:26:42.893 INFO : google-home-adapter: Ignoring https://raw.githubusercontent.com/WebThingsIO/gateway-addon-ipc-schema/master/messages/definitions.json because it has no messageType
2021-11-18 19:26:44.164 INFO : zigbee-adapter: zb-286d97000109dbe9-motion property: motion profileId: 0104 endpoint: 1 clusterId: 0500 value: true zoneStatus: 0x21
2021-11-18 19:26:44.269 INFO : google-home-adapter: Loading add-on google-home-adapter from /home/pi/.webthings/addons/google-home-adapter
2021-11-18 19:26:44.462 INFO : google-home-adapter: Listening on http://192.168.30.186:54321
2021-11-18 19:26:44.467 ERROR : google-home-adapter: events.js:174
2021-11-18 19:26:44.468 ERROR : google-home-adapter: throw er; // Unhandled 'error' event
2021-11-18 19:26:44.475 ERROR : google-home-adapter: ^
2021-11-18 19:26:44.476 ERROR : google-home-adapter:
2021-11-18 19:26:44.476 ERROR : google-home-adapter: Error: listen EADDRINUSE: address already in use :::54321
2021-11-18 19:26:44.476 ERROR : google-home-adapter: at Server.setupListenHandle [as _listen2] (net.js:1280:14)
2021-11-18 19:26:44.477 ERROR : google-home-adapter: at listenInCluster (net.js:1328:12)
2021-11-18 19:26:44.477 ERROR : google-home-adapter: at Server.listen (net.js:1415:7)
2021-11-18 19:26:44.478 ERROR : google-home-adapter: at new InMemoryServer (/home/pi/.webthings/addons/google-home-adapter/lib/in-memory-server.js:41:12)
2021-11-18 19:26:44.478 ERROR : google-home-adapter: at new GoogleHomeAdapter (/home/pi/.webthings/addons/google-home-adapter/lib/google-home-adapter.js:17:24)
2021-11-18 19:26:44.478 ERROR : google-home-adapter: at module.exports (/home/pi/.webthings/addons/google-home-adapter/lib/index.js:8:46)
2021-11-18 19:26:44.479 ERROR : google-home-adapter: at pluginClient.register.catch.then (/home/pi/mozilla-iot/gateway/src/addon-loader.js:110:9)
2021-11-18 19:26:44.479 ERROR : google-home-adapter: at process._tickCallback (internal/process/next_tick.js:68:7)
2021-11-18 19:26:44.480 ERROR : google-home-adapter: Emitted 'error' event at:
2021-11-18 19:26:44.482 ERROR : google-home-adapter: at emitErrorNT (net.js:1307:8)
2021-11-18 19:26:44.482 ERROR : google-home-adapter: at process._tickCallback (internal/process/next_tick.js:63:19)
2021-11-18 19:26:44.484 INFO : Plugin: google-home-adapter died, code = 1 restarting after 6000
2021-11-18 19:26:51.501 INFO : google-home-adapter: Opening database: /home/pi/.webthings/config/db.sqlite3```
Hi,
Thank you for your work.
If you look at MozillaIOT Email Sender add-on, they were able to make it so that the associated notification for the Thing used in a rule could be configured (title, messgae, level). Is there any way your google-home adapter can be modified to do the same so custom executions in the rules for different situations can be constructed without having to add activities to the actual add-on?
Also, is it possible to give the end user the ability to rename the "Thing" created by your add-on so the unique ID can be removed from the displayed name?
Thanks again,
Sean
As of recently I'm seeing the following error when trying to send a message to my Google Home Speaker:
2021-06-09 18:04:55.231 ERROR : google-home-adapter: Error: Unable to parse audio data. Check your request params.
2021-06-09 18:04:55.233 ERROR : google-home-adapter: at toBuffer (/home/node/.webthings/addons/google-home-adapter/node_modules/google-translate-tts/src/synthesize.js:48:13)
2021-06-09 18:04:55.234 ERROR : google-home-adapter: at processTicksAndRejections (internal/process/task_queues.js:97:5)
Mentioned in #1
Hi Tim,
I would like to use this add-on to generate an alarm when my smoke, gas or water alarm goes off.
I have three scenarios in mind:
Smoke alarm:
There is smoke, z-wave smoke sensor is activated, all lights are switched on, the Google home gives an alarm in spoken text.
Water or gas alarm:
A leak is detected, all electrical equipment is turned off in the room where the leakage is detected, gas or water is automatically shut off, the Google Home gives an alarm in spoken text.
No alarm but a normal announcement:
In addition to an alarm, a normal annoucement is also possible.
I would like to use your add-on for a spoken alarm message. For this, the following should be implemented.
I don't know if it's possible but it could be a nice addition to an alarm. I am not a programmer but please let me know if I can help somehow.
Please add a manifest.json to the release package.
I find the cast-start chime sound annoying and apparently I'm not the only one. I found this link from a search:
https://community.home-assistant.io/t/i-did-it-i-defeated-the-horrible-google-home-cast-start-prompt-sound/36123
Not sure if it is possible for this add-on to avoid that chime when casting to Google Home devices?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.