Domoticz to Google Assistant integration
Moderator: leecollings
- 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
Do you get the devices in Google Home app?
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
New functions: https://www.domoticz.com/wiki/Google_A ... ver_python
Speaker volume:
User: Set volume on living room speaker to 50%
Google Assistant: Sure
User: Turn up the volume on living room speaker?
Google Assistant: Alright (Volume increases with 1%)
When a device has low battery:
User: Lock front door.
Google Assistant: The front door lock has low battery. Locking the front door.
Speaker volume:
User: Set volume on living room speaker to 50%
Google Assistant: Sure
User: Turn up the volume on living room speaker?
Google Assistant: Alright (Volume increases with 1%)
When a device has low battery:
User: Lock front door.
Google Assistant: The front door lock has low battery. Locking the front door.
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: 3
- Joined: Wednesday 26 June 2019 23:06
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10717
- Location: United States
- Contact:
Re: Domoticz to Google Assistan integration
I have this same issue as GreenSmart01 anyone have a solution? I am watching the Google Assistant web server and it is conecting just won't add to my Google Home? After authentication it just says Couldn't update the settings. Check your connection.
-
- Posts: 22
- Joined: Sunday 01 January 2017 17:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10856
- Location: Zeeland
- Contact:
-
- Posts: 22
- Joined: Sunday 01 January 2017 17:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10856
- Location: Zeeland
- Contact:
Re: Domoticz to Google Assistan integration
Still the same error.
-
- Posts: 22
- Joined: Sunday 01 January 2017 17:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10856
- Location: Zeeland
- Contact:
Re: Domoticz to Google Assistan integration
Can u tell me with ports to open and to what device?
domoticz to the https poort ?
3030 to the google poort ?
domoticz to the https poort ?
3030 to the google poort ?
- 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
Importhamn: On the left navigation menu under BUILD, click on Actions. Click on Add Your First Action and choose your app's language(s). Enter the URL for fulfillment,
e.g. https://<YOUR REVERSE PROXY URL>/smarthome (replace with your actual URL), click Done.
And dont forget to start test in actions also
e.g. https://<YOUR REVERSE PROXY URL>/smarthome (replace with your actual URL), click Done.
And dont forget to start test in actions also
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: 22
- Joined: Sunday 01 January 2017 17:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10856
- Location: Zeeland
- Contact:
Re: Domoticz to Google Assistan integration
i did that, i see my [test] appDewGew wrote: ↑Friday 28 June 2019 19:26 Importhamn: On the left navigation menu under BUILD, click on Actions. Click on Add Your First Action and choose your app's language(s). Enter the URL for fulfillment,
e.g. https://<YOUR REVERSE PROXY URL>/smarthome (replace with your actual URL), click Done.
And dont forget to start test in actions also
-
- Posts: 22
- Joined: Sunday 01 January 2017 17:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10856
- Location: Zeeland
- Contact:
Re: Domoticz to Google Assistan integration
its working
did it 3 times over and over again...
didnt know what was wrong..
did it 3 times over and over again...
didnt know what was wrong..
-
- Posts: 3
- Joined: Wednesday 26 June 2019 23:06
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10717
- Location: United States
- Contact:
Re: Domoticz to Google Assistan integration
Hmmm mine doesn't work still same issue I even tried to test from the PC in the test area and get an error. When I try to add the app in google home I still get the login and it accepts my credentials then I get the Couldn't update the setting. Check your connection error. Testing is Enabled should be working I would think? When I go to https://(my Domain)/smarthome from my browser I get an error 500 my web server shows this [01/Jul/2019 14:51:54] "GET /smarthome HTTP/1.1" 500 - so it is reaching the server. At a loss right now on what could be the issue.
- 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
Check your Domoticz settings in config.py i had isseues with users. Try admin userTotalImmortal64 wrote: ↑Monday 01 July 2019 21:46 Hmmm mine doesn't work still same issue I even tried to test from the PC in the test area and get an error. When I try to add the app in google home I still get the login and it accepts my credentials then I get the Couldn't update the setting. Check your connection error. Testing is Enabled should be working I would think? When I go to https://(my Domain)/smarthome from my browser I get an error 500 my web server shows this [01/Jul/2019 14:51:54] "GET /smarthome HTTP/1.1" 500 - so it is reaching the server. At a loss right now on what could be the issue.
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: 3
- Joined: Wednesday 26 June 2019 23:06
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10717
- Location: United States
- Contact:
Re: Domoticz to Google Assistan integration
So I have the users all setup correctly and I am getting account linking failed after the login? Something on the Google side?DewGew wrote: ↑Tuesday 02 July 2019 14:39Check your Domoticz settings in config.py i had isseues with users. Try admin userTotalImmortal64 wrote: ↑Monday 01 July 2019 21:46 Hmmm mine doesn't work still same issue I even tried to test from the PC in the test area and get an error. When I try to add the app in google home I still get the login and it accepts my credentials then I get the Couldn't update the setting. Check your connection error. Testing is Enabled should be working I would think? When I go to https://(my Domain)/smarthome from my browser I get an error 500 my web server shows this [01/Jul/2019 14:51:54] "GET /smarthome HTTP/1.1" 500 - so it is reaching the server. At a loss right now on what could be the issue.
The web server shows HTTP error 307
Last edited by TotalImmortal64 on Tuesday 02 July 2019 18:40, edited 1 time in total.
- 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 think Somthing with user rights.TotalImmortal64 wrote: ↑Tuesday 02 July 2019 18:13So I have the users all setup correctly and I am getting account linking failed after the login? Something on the Google side?DewGew wrote: ↑Tuesday 02 July 2019 14:39Check your Domoticz settings in config.py i had isseues with users. Try admin userTotalImmortal64 wrote: ↑Monday 01 July 2019 21:46 Hmmm mine doesn't work still same issue I even tried to test from the PC in the test area and get an error. When I try to add the app in google home I still get the login and it accepts my credentials then I get the Couldn't update the setting. Check your connection error. Testing is Enabled should be working I would think? When I go to https://(my Domain)/smarthome from my browser I get an error 500 my web server shows this [01/Jul/2019 14:51:54] "GET /smarthome HTTP/1.1" 500 - so it is reaching the server. At a loss right now on what could be the issue.
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
We made some changes. Try out latst on github https://github.com/DewGew/Domoticz-Google-AssistantTotalImmortal64 wrote: ↑Monday 01 July 2019 21:46 Hmmm mine doesn't work still same issue I even tried to test from the PC in the test area and get an error. When I try to add the app in google home I still get the login and it accepts my credentials then I get the Couldn't update the setting. Check your connection error. Testing is Enabled should be working I would think? When I go to https://(my Domain)/smarthome from my browser I get an error 500 my web server shows this [01/Jul/2019 14:51:54] "GET /smarthome HTTP/1.1" 500 - so it is reaching the server. At a loss right now on what could be the issue.
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
New function:
Stream security camera to chromecast. Supports hls, dash, smooth streaming, Progressive MP4 urls. You need a to convert your video url to one of those. Try with ffmpeg or with a surveillance software system. I use http://shinobi.video.
https://github.com/DewGew/Domoticz-Google-Assistant
Stream security camera to chromecast. Supports hls, dash, smooth streaming, Progressive MP4 urls. You need a to convert your video url to one of those. Try with ffmpeg or with a surveillance software system. I use http://shinobi.video.
https://github.com/DewGew/Domoticz-Google-Assistant
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: 5
- Joined: Thursday 29 August 2019 19:45
- Target OS: -
- Domoticz version:
- Contact:
Re: Domoticz to Google Assistan integration
Allmost everything is working well. Thanks for the effort you have put into this.
The one thing i am unable to get to work is the thermostaat. The thermostat is working from within Domoticz, however the Google Assistent is refusing to change the value of the thermostat. Is this because it is not supported or because i am doing something wrong?
The one thing i am unable to get to work is the thermostaat. The thermostat is working from within Domoticz, however the Google Assistent is refusing to change the value of the thermostat. Is this because it is not supported or because i am doing something wrong?
- 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 dont have any thermostat I only tryed out with a dummy thermostat and that worked for me. Maybe your device type is missing. You can enter http://your.ipadress:8080/json.htm?type=devices&rid=IDX in your browser and put the result here ( change IDX to your thermostat idx)freakyman88 wrote: ↑Thursday 29 August 2019 19:50 Allmost everything is working well. Thanks for the effort you have put into this.
The one thing i am unable to get to work is the thermostaat. The thermostat is working from within Domoticz, however the Google Assistent is refusing to change the value of the thermostat. Is this because it is not supported or because i am doing something wrong?
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: 528
- Joined: Thursday 02 April 2015 8:46
- Target OS: Linux
- Domoticz version: 2020+
- Location: The Netherlands
- Contact:
Re: Domoticz to Google Assistant integration
I have the same problem with my Nefit Easy thermostat. Google assistant says that setting the temperature is not supported. I verified that the execute routine in class TemperatureSettingTrait (trait.py) does not run at all by putting in print statement in it and running your program from the command line.
After some experimenting I still don't understand how the capabilities of devices are determined. I can manually change the temperature from Domoticz and the Domoticz (json) api.
result of http://your.ipadress:8080/json.htm?type=devices&rid=IDX :
After some experimenting I still don't understand how the capabilities of devices are determined. I can manually change the temperature from Domoticz and the Domoticz (json) api.
result of http://your.ipadress:8080/json.htm?type=devices&rid=IDX :
Code: Select all
{
"ActTime" : 1567445303,
"AstrTwilightEnd" : "22:27",
"AstrTwilightStart" : "04:38",
"CivTwilightEnd" : "20:55",
"CivTwilightStart" : "06:10",
"DayLength" : "13:34",
"NautTwilightEnd" : "21:39",
"NautTwilightStart" : "05:26",
"ServerTime" : "2019-09-02 19:28:23",
"SunAtSouth" : "13:32",
"Sunrise" : "06:45",
"Sunset" : "20:20",
"app_version" : "4.11231",
"result" : [
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 0,
"Data" : "18.5",
"Description" : "",
"Favorite" : 1,
"HardwareID" : 4,
"HardwareName" : "Nefit EASY",
"HardwareType" : "Nefit Easy HTTP server over LAN interface",
"HardwareTypeVal" : 68,
"HaveTimeout" : false,
"ID" : "0010101",
"LastUpdate" : "2019-09-02 19:28:18",
"Name" : "CV.Setpoint",
"Notifications" : "false",
"PlanID" : "11",
"PlanIDs" : [ 11 ],
"Protected" : false,
"SetPoint" : "18.5",
"ShowNotifications" : true,
"SignalLevel" : "-",
"SubType" : "SetPoint",
"Timers" : "false",
"Type" : "Thermostat",
"TypeImg" : "override_mini",
"Unit" : 1,
"Used" : 1,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "29"
}
],
"status" : "OK",
"title" : "Devices"
}
-
- Posts: 528
- Joined: Thursday 02 April 2015 8:46
- Target OS: Linux
- Domoticz version: 2020+
- Location: The Netherlands
- Contact:
Re: Domoticz to Google Assistant integration
B.t.w. I also tried to add a door contact domain but could not get it to work. In your master branch it shows as a light, but it is alway on. It will update correctly after replacing line 125 of traits.py with:
I wanted it to show as a door, but was unsuccessful. Added all the bits in smarthome.py, const.py and trait.py (but reverted the code, so I cannot share it ) The trait it should use was 'OpenCloseTrait', but it only ran the sync_attribute. Never the query_attributes. I tested this (again) with a print statement in the code and running from command line. The device would show up in the google home app as a unusable (unknown?) thing with a cogwheel. After revering the code I tried some other (PIR) sensor and it will show with same cogwheel icon. Seems not every type of device is working, even in the current master branch... I will do some more digging around until I really understand how this code actually works, but if you can give some pointers that will be great.
Code: Select all
response['on'] = self.state.state not in ['Off', 'Closed']
I wanted it to show as a door, but was unsuccessful. Added all the bits in smarthome.py, const.py and trait.py (but reverted the code, so I cannot share it ) The trait it should use was 'OpenCloseTrait', but it only ran the sync_attribute. Never the query_attributes. I tested this (again) with a print statement in the code and running from command line. The device would show up in the google home app as a unusable (unknown?) thing with a cogwheel. After revering the code I tried some other (PIR) sensor and it will show with same cogwheel icon. Seems not every type of device is working, even in the current master branch... I will do some more digging around until I really understand how this code actually works, but if you can give some pointers that will be great.
- 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 Assistant integration
'Door contact' domain is not yet added to smarthome.py so only 'door lock' domain works. Thats why it shows a light.EscApe wrote: ↑Monday 02 September 2019 20:01 B.t.w. I also tried to add a door contact domain but could not get it to work. In your master branch it shows as a light, but it is alway on. It will update correctly after replacing line 125 of traits.py with:Code: Select all
response['on'] = self.state.state not in ['Off', 'Closed']
I wanted it to show as a door, but was unsuccessful. Added all the bits in smarthome.py, const.py and trait.py (but reverted the code, so I cannot share it ) The trait it should use was 'OpenCloseTrait', but it only ran the sync_attribute. Never the query_attributes. I tested this (again) with a print statement in the code and running from command line. The device would show up in the google home app as a unusable (unknown?) thing with a cogwheel. After revering the code I tried some other (PIR) sensor and it will show with same cogwheel icon. Seems not every type of device is working, even in the current master branch...
IMG_6873.jpeg
I will do some more digging around until I really understand how this code actually works, but if you can give some pointers that will be great.
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 1 guest