Domoticz to Google Assistant integration
Moderator: leecollings
-
- Posts: 234
- Joined: Sunday 27 August 2017 18:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Spain
- Contact:
Re: Domoticz to Google Assistan integration
HELLO..
This is a very interesting solution! but i dont understand somo of the things you make
i will search for more info about configuration a reverse proxy in the synology (i have one too) and maybe i cand understand all.
Because, its not posible to make this solution without this reverse proxy?, only redirecting ports in router?
thanks!
This is a very interesting solution! but i dont understand somo of the things you make
i will search for more info about configuration a reverse proxy in the synology (i have one too) and maybe i cand understand all.
Because, its not posible to make this solution without this reverse proxy?, only redirecting ports in router?
thanks!
- DewGew
- Posts: 579
- Joined: Thursday 21 April 2016 12:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V4.10618
- Location: Sweden
- Contact:
Re: Domoticz to Google Assistan integration
It's not so difficult:DAVIZINHO wrote: ↑Wednesday 10 April 2019 11:48 HELLO..
This is a very interesting solution! but i dont understand somo of the things you make
i will search for more info about configuration a reverse proxy in the synology (i have one too) and maybe i cand understand all.
Because, its not posible to make this solution without this reverse proxy?, only redirecting ports in router?
thanks!
https://www.grahamleggat.com/blog/2017/ ... oxy-server
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
-
- Posts: 234
- Joined: Sunday 27 August 2017 18:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Spain
- Contact:
Re: Domoticz to Google Assistan integration
Thanks a lot for the info! is great.DewGew wrote: ↑Wednesday 10 April 2019 13:44It's not so difficult:DAVIZINHO wrote: ↑Wednesday 10 April 2019 11:48 HELLO..
This is a very interesting solution! but i dont understand somo of the things you make
i will search for more info about configuration a reverse proxy in the synology (i have one too) and maybe i cand understand all.
Because, its not posible to make this solution without this reverse proxy?, only redirecting ports in router?
thanks!
https://www.grahamleggat.com/blog/2017/ ... oxy-server
But i dont understand the needing of reverse proxy, is only for make a secure connection?. No i access to my domoticz with a secure ssl connection with a letsencrypt certification.
Its not posible to connect directly?
i think i dont understand something and im wrong sorry
-
- Posts: 41
- Joined: Monday 12 October 2015 19:57
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Domoticz to Google Assistan integration
Great work sofar!
I'm trying to set things up but I get these responses when I'm trying to sync devices with https://[PROXY URL]/sync
browser:
The action simulator also gives errors when trying to talk to the my app's name
I'm trying to set things up but I get these responses when I'm trying to sync devices with https://[PROXY URL]/sync
browser:
consoleSynchronization request sent, status_code: 404
I'm a doing something wrong?127.0.0.1 - - [10/Apr/2019 15:30:41] "GET /sync?code=6887d014144740c890c58be4c61f3a48&state=undefined HTTP/1.0" 200 -
The action simulator also gives errors when trying to talk to the my app's name
We're sorry, but something went wrong. Please try again.
-
- Posts: 41
- Joined: Monday 12 October 2015 19:57
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Domoticz to Google Assistan integration
Got it! I had to link the service to the assistant on my phoneEldigoR wrote:Great work sofar!
I'm trying to set things up but I get these responses when I'm trying to sync devices with https://[PROXY URL]/sync
browser:consoleSynchronization request sent, status_code: 404I'm a doing something wrong?127.0.0.1 - - [10/Apr/2019 15:30:41] "GET /sync?code=6887d014144740c890c58be4c61f3a48&state=undefined HTTP/1.0" 200 -
The action simulator also gives errors when trying to talk to the my app's nameWe're sorry, but something went wrong. Please try again.
I now see the domoticz scenes
-
- Posts: 41
- Joined: Monday 12 October 2015 19:57
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Domoticz to Google Assistan integration
Does it sync switches as well? Or do they need to be manually added in config.py?
-
- Posts: 41
- Joined: Monday 12 October 2015 19:57
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Domoticz to Google Assistan integration
Talking too my self hereEldigoR wrote:Does it sync switches as well? Or do they need to be manually added in config.py?
It does sync switches when the type is "Type" : "Light/Switch"
My rfxcom switches are type "Type" : "Lighting 2", Those do not sync (yet).
- DewGew
- Posts: 579
- Joined: Thursday 21 April 2016 12:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V4.10618
- Location: Sweden
- Contact:
Re: Domoticz to Google Assistan integration
It syncs well enoughEldigoR wrote: ↑Thursday 11 April 2019 10:29Talking too my self hereEldigoR wrote:Does it sync switches as well? Or do they need to be manually added in config.py?
It does sync switches when the type is "Type" : "Light/Switch"
My rfxcom switches are type "Type" : "Lighting 2", Those do not sync (yet).
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
- DewGew
- Posts: 579
- Joined: Thursday 21 April 2016 12:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V4.10618
- Location: Sweden
- Contact:
Re: Domoticz to Google Assistan integration
I have a modifyed version here: https://github.com/DewGew/Domoticz-Google-AssistantEldigoR wrote: ↑Thursday 11 April 2019 10:29Talking too my self hereEldigoR wrote:Does it sync switches as well? Or do they need to be manually added in config.py?
It does sync switches when the type is "Type" : "Light/Switch"
My rfxcom switches are type "Type" : "Lighting 2", Those do not sync (yet).
Would be great if you want to test it.
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
-
- Posts: 41
- Joined: Monday 12 October 2015 19:57
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Domoticz to Google Assistan integration
Cool, I will give it a try tonight.I have a modified version here: https://github.com/DewGew/Domoticz-Google-Assistant
Would be great if you want to test it.
As I have a lot of switches which don't have to be controlled by voice, I'd made a room especially to sync with the assistant.
Added in the config.py
Code: Select all
ROOMPLAN = '6'
Code: Select all
DOMOTICZ_GET_ALL_DEVICES_URL = DOMOTICZ_URL + '/json.htm?type=devices&filter=all&used=true&plan=' + ROOMPLAN
-
- Posts: 41
- Joined: Monday 12 October 2015 19:57
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Domoticz to Google Assistan integration
You have made some nice progress!
never thought of adding temperature
I noticed 2 things.
[*]When I ask the temperature, google also answered that the temperature device is off
like: it's 20 degrees and in the livingroom is off.
[*]The blinds and screen detection isn't working for me
it wil never detect my blinds as blinds because the device["Type"] is "Lighting 2" and Type" : "RFY" in my setup.
other than that great job
never thought of adding temperature
I noticed 2 things.
[*]When I ask the temperature, google also answered that the temperature device is off
like: it's 20 degrees and in the livingroom is off.
[*]The blinds and screen detection isn't working for me
Code: Select all
if 'Light/Switch' == device["Type"]:
if device["SwitchType"] in ['Blinds', 'Venetian Blinds EU', 'Venetian Blinds US'] :
return blindsDOMAIN
other than that great job
- DewGew
- Posts: 579
- Joined: Thursday 21 April 2016 12:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V4.10618
- Location: Sweden
- Contact:
Re: Domoticz to Google Assistan integration
I just use a separate user for GA and assign devices in user settings. Then I can see in the log if GA swithches the devices.EldigoR wrote: ↑Thursday 11 April 2019 17:19Cool, I will give it a try tonight.I have a modified version here: https://github.com/DewGew/Domoticz-Google-Assistant
Would be great if you want to test it.
As I have a lot of switches which don't have to be controlled by voice, I'd made a room especially to sync with the assistant.
Added in the config.pyand change this URL:Code: Select all
ROOMPLAN = '6'
It would be great if you can implement this as wellCode: Select all
DOMOTICZ_GET_ALL_DEVICES_URL = DOMOTICZ_URL + '/json.htm?type=devices&filter=all&used=true&plan=' + ROOMPLAN
Try to fix the issues about the blinds..
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
-
- Posts: 41
- Joined: Monday 12 October 2015 19:57
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Domoticz to Google Assistan integration
Good one!DewGew wrote: I just use a separate user for GA and assign devices in user settings. Then I can see in the log if GA swithches the devices.
-
- Posts: 60
- Joined: Thursday 20 April 2017 7:20
- Target OS: Linux
- Domoticz version: Latest
- Contact:
Re: Domoticz to Google Assistan integration
There is a setting called "queryOnlyTemperatureSetting" but I havent got any luck with this setting.
https://developers.google.com/actions/ ... uresetting
Also I don't see the point with modes on thermostats. Changing this will not do anything in Domoticz?
- DewGew
- Posts: 579
- Joined: Thursday 21 April 2016 12:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V4.10618
- Location: Sweden
- Contact:
Re: Domoticz to Google Assistan integration
Assistant says "inactivated" instead of "off"ressof wrote: ↑Friday 12 April 2019 10:15There is a setting called "queryOnlyTemperatureSetting" but I havent got any luck with this setting.
https://developers.google.com/actions/ ... uresetting
Also I don't see the point with modes on thermostats. Changing this will not do anything in Domoticz?
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
- DewGew
- Posts: 579
- Joined: Thursday 21 April 2016 12:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V4.10618
- Location: Sweden
- Contact:
Re: Domoticz to Google Assistan integration
Test if you can get the blinds now.EldigoR wrote: ↑Thursday 11 April 2019 20:24 You have made some nice progress!
never thought of adding temperature
I noticed 2 things.
[*]When I ask the temperature, google also answered that the temperature device is off
like: it's 20 degrees and in the livingroom is off.
[*]The blinds and screen detection isn't working for meit wil never detect my blinds as blinds because the device["Type"] is "Lighting 2" and Type" : "RFY" in my setup.Code: Select all
if 'Light/Switch' == device["Type"]: if device["SwitchType"] in ['Blinds', 'Venetian Blinds EU', 'Venetian Blinds US'] : return blindsDOMAIN
other than that great job
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
-
- Posts: 41
- Joined: Monday 12 October 2015 19:57
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Domoticz to Google Assistan integration
Al most. The Lighting 2 types are working properly now but the Type" : "RFY" (which is my somfy screen) is still ignoredDewGew wrote: ↑Friday 12 April 2019 12:57Test if you can get the blinds now.EldigoR wrote: ↑Thursday 11 April 2019 20:24 You have made some nice progress!
never thought of adding temperature
I noticed 2 things.
[*]When I ask the temperature, google also answered that the temperature device is off
like: it's 20 degrees and in the livingroom is off.
[*]The blinds and screen detection isn't working for meit wil never detect my blinds as blinds because the device["Type"] is "Lighting 2" and Type" : "RFY" in my setup.Code: Select all
if 'Light/Switch' == device["Type"]: if device["SwitchType"] in ['Blinds', 'Venetian Blinds EU', 'Venetian Blinds US'] : return blindsDOMAIN
other than that great job
- DewGew
- Posts: 579
- Joined: Thursday 21 April 2016 12:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V4.10618
- Location: Sweden
- Contact:
Re: Domoticz to Google Assistan integration
”RFY” is that used for lights and switches too?
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
-
- Posts: 41
- Joined: Monday 12 October 2015 19:57
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Domoticz to Google Assistan integration
- DewGew
- Posts: 579
- Joined: Thursday 21 April 2016 12:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V4.10618
- Location: Sweden
- Contact:
Re: Domoticz to Google Assistan integration
I added RFYEldigoR wrote: ↑Friday 12 April 2019 15:25
I think it can be yes
https://shop.somfy.co.uk/smart-home/lights-switches
but I only have screens
Give it a try again
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
Who is online
Users browsing this forum: No registered users and 0 guests