Android voice control "Ok Google" like "Google Home" for free!

Moderator: leecollings

User avatar
mlamie
Posts: 122
Joined: Friday 25 October 2013 17:12
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5877
Location: The Netherlands
Contact:

Re: Android voice control "Ok Google" like "Google Home" for free!

Post by mlamie »

Cubes wrote:I must say this is working quite well. Thanks for the tip!

Only silly issue I'm having is that I end up with loads of chrome browser tabs where I've searched for 'Outside lights'. The interact-back command works fine for getting rid of the window but they're all still there (1 per command) when I switch to another tab.
I know, it is the same situation when you use the "Ok Google" standalone. Each Google Now request will remain visible as a Chrome custom tab. Maybe there is a way to kill/close those Chrome custom tabs. If someone has experience there please feel free to add.

All I could find is: http://stackoverflow.com/questions/3322 ... custom-tab
Raspberry Pi 3, RaZberry, RFXtrx433
Various Z-Wave devices, KlikAanKlikUit devices, ESP8266 NodeMCU, Sonoff POW and a Essent E-thermostaat
IP camera: Dahua 4MP IPC-HDBW4421R-AS, Vivotek FD8134V
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Android voice control "Ok Google" like "Google Home" for free!

Post by Derik »

mmm

Is there a way so i can lear/read all my commands ?
Not all of my command's/switches are HTTP ...

And is there a option to acces with wan acces?

Nice feature..!!!
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
User avatar
mlamie
Posts: 122
Joined: Friday 25 October 2013 17:12
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5877
Location: The Netherlands
Contact:

Re: Android voice control "Ok Google" like "Google Home" for free!

Post by mlamie »

Derik wrote: Is there a way so i can lear/read all my commands ?
Not all of my command's/switches are HTTP ...

And is there a option to acces with wan acces?
Can you be a bit more specific regarding the command question? I do not fully understand the question. FYI the url used by me is based on Domoticz API/JSON see also http://domoticz.com/wiki/Domoticz_API/JSON_URL%27s
I used the switchcmd on/off as example, but there is much more.

Regarding the access question. I expect you mean remote control over the internet. All what needs to be changed is the local IP adress towards a domain name or external IP address. To work with Domoticz from outside your local network there are several options:
Via My Domoticz
Via Nginx Proxy Setup
And what I use is via OpenVPN in combination with DuckDNS. This enables me to access all my devices locally.
If you use a Rasberry Pi you should check http://www.pivpn.io/
Raspberry Pi 3, RaZberry, RFXtrx433
Various Z-Wave devices, KlikAanKlikUit devices, ESP8266 NodeMCU, Sonoff POW and a Essent E-thermostaat
IP camera: Dahua 4MP IPC-HDBW4421R-AS, Vivotek FD8134V
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Android voice control "Ok Google" like "Google Home" for free!

Post by Derik »

mm

Id did not understand json...
Thanks for the link, now i do get the json option.

Only to type all this on my phone..:-(
errors for me all the time.

Should there be no webbased login to Automate or a other [ webbased ] app ....
When i have to do this by all my family phone...:-)

only 1 thing..
Still got my first voicecommand working.... :lol: :lol:
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
User avatar
mlamie
Posts: 122
Joined: Friday 25 October 2013 17:12
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5877
Location: The Netherlands
Contact:

Re: Android voice control "Ok Google" like "Google Home" for free!

Post by mlamie »

Derik wrote: Should there be no webbased login to Automate or a other [ webbased ] app ....
When i have to do this by all my family phone...:-)
No, there is no webapp. Once you have created your flow you can easily share your flow(s) per email or with the Automate community and import them on the other devices.
Raspberry Pi 3, RaZberry, RFXtrx433
Various Z-Wave devices, KlikAanKlikUit devices, ESP8266 NodeMCU, Sonoff POW and a Essent E-thermostaat
IP camera: Dahua 4MP IPC-HDBW4421R-AS, Vivotek FD8134V
Pierryck
Posts: 24
Joined: Saturday 27 February 2016 20:39
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Android voice control "Ok Google" like "Google Home" for free!

Post by Pierryck »

It works great :)
marcotrumpet
Posts: 102
Joined: Saturday 18 February 2017 8:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Android voice control "Ok Google" like "Google Home" for free!

Post by marcotrumpet »

Hi everyone.. the trick works but not the "back" action.. how can I solve?

Inviato dal mio SM-G950F utilizzando Tapatalk
DutchHans
Posts: 229
Joined: Friday 03 April 2015 20:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Germany (near dutch border)
Contact:

Re: Android voice control "Ok Google" like "Google Home" for free!

Post by DutchHans »

Hello all,
Voicecontrol can be much easier with Google Assistant and IFTTT.. create an applet with Google Assistant and Maker for a Url request.. you can even use variables. I have everything voicecontrolled..from asking what temperature it is..setting temperatures..controlling Harmony.. , garage doors, lights etc... Even when my phone is in my pocket I can just say" ok google, open the door" Assistant responses with "sure" and the door opens instantly...

Thought some of you might be interested..
Regards, Hans
marcotrumpet
Posts: 102
Joined: Saturday 18 February 2017 8:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Android voice control "Ok Google" like "Google Home" for free!

Post by marcotrumpet »

The real problem for me is that google assistant doesn't work in Italy. If I set the applet in ifttt and ask with "ok google" nothing appens

Inviato dal mio SM-G950F utilizzando Tapatalk
DutchHans
Posts: 229
Joined: Friday 03 April 2015 20:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Germany (near dutch border)
Contact:

Re: Android voice control "Ok Google" like "Google Home" for free!

Post by DutchHans »

I could only install Assistant when i changed language and region to US - English... Assistant is standard not available in Holland..
blauwebuis
Posts: 331
Joined: Wednesday 21 December 2016 9:11
Target OS: Raspberry Pi / ODroid
Domoticz version: current
Contact:

Re: Android voice control "Ok Google" like "Google Home" for free!

Post by blauwebuis »

The real real problem is with your, and your visitors loss of privacy.

As a privacy professional I would highly recommend against using these services.
DutchHans
Posts: 229
Joined: Friday 03 April 2015 20:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Germany (near dutch border)
Contact:

Re: Android voice control "Ok Google" like "Google Home" for free!

Post by DutchHans »

@ blauwebuis...

Please explain...
marcotrumpet
Posts: 102
Joined: Saturday 18 February 2017 8:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Android voice control "Ok Google" like "Google Home" for free!

Post by marcotrumpet »

Ok I added a 2 seconds delay

Inviato dal mio SM-G950F utilizzando Tapatalk
Abbadon
Posts: 40
Joined: Thursday 01 October 2015 8:25
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Poland, Wrocław
Contact:

Re: Android voice control "Ok Google" like "Google Home" for free!

Post by Abbadon »

DutchHans wrote:Hello all,
Voicecontrol can be much easier with Google Assistant and IFTTT.. create an applet with Google Assistant and Maker for a Url request.. you can even use variables. I have everything voicecontrolled..from asking what temperature it is..setting temperatures..controlling Harmony.. , garage doors, lights etc... Even when my phone is in my pocket I can just say" ok google, open the door" Assistant responses with "sure" and the door opens instantly...

Thought some of you might be interested..
Regards, Hans
Can you tell us more? how to get voice info about temperature in room?
tontze
Posts: 317
Joined: Thursday 12 January 2017 15:30
Target OS: Linux
Domoticz version: Beta Ch
Location: Finland
Contact:

Re: Android voice control "Ok Google" like "Google Home" for free!

Post by tontze »

DutchHans wrote:@ blauwebuis...

Please explain...
obviously, voice assistant services are constantly listening you and your quests. Whetever they send information further than their own service, that i do not know ..
-----------------------------------------
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
Wob76
Posts: 110
Joined: Wednesday 19 April 2017 6:31
Target OS: Linux
Domoticz version:
Contact:

Re: Android voice control "Ok Google" like "Google Home" for free!

Post by Wob76 »

DutchHans wrote:Hello all,
Voicecontrol can be much easier with Google Assistant and IFTTT.. create an applet with Google Assistant and Maker for a Url request.. you can even use variables. I have everything voicecontrolled..from asking what temperature it is..setting temperatures..controlling Harmony.. , garage doors, lights etc... Even when my phone is in my pocket I can just say" ok google, open the door" Assistant responses with "sure" and the door opens instantly...

Thought some of you might be interested..
Regards, Hans
Hi,

I have played around with Google Assistant to URL, I have this working to trigger objects. I couldn't work out how to get a response back, could you explain how are you getting a response to temperature request?

Thanks,
Wob

Sent from my SM-G935F using Tapatalk

DutchHans
Posts: 229
Joined: Friday 03 April 2015 20:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Germany (near dutch border)
Contact:

Re: Android voice control "Ok Google" like "Google Home" for free!

Post by DutchHans »

Hi Wob,

Ok, here you go. I guess you have Google Assistant installed.

Part 1
Go to ifttt.com and sign in (its free). Click "New applet". click "+this". Then search for Google Assistant. Choose trigger. Click on "Say a simple phrase". Fill in what you want to say in the box "What do you want to say?" For example "Switch the light on" in the next box (optional) "Switch on the light" and the third (optional) "Lights please". Fill in what Assistant has to reply when it understood your command "What do you want the Assistant to say in response?" for example:"Sure, No Problem". I leave language on english. Than "Create trigger"

Part 2
Click on "+that". Choose action service. Search for "Make a web request" in the URL you fill in the json api URL, like: "http://user:password@yourserver:8080/js ... itchcmd=On" For method you choose "GET" and content type(optional) "application/json". than click Save.

You're done!
If you say "OK Google" "Switch the light on" the webrequest is made and the light switches on and Google replies with "Sure, no problem"

There are more things to discover in IFTTT. You can pass variables for example. Than things like "OK Google" "Set the livingroom temperature to 23 degrees" where 23 is a variable.

Hope this helps.

Cheers, Hans
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Android voice control "Ok Google" like "Google Home" for free!

Post by EdwinK »

I couldn't find the 'make a web request' thingy. For my HUE lights I used the Philips Hue recipe, and that is sort of working
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
DutchHans
Posts: 229
Joined: Friday 03 April 2015 20:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Germany (near dutch border)
Contact:

Re: Android voice control "Ok Google" like "Google Home" for free!

Post by DutchHans »

Sorry, its not called " make a webrequest" it's called "webhooks" (they changed the name)
DutchHans
Posts: 229
Joined: Friday 03 April 2015 20:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Germany (near dutch border)
Contact:

Re: Android voice control "Ok Google" like "Google Home" for free!

Post by DutchHans »

Sorry, its not called " make a webrequest" it's called "webhooks" (they changed the name)
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests