OrangeAssist - Google Assistant Integration

Hi all,

I would like to play a door bell sound via the Nest Hub. Currently, I am using Alexa to
play the sound, however I observed a delay of 10 - 15 s betwenn pushing the button
an playing the sound. Does the google assistant integration suffer of the same delay time?
I guess the delay is related to the Alexa cloud.

BR,
Bernd

I’m interested in exploring this but I’ve come to this section in the setup where it requires me to turn everything I have turned off on my Google account:

Configure Activity Controls (IMPORTANT!!) Make sure these are enabled:
Web & App Activity
Include Chrome history and activity from sites, apps, and devices that use Google services
Device Information
Voice & Audio Activity

How badly will functionality be affected if these are not turned on? I have considered setting up a segregated Google account just for this plugin but that would mean all the routines I have on my current account would need to be duplicated.

1 Like

For anyone who wants to use OH3 ECMA script for using OrangeAssist:

var HTTP = Java.type("org.openhab.core.model.script.actions.HTTP");
var url = "http://192.168.1.2:2828/assist/ask";
var orgeassistcmd = '{"request" : "turn all lights on"}';
var result = HTTP.sendHttpPostRequest(url, "text/plain", orgeassistcmd, 10*1000);
1 Like

Well I started searching for info on OrangeAssist on OH3 and then I see your post … It concerns me that Rich couldn’t get it working :slight_smile: Sounds like I should search for a different solution for my Meross Led Strip - although OrangeAssist sounds very cool for many things.

Keep in mind I was just playing around and abandoned the effort at the first sign of trouble. I didn’t really have a need for it so there wasn’t a compelling drive to make it work. Others have been successful and happy with Orange Assist .

1 Like

I followed the complete how-to and it seems I did every step.

But for some reason I get the following error:

(env) [20:15:34] root@openhabian:~# python -m or
/home/openhabian/env/bin/python: No module named or

Could you please tell me what I’m doing wrong?

When I run the code “python -m or” now I get the following:

(env) openhabian@openhabian:~ $ python -m or
Traceback (most recent call last):
  File "/home/openhabian/orangeassist.py", line 12, in <module>
    from helpers import (
  File "/home/openhabian/helpers/assistant_helpers.py", line 19, in <module>
    from google.assistant.embedded.v1alpha2 import embedded_assistant_pb2
ModuleNotFoundError: No module named 'google.assistant.embedded'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/openhabian/or.py", line 9, in <module>
    from orangeassist import OrangeAssistant
  File "/home/openhabian/orangeassist.py", line 17, in <module>
    from helpers import (
  File "/home/openhabian/helpers/assistant_helpers.py", line 19, in <module>
    from google.assistant.embedded.v1alpha2 import embedded_assistant_pb2
ModuleNotFoundError: No module named 'google.assistant.embedded'
(env) openhabian@openhabian:~ $

Think I’m missing something ??

Edit: I’ve created a completely new folder structure and now I can enter the debug mode via putty.
but the helpers/tester.html file I cannot get to work.
I set the debug to false but the page will not load in a browser.

Also the last part I don’t know what to do:
“If you have done the above, this will only allow your server to interact with Google Assistant SDK. If you actually want your assistant to show up under the
Google Home app, you have [REGISTER ]

Can someone explain to me what I do wrong?

I just want a simpel habpanel screen where I can push a button to play spotify on my Google Home Mini

Hope someone can help me.

Hi

Was any of you able to start a routine (created in Google Home) via OrangeAssist?
Google always ends with “Sorry, I didn’t get that”. I tried the out-of-the-box routines and personal ones.

Could anyone figure out how to interact with a specific google device? Such as “Create a timer on [device]” or “Show me xy on [device]”

Thank you
Enrico

1 Like

@luckymallari is it possible to update this tutorial for new google assistant sdk?

1 Like