Google assistant Setup

Alexa, Google Home and Siri

Moderator: leecollings

Post Reply
schijndela
Posts: 17
Joined: Thursday 05 July 2018 19:36
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10717
Contact:

Google assistant Setup

Post by schijndela »

Hi,

Recently I bought a Google Home mini which I want to use with my Domoticz system, the only problem is i'm struggling with the setup of the Google Assistant.
And it seems after a couple of evenings of trying i'm in a loop :(
I read several articles, but unfortunatly without any luck, perhaps one of you can help me out.
I'm using a RPI and this is what I've done thusfar.

I've upgrade the Python version as described in following link: (Which took a while!)
https://installvirtual.com/install-pyth ... pberry-pi/

After installation of python-3-7 I checked if it was installed with command.
python --version
It showed the version as mentioned her above.

Next I followed the steps as described in the link here below for installing Google Assistant.
https://www.domoticz.com/wiki/Google_As ... ver_python

But after the installation was complete I saw that the output showed some red lines stating that Python 3-5 or later was required!?
Opening the link as mentioned at the end of the script lead off-course that the Page couldn't be displayed.

Help is highly appreciated.

Kind Regards,
Arie
Attachments
Google Assistant error message.JPG
Google Assistant error message.JPG (120.49 KiB) Viewed 2476 times
User avatar
FireWizard
Posts: 1747
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Google assistant Setup

Post by FireWizard »

Hi,

You wrote:
I've upgrade the Python version as described in following link: (Which took a while!)
Indeed, it depends on the speed of your RPi and the optimizations, you configured, but it may be up to approx. 4 hours.
Google Home mini
What do you want to do with the Google Home mini?

Do you only want to switch on/off some lights with a voice command?

If you can explain, what your goal is, we can help you better, probably.

I have a couple of things working with the Google Nest Hub, by using Node Red (with the Nora node) and MQTT.
And with CATT I'm able to display the Domoticz pages (tabs) and camera's on the Nest Hub, but you will not succeed with that on the Google Home Mini.

See: https://www.domoticz.com/forum/viewtopi ... hilit=Nora

Regards
schijndela
Posts: 17
Joined: Thursday 05 July 2018 19:36
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10717
Contact:

Re: Google assistant Setup

Post by schijndela »

Hi FireWizard,

Many thanks for your feedback, it's appreciated.
The maingoal is indeed to turn on and turn off some lights, (MiLight)
snellejellep
Posts: 241
Joined: Tuesday 16 May 2017 13:05
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: The Neterlands
Contact:

Re: Google assistant Setup

Post by snellejellep »

i think it is the easiest to use controlicz. i use it and it works great. the only thing is that you need a subscription
raspberry pi | xiaomi vacuum | yeelight | philips hue | zwave | ubiquiti unifi | harmony | sonoff | zigbee2mqtt | https://www.youtube.com/channel/UC2Zidl ... m1OLuNldfQ
EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

Re: Google assistant Setup

Post by EddyG »

It looks you have python 3.4 installed in your virtual environment.
Find out what versions of python you have installed. Uninstall version 3.4
Do an ls -al /usr/bin/pyth*

I used controlicz, it works, but costs a monthly fee. Domoticz Google Assistant is free and works perfect.
User avatar
FireWizard
Posts: 1747
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Google assistant Setup

Post by FireWizard »

Hi,

EddyG wrote:
It looks you have python 3.4 installed in your virtual environment.
I think it too.

If you followed the procedure, as described in your link, you use "sudo make altinstall"
This creates a version 3.7.*, besides your 3.4. You have to uninstall this version 3.4

snellejellep wrote:
i think it is the easiest to use controlicz. i use it and it works great. the only thing is that you need a subscription
According to https://www.controlicz.com/ this will cost you 2 UK Pound per month or 20 UK Pound per year. It is not free, if you want to control your devices.
The use of nora, requires that you have NodeJS, Node Red and a MQTT server installed. To do that is not difficult and it is faster than to upgrade Python.

schijndela wrote
The main goal is indeed to turn on and turn off some lights, (MiLight)
The Milight has native support in Google Home.

But fortunately there is more than 1 possibility:

1. DewGew's solution
2. Controlicz
3, Node Red with nora
etc.

You have to choose your way you want to go.

Regards
EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

Re: Google assistant Setup

Post by EddyG »

FireWizard wrote: Wednesday 15 January 2020 22:33 The Milight has native support in Google Home.
Are you sure, I don't think so.

So if Python 3.4 is uninstalled and 3.7 is installed the cheapest way is to go for Domoticz Google Assistant.
I think that the 'nora' solution is a kind of Controlicz and is free, but might not be free in the future.
You have to login to the Nora website, so for that solution you have to go to a third party.
I do not like that, with Domoticz Google Assistant it is only you and Google, no one else.
User avatar
FireWizard
Posts: 1747
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Google assistant Setup

Post by FireWizard »

Hi

EddyG wrote:
FireWizard wrote: ↑
15 Jan 2020, 22:33
The Milight has native support in Google Home.

Are you sure, I don't think so.
I do not own a MiLight, so I cannot confirm it, but if you open your Google Home app and you go to "Manage accounts" you will find this:

Screenshot_MiLight.png
Screenshot_MiLight.png (43.53 KiB) Viewed 2410 times

Clicking Mi Home asks you to sign in with your Mi Account (Xiaomi), while Mi Light Smart points to Tuya.
But maybe Arie can confirm?

So if Python 3.4 is uninstalled and 3.7 is installed the cheapest way is to go for Domoticz Google Assistant.
I think that the 'nora' solution is a kind of Controlicz and is free, but might not be free in the future.
You have to login to the Nora website, so for that solution you have to go to a third party.
I do not like that, with Domoticz Google Assistant it is only you and Google, no one else.
Using "nora" in Node Red is just as cheap as going for the Domoticz Google Assistant. Both are free.
I believe, setting up a dedicated server is more complex, than adding the "nora" node in Node Red.
However it depends on. If you have NodeJS, Node Red and MQTT (Mosquitto) already installed and running, I believe it is easier.
If you have to install it, just to connect a few switches, maybe installing the server is simplier.

"Nora" is a node in Node Red and is not Controlicz. It works in both directions.
See: https://www.domoticz.com/forum/viewtopi ... de#p211482

For the moment it is free, and what will the future be? I don"t know yet.
It is on github: https://github.com/andrei-tatar/node-red-contrib-nora

If you are worried about a possible price in the future, you can always change to another solution.
Is it, that you don't like to share your credentials with a third party (You sign in with your Google or Github account) for privacy reasons, I would not use a Google device, listening in my house. You said with Domoticz Google Assistant it is only you and Google, no one else.
I hope, you are right, but with Google, I'm not sure.

But it is good, that we have something to choose from.

Regards
schijndela
Posts: 17
Joined: Thursday 05 July 2018 19:36
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10717
Contact:

Re: Google assistant Setup

Post by schijndela »

Hi all,

Many thanks for all your advices, it's appreciated.
For some reasons I needed to reinstall my RPI, perhaps all the Python Installations messed up the system :-)
After a new installation and restoring a Back-up the system was up-and-running again.

I Think I will leave the Google - Assistant for what it is.

At this moment I can control my lights (MiLight) in combination with Google Home by using IFTTT and webhooks. The only thing is I need to figure out what right syntax is, if you are using a password for Domoticz.

I certainly look at the other options which were mentioned.

Kind Regards,
Arie
EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

Re: Google assistant Setup

Post by EddyG »

If you want so more privacy with Google, look at: https://www.instructables.com/id/Project-Alias/
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests