This repository has been archived by the owner on Jan 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
96 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
## 5.7 | ||
|
||
New image | ||
|
||
## 5.6 | ||
Update to Assistant Relay v3.0.4: | ||
|
||
- Bug fixed in Sandbox JSON creation | ||
- Fixed naming convention in Sandbox | ||
|
||
## 5.5 | ||
Moving to a different base image to support armv7 (Raspberry Pi). | ||
|
||
## 5.4: | ||
This update changes the location of the audio responses which are showed in the webinterface. This fix the issue that they get lost after en restart or update. | ||
|
||
It is not required to do the setup again to keep using this addon, but to get the audio responses in the webinterface working you have to reinstall and reconfigure. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Assistant Relay for Hassio | ||
This add-on brings Assistant Relay (by greghesp) to Hass.io. | ||
|
||
> Assistant Relay is a Node.js server that exposes the Google Assistant as a REST API. | ||
> Send Assistant Relay any query you would send the Google Assistant SDK, and get a response back. | ||
> It also supports the Google Home Broadcast command so you can send audio notifications to your Google Home devices, without interrupting music. | ||
|
||
### Usage | ||
|
||
1. Add https://github.com/Apipa169/Assistant-Relay-for-Hassio in the add-on store. | ||
2. Install the add-on | ||
3. Start the add-on and open the add-on in your browser: http://[IP]:[PORT] | ||
4. Follow the instructions in the browser. | ||
5. You can now use Assistant Relay. | ||
|
||
|
||
#### Example | ||
Example command to broadcast. | ||
```yaml | ||
# Example configuration.yaml entry | ||
rest_command: | ||
my_broadcast: | ||
url: http://<ip_address>:<port>/assistant | ||
method: POST | ||
headers: | ||
content-type: 'application/json; charset=utf-8' | ||
payload: '{"command":"hello world", "user":"greg", "broadcast":"true"}' | ||
``` | ||
*User needs to be the user you used in the setup.* | ||
How to use Home Assistant's RESTful command check: https://www.home-assistant.io/integrations/rest_command/ | ||
### More info | ||
Check the repository of Assistant Relay for more: https://github.com/greghesp/assistant-relay |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"name": "Assistant Relay", | ||
"version": "0.6", | ||
"slug": "assistant_relay_beta", | ||
"description": "Send (broadcast) commands to your Google Assistant via REST command", | ||
"arch": ["amd64"], | ||
"startup": "before", | ||
"url": "https://github.com/Apipa169/Assistant-Relay-for-Hassio", | ||
"boot": "auto", | ||
"webui":"http://[HOST]:[PORT:3000]", | ||
"options": { | ||
}, | ||
"schema": {}, | ||
"ports": { | ||
"3000/tcp": 3000 | ||
}, | ||
"image": "apipa169/{arch}-hassio-assistant_relay" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
ARG BUILD_FROM | ||
FROM $BUILD_FROM | ||
|
||
ENV LANG C.UTF-8 | ||
|
||
WORKDIR /assistant_relay | ||
|
||
COPY run.sh / | ||
RUN chmod a+x /run.sh | ||
CMD [ "/run.sh" ] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
cd /assistant_relay | ||
|
||
ARDIR="/data/audio-responses" | ||
if [ ! -d "$ARDIR" ]; then | ||
echo Creating an audio-responses folder... This needs to be done once. | ||
mkdir /data/audio-responses | ||
fi | ||
cd /assistant_relay | ||
|
||
echo Assistant Relay is now starting... | ||
|
||
npm run start |