# \[NEEDS UPDATING\] Assistant Relay V3.3 Beta

**URL:** <https://community.smartthings.com/t/needs-updating-assistant-relay-v3-3-beta/176402>\
**Category:** Projects & Stories\
**Tags:** tts, requires\_server, googleassistant, googlehome\
**Created:** [October 30, 2019, 11:00am UTC](https://community.smartthings.com/t/needs-updating-assistant-relay-v3-3-beta/176402 "2019-10-30T11:00:28Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ghesp](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/ghesp/32/19302_2.png) [@ghesp](https://community.smartthings.com/u/ghesp)\
**Post date:** [October 30, 2019, 11:00am UTC](https://community.smartthings.com/t/needs-updating-assistant-relay-v3-3-beta/176402/1 "2019-10-30T11:00:29Z")

</div>

![image](https://global.discourse-cdn.com/smartthings/original/3X/9/2/9262560335737b8405a883610bef981b11a1248e.png)

# ASSISTANT RELAY V3

## Discord

We have a Discord group to get discuss Assistant Relay, not just for SmartThings, but for standalone integrations and other Home Automation platforms.

It’s also a great place to come and chat about anything Smart Home related! Come and [join us](https://discord.gg/Jz8AM9k)

## Back to it

Following on from V2 of Assistant Relay, I’ve given it a total overhaul and rewrite which should resolve a lot of the issues in V2.

Unfortunately, it’s still restricted by the Google Assistant SDK limitations, however I’ve removed the requirement to configure this using configuration files and command line interactions.

There’s a new web interface that should be accessible from anywhere on your network, and there’s also a new sandbox where you can test out your requests and look and listen to the responses from Google Assistant.

## What is this?

- This isn’t an extension of your Google Home
- This isn’t some fancy local API that connects directly to your Google Home
- This is a Node.js server that uses the Assistant SDK
- This is basically another Google Home device, but without a microphone and speaker

## What can I do with this?

Assistant Relay is a Node.js server that will accept requests, and then process them. These might be broadcast requests, predefined statuses or routines. It accepts text entry and then does something with it.

As an example, open up Google Assistant on your phone and then **type** `broadcast hello world` . Your Google Home devices will now announce “hello world”.

There are lots of things you can do such as:

- Send broadcasts, useful if you want to announce that the back door has been opened
- Get personal information from your Google account - maybe you want to know what’s on your calendar
- Get answers to any question you want (within reason)

As this isn’t a SmartThings DTH or SmartApp, you can also hook this into anything you want

- Send broadcasts from your phone to Google Home if your phone rings using Tasker
- Send a [predefined](https://support.google.com/googlehome/answer/7531913?co=GENIE.Platform=Android&hl=en) movie announcement using WebHooks from Plex when a movie starts
- Send an announcement that dinner is ready when your smart over timer goes off

## Supported Systems

Assistant Relay relies on the Google Assistant SDK, therefore it only currently supports x64\_64 or ARMv7 processors. It should work on the latest Raspberry Pi’s with an ARMv7 chip. Check the below pages for more information

- [Google Assistant SDK](https://developers.google.com/assistant/sdk/overview)
- [Google Assistant Library](https://github.com/endoplasmic/google-assistant)

* * *

# Installation

Head over to the [documentation](https://greghesp.github.io/assistant-relay/) to read more

* * *

# What’s New?

Keep an eye on the [Github ReadMe](https://github.com/greghesp/assistant-relay/blob/v3/readMe.md) for all the latest updates

---

<div class="post-metadata">

**Author:** ![xraycat](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/xraycat/32/95012_2.png) [@xraycat](https://community.smartthings.com/u/xraycat)\
**Post date:** [November 5, 2019, 5:08pm UTC](https://community.smartthings.com/t/needs-updating-assistant-relay-v3-3-beta/176402/2 "2019-11-05T17:08:20Z")

</div>

I want to send a text command to Assistant to turn off a TV through a Chromecast by pushing a button or using a timer in Smartthings.  
It looks like this is possible and has to be done through WebCore, is that correct?

---

<div class="post-metadata">

**Author:** ![ghesp](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/ghesp/32/19302_2.png) [@ghesp](https://community.smartthings.com/u/ghesp)\
**Post date:** [November 5, 2019, 8:38pm UTC](https://community.smartthings.com/t/needs-updating-assistant-relay-v3-3-beta/176402/3 "2019-11-05T20:38:53Z")

</div>

Yes, you could use this, however I don’t know if the SDK will restrict you from doing this

---

<div class="post-metadata">

**Author:** ![xraycat](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/xraycat/32/95012_2.png) [@xraycat](https://community.smartthings.com/u/xraycat)\
**Post date:** [November 5, 2019, 9:57pm UTC](https://community.smartthings.com/t/needs-updating-assistant-relay-v3-3-beta/176402/4 "2019-11-05T21:57:31Z")

</div>

Could I test it somehow before setting all of this up?

---

<div class="post-metadata">

**Author:** ![xraycat](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/xraycat/32/95012_2.png) [@xraycat](https://community.smartthings.com/u/xraycat)\
**Post date:** [November 6, 2019, 5:45am UTC](https://community.smartthings.com/t/needs-updating-assistant-relay-v3-3-beta/176402/5 "2019-11-06T05:45:20Z")

</div>

I tried following the installation instructions but I have no idea what’s going on.

I installed node.js on my Windows laptop, installed PM2 using Powershell, downloaded the release from Github, opened Powershell from the release folder, and then stumbled.

I feel like there’s a lot unsaid with this instruction: “then use `npm i` to get started.” Where am I supposed to use that command and how?

---

<div class="post-metadata">

**Author:** ![withay](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/withay/32/73700_2.png) [@withay](https://community.smartthings.com/u/withay)\
**Post date:** [November 7, 2019, 4:12pm UTC](https://community.smartthings.com/t/needs-updating-assistant-relay-v3-3-beta/176402/6 "2019-11-07T16:12:01Z")

</div>

I’m sorry. I’m not an intermediate Linux user. I’m barely a beginner. I have 18.04 running on a spare pc I have.

I got as far as npm run start (with a LOT of failed tries, all my fault) and now have:

mylinux@nottelling:~$ npm run start

> relay@0.0.0 start /home/mylinux  
> pm2 start ./bin/www && pm2 log www

[PM2] Spawning PM2 daemon with pm2\_home=/home/mylinux/.pm2  
[PM2] PM2 Successfully daemonized  
[PM2][ERROR] Script not found: /home/mylinux/bin/www  
npm ERR! code ELIFECYCLE  
npm ERR! errno 1  
npm ERR! relay@0.0.0 start: `pm2 start ./bin/www && pm2 log www`  
npm ERR! Exit status 1  
npm ERR!  
npm ERR! Failed at the relay@0.0.0 start script.  
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:  
npm ERR! /home/mylinux/.npm/\_logs/2019-11-07T16\_05\_41\_483Z-debug.log

---

<div class="post-metadata">

**Author:** ![ghesp](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/ghesp/32/19302_2.png) [@ghesp](https://community.smartthings.com/u/ghesp)\
**Post date:** [November 7, 2019, 4:28pm UTC](https://community.smartthings.com/t/needs-updating-assistant-relay-v3-3-beta/176402/7 "2019-11-07T16:28:20Z")

</div>

> [@xraycat](#):
>
> Where am I supposed to use that command and how?

> [@withay](#):
>
> I got as far as npm run start (with a LOT of failed tries, all my fault) and now have:

You need to run these commands inside the assistant-relay directory

---

<div class="post-metadata">

**Author:** ![withay](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/withay/32/73700_2.png) [@withay](https://community.smartthings.com/u/withay)\
**Post date:** [November 7, 2019, 4:39pm UTC](https://community.smartthings.com/t/needs-updating-assistant-relay-v3-3-beta/176402/8 "2019-11-07T16:39:16Z")

</div>

> [@ghesp](#):
>
> You need to run these commands inside the assistant-relay directory

I do not see an assistant-relay directory. Is this something I was supposed to create? Where?

---

<div class="post-metadata">

**Author:** ![ghesp](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/ghesp/32/19302_2.png) [@ghesp](https://community.smartthings.com/u/ghesp)\
**Post date:** [November 7, 2019, 4:50pm UTC](https://community.smartthings.com/t/needs-updating-assistant-relay-v3-3-beta/176402/9 "2019-11-07T16:50:03Z")

</div>

You must have download assistant relay and extracted it to a folder somewhere? Thats the folder you need to be in to run the commands

---

<div class="post-metadata">

**Author:** ![withay](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/withay/32/73700_2.png) [@withay](https://community.smartthings.com/u/withay)\
**Post date:** [November 7, 2019, 4:52pm UTC](https://community.smartthings.com/t/needs-updating-assistant-relay-v3-3-beta/176402/10 "2019-11-07T16:52:07Z")

</div>

I just extracted it in the download folder. LOL I guess I’m used to windows creating a folder, but not so much here! I’ll try again, thanks!

---

<div class="post-metadata">

**Author:** ![withay](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/withay/32/73700_2.png) [@withay](https://community.smartthings.com/u/withay)\
**Post date:** [November 7, 2019, 4:53pm UTC](https://community.smartthings.com/t/needs-updating-assistant-relay-v3-3-beta/176402/11 "2019-11-07T16:53:05Z")

</div>

Oh, I assume it should be in the Home/mylinux folder, yes? So: home/mylinux/assistant-relay/

---

<div class="post-metadata">

**Author:** ![withay](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/withay/32/73700_2.png) [@withay](https://community.smartthings.com/u/withay)\
**Post date:** [November 7, 2019, 5:04pm UTC](https://community.smartthings.com/t/needs-updating-assistant-relay-v3-3-beta/176402/12 "2019-11-07T17:04:30Z")

</div>

Ugh. Fighting every step. Ok, created the folder, unzipped…

 ![linhell](https://global.discourse-cdn.com/smartthings/original/3X/c/f/cf50a3e96989cea52003f73e3ca3014d0bde3fac.jpeg)

and there it sits…

---

<div class="post-metadata">

**Author:** ![ghesp](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/ghesp/32/19302_2.png) [@ghesp](https://community.smartthings.com/u/ghesp)\
**Post date:** [November 7, 2019, 5:41pm UTC](https://community.smartthings.com/t/needs-updating-assistant-relay-v3-3-beta/176402/13 "2019-11-07T17:41:44Z")

</div>

Odd, seems to suggest it can’t get out to GitHub. I assume you have network connectivity

---

<div class="post-metadata">

**Author:** ![withay](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/withay/32/73700_2.png) [@withay](https://community.smartthings.com/u/withay)\
**Post date:** [November 7, 2019, 5:47pm UTC](https://community.smartthings.com/t/needs-updating-assistant-relay-v3-3-beta/176402/14 "2019-11-07T17:47:41Z")

</div>

Yep, I do. Not FAST… DSL, but it’s there.

---

<div class="post-metadata">

**Author:** ![withay](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/withay/32/73700_2.png) [@withay](https://community.smartthings.com/u/withay)\
**Post date:** [November 7, 2019, 8:17pm UTC](https://community.smartthings.com/t/needs-updating-assistant-relay-v3-3-beta/176402/15 "2019-11-07T20:17:03Z")

</div>

I rebooted and ran npm run start again. got the same, then a second later I got green text with “Initialized” and “Visit XXXX website to initialize”! Woo!

Now, to continue blindly in the dark at midnight… Thanks!

---

<div class="post-metadata">

**Author:** ![withay](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/withay/32/73700_2.png) [@withay](https://community.smartthings.com/u/withay)\
**Post date:** [November 7, 2019, 8:37pm UTC](https://community.smartthings.com/t/needs-updating-assistant-relay-v3-3-beta/176402/16 "2019-11-07T20:37:54Z")

</div>

Whew! Ok, I’m at Step 2 Adding Client Secrets. With your client secrets, you can import them into Assistant Relay below: And it’s asking for a “Users Name” with a select file button after that box.

I don’t understand what that means.

(EDIT) Ok, I think that’s the file I downloaded, and doing some looking at the Assistant Relay readme, it looks like I need to rename it to “Your chosen User Name”. And then make a copy and place it in server\configuration\secrets.

Ok, so “your chosen user name”. Is that just my name, is it my google email address before the “@”, or is it a name i can make up?

Next, where is server/configuration/secrets ?

---

<div class="post-metadata">

**Author:** ![ghesp](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/ghesp/32/19302_2.png) [@ghesp](https://community.smartthings.com/u/ghesp)\
**Post date:** [November 7, 2019, 8:55pm UTC](https://community.smartthings.com/t/needs-updating-assistant-relay-v3-3-beta/176402/17 "2019-11-07T20:55:25Z")

</div>

You’re reading the wrong version:

> **[greghesp/assistant-relay](https://github.com/greghesp/assistant-relay#configuration)**
>
> A Node.js server that allows for sending commands to Google Home/Assistant from endpoints - greghesp/assistant-relay

---

<div class="post-metadata">

**Author:** ![withay](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/withay/32/73700_2.png) [@withay](https://community.smartthings.com/u/withay)\
**Post date:** [November 7, 2019, 9:06pm UTC](https://community.smartthings.com/t/needs-updating-assistant-relay-v3-3-beta/176402/18 "2019-11-07T21:06:11Z")

</div>

I’m really sorry. I’m trying to get this. I feel really stupid, but this is like nothing I’ve ever done, and I really want to succeed.

Terminal popped up with a website to go to, which I did. Has “Step 1, setting up your project” and there are 8 bullet steps, which I did, then a next button. So, according to what you linked, I do not go ON to step 2. I now have to Visit the configuration tab on Dashboard to Configure.

Edit: I’m on the Google APIs Dashboard, but i don’t see a “Configuration tab”.

WHAT DASHBOARD???

---

<div class="post-metadata">

**Author:** ![ghesp](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/ghesp/32/19302_2.png) [@ghesp](https://community.smartthings.com/u/ghesp)\
**Post date:** [November 7, 2019, 9:09pm UTC](https://community.smartthings.com/t/needs-updating-assistant-relay-v3-3-beta/176402/19 "2019-11-07T21:09:51Z")

</div>

What version have you downloaded? You need to be on version 3. Sounds like you’re reading instructions for V3 and running V2

---

<div class="post-metadata">

**Author:** ![withay](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/withay/32/73700_2.png) [@withay](https://community.smartthings.com/u/withay)\
**Post date:** [November 7, 2019, 9:13pm UTC](https://community.smartthings.com/t/needs-updating-assistant-relay-v3-3-beta/176402/20 "2019-11-07T21:13:11Z")

</div>

I went into the assistant relay folder and looked at the readme file, it says V 3

[Next page](https://community.smartthings.com/t/needs-updating-assistant-relay-v3-3-beta/176402.md?page=2)
