Domoticz control using google assistant on pi

Subforum for general discussions. Do not dump your questions/problems here, but try to find the subforum where it belongs!
Post Reply
shivasiddharth
Posts: 6
Joined: Sunday 16 September 2018 0:26
Target OS: Raspberry Pi
Domoticz version:
Contact:

Domoticz control using google assistant on pi

Post by shivasiddharth » Sunday 16 September 2018 0:29

Hello guys, I am the author of the GassistPi project (https://github.com/shivasiddharth/GassistPi) , which is a custom modified Google Assistant SDK. I have recently added the ability for users to control switches and lights added to the domoticz server (https://github.com/shivasiddharth/Gassi ... cz-control). I hope you guys give it a shot and find it useful.

BugsBob
Posts: 7
Joined: Monday 10 September 2018 18:15
Target OS: Windows
Domoticz version:
Location: Tampa, Florida

Re: Domoticz control using google assistant on pi

Post by BugsBob » Tuesday 18 September 2018 17:47

Hello, shivasiddharth! Thanks for sharing this! Would definitely check it out.

User avatar
EdddieN
Posts: 544
Joined: Wednesday 16 November 2016 12:31
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: Scotland
Contact:

Re: Domoticz control using google assistant on pi

Post by EdddieN » Wednesday 19 September 2018 23:46

Wow, that is a lot of good work! To my long list of things to try :D
11101101 - www.machinon.com

leonkoster
Posts: 2
Joined: Sunday 12 August 2018 20:52
Target OS: -
Domoticz version:
Contact:

Re: Domoticz control using google assistant on pi

Post by leonkoster » Thursday 20 September 2018 10:44

Hello shivasiddharth,
i made a GassistPi on a RPI 3b+ and it works and i'm happy.
A few weeks ago google introduced the google assistant in dutch.
Is it possible to get this also in the GassistPi?

shivasiddharth
Posts: 6
Joined: Sunday 16 September 2018 0:26
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Domoticz control using google assistant on pi

Post by shivasiddharth » Saturday 22 September 2018 0:50

leonkoster wrote:
Thursday 20 September 2018 10:44
Hello shivasiddharth,
i made a GassistPi on a RPI 3b+ and it works and i'm happy.
A few weeks ago google introduced the google assistant in dutch.
Is it possible to get this also in the GassistPi?
You can change the language in the home app. But the keywords that i have set are in English, you can easily change that as well in the keywords.yaml file.

h143
Posts: 38
Joined: Tuesday 28 October 2014 23:26
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Domoticz control using google assistant on pi

Post by h143 » Saturday 29 September 2018 7:40

Looks great. Can i also give a voice command “turn off the lights” and control the thermostat?

shivasiddharth
Posts: 6
Joined: Sunday 16 September 2018 0:26
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Domoticz control using google assistant on pi

Post by shivasiddharth » Saturday 29 September 2018 20:36

h143 wrote:
Saturday 29 September 2018 7:40
Looks great. Can i also give a voice command “turn off the lights” and control the thermostat?
You can of course control lights by voice. That includes turning off,on,setting brightness and colour. I did not have a thermostat with me to test, so i did not implement the thermostat control actions. If someone is ready to test a development branch (like use them and report errors), then i can add them.

DAVIZINHO
Posts: 202
Joined: Sunday 27 August 2017 18:00
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Spain
Contact:

Re: Domoticz control using google assistant on pi

Post by DAVIZINHO » Saturday 29 September 2018 21:06

Hello,
I have a question, maybe stupid question but my englishs is a bit poor :-P
this is for add a microphone to raspberry and use it speaking with the raspberry directly?. or this is to speak at google home or assistant and this connect to the raspberry for control it?

thanks a lot

peerkersezuuker
Posts: 41
Joined: Monday 14 December 2015 23:16
Target OS: Raspberry Pi
Domoticz version:
Location: Mierlo
Contact:

Re: Domoticz control using google assistant on pi

Post by peerkersezuuker » Saturday 06 October 2018 14:09

@shivasiddharth,
First of all nice work, works like a charm on a pi3 with a hifiberry hat.
Don't know if I should ask the question here, but the domoticz control dos not function.
I ask to turn a switch, the assistent say's ok and the nothing happens.
When I look in the log is see nothing happening with the def domoticz_control(i,query,index,devicename): in the actions.py ( I put some print() commands in this def but they are not showing)

In the main.py it states : (LINE 318)
if event.type == EventType.ON_DEVICE_ACTION:
for command, params in event.actions:
print('Do command', command, 'with params', str(params))

But no further actions are defined after this print command.

(if you want this conversation to continue on GitHub please say.)

Regards
Peter van Hoek

shivasiddharth
Posts: 6
Joined: Sunday 16 September 2018 0:26
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Domoticz control using google assistant on pi

Post by shivasiddharth » Sunday 07 October 2018 0:37

DAVIZINHO wrote:
Saturday 29 September 2018 21:06
Hello,
I have a question, maybe stupid question but my englishs is a bit poor :-P
this is for add a microphone to raspberry and use it speaking with the raspberry directly?. or this is to speak at google home or assistant and this connect to the raspberry for control it?

thanks a lot
You can control devices by speaking into raspberry pi running google assistant.

shivasiddharth
Posts: 6
Joined: Sunday 16 September 2018 0:26
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Domoticz control using google assistant on pi

Post by shivasiddharth » Sunday 07 October 2018 0:37

peerkersezuuker wrote:
Saturday 06 October 2018 14:09
@shivasiddharth,
First of all nice work, works like a charm on a pi3 with a hifiberry hat.
Don't know if I should ask the question here, but the domoticz control dos not function.
I ask to turn a switch, the assistent say's ok and the nothing happens.
When I look in the log is see nothing happening with the def domoticz_control(i,query,index,devicename): in the actions.py ( I put some print() commands in this def but they are not showing)

In the main.py it states : (LINE 318)
if event.type == EventType.ON_DEVICE_ACTION:
for command, params in event.actions:
print('Do command', command, 'with params', str(params))

But no further actions are defined after this print command.

(if you want this conversation to continue on GitHub please say.)

Regards
Peter van Hoek
Hello Peter,

Please open up an issue in the Github. we can deal with this there.

peerkersezuuker
Posts: 41
Joined: Monday 14 December 2015 23:16
Target OS: Raspberry Pi
Domoticz version:
Location: Mierlo
Contact:

Re: Domoticz control using google assistant on pi

Post by peerkersezuuker » Sunday 07 October 2018 11:33


Umberto
Posts: 11
Joined: Saturday 03 March 2018 11:16
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Domoticz control using google assistant on pi

Post by Umberto » Sunday 07 October 2018 13:34

Great job, I once tried your installation but that was before you supported domoticz (just to start playing with Google Assistant).

However: I got stuck since I only have a RasPi2 but no RasPi3. What script should be used in this case? Then I will be happy to start trying whenever I have some time left.

shivasiddharth
Posts: 6
Joined: Sunday 16 September 2018 0:26
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Domoticz control using google assistant on pi

Post by shivasiddharth » Sunday 07 October 2018 21:36

Umberto wrote:
Sunday 07 October 2018 13:34
Great job, I once tried your installation but that was before you supported domoticz (just to start playing with Google Assistant).

However: I got stuck since I only have a RasPi2 but no RasPi3. What script should be used in this case? Then I will be happy to start trying whenever I have some time left.
Pi2B supports Ok Google hotwording, use the Pi3 installer.

peerkersezuuker
Posts: 41
Joined: Monday 14 December 2015 23:16
Target OS: Raspberry Pi
Domoticz version:
Location: Mierlo
Contact:

Re: Domoticz control using google assistant on pi

Post by peerkersezuuker » Monday 08 October 2018 14:25

We finetuned the domoticz integration.
shivasiddharth is looking for someone with a domoticz controlled thermostat to test this with GassistPi

Willmore
Posts: 4
Joined: Tuesday 23 October 2018 11:15
Target OS: Windows
Domoticz version:
Location: Delaware
Contact:

Re: Domoticz control using google assistant on pi

Post by Willmore » Tuesday 23 October 2018 11:30

Good job! I wanna try to do smth like you did, but I ama newbie in this sphere, so I I'm not sure that I will succeed.
representative Speedypaper

RapTile
Posts: 58
Joined: Saturday 10 March 2018 3:01
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Domoticz control using google assistant on pi

Post by RapTile » Tuesday 23 October 2018 23:22

Is it possible to get this up and running with using google home?
So connect the google home to the pi in one way or another?
(I guess not but i am new to this stuff so what do i know> :) )

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests