Domoticz-Google-Assistant (dzga) Topic is solved

Alexa, Google Home and Siri

Moderator: leecollings

User avatar
DewGew
Posts: 579
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10618
Location: Sweden
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by DewGew »

SterkeJerke wrote: Monday 08 June 2020 9:34 Did a compleet fresh install on a new Ubuntu server.
All looking pretty OK, apart from the NGROK part.
As soon as I set the using of NGROK to true in the config file dzga fails to start.
Turned on debuging and loggin.

The only thing I see is:
2020-06-08 07:26:22 - INFO - Installing package pyngrok
2020-06-08 07:26:23 - INFO - Installing package pyngrok
2020-06-08 07:26:24 - INFO - Installing package pyngrok
2020-06-08 07:26:25 - INFO - Installing package pyngrok
2020-06-08 07:26:25 - INFO - Installing package pyngrok
2020-06-08 07:30:26 - INFO - Installing package pyngrok
2020-06-08 07:30:27 - INFO - Installing package pyngrok
2020-06-08 07:30:27 - INFO - Installing package pyngrok
2020-06-08 07:30:28 - INFO - Installing package pyngrok
2020-06-08 07:30:29 - INFO - Installing package pyngrok


Looks like something missing in the install? how to install this package?
Try install manually:

Code: Select all

source Domoticz-Google-Assistant/env/bin/activate
pip install pyngrok
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
SterkeJerke
Posts: 18
Joined: Friday 01 February 2019 20:57
Target OS: Linux
Domoticz version:
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by SterkeJerke »

Works now! Thanks
User avatar
DewGew
Posts: 579
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10618
Location: Sweden
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by DewGew »

New version of DzGA Beta (V.1.8.1) is out for testing.
- Get room name from domoticz plans
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
Robbie
Posts: 29
Joined: Friday 04 September 2015 1:15
Target OS: NAS (Synology & others)
Domoticz version: 2.2980
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by Robbie »

Hi DewGew,

It’s hard to admit, but I’m going to need a little help.
I have gone trough the (well written and extensive) instructions, but in the home-app I keep getting the message “something went wrong, try again” upon adding the dzga-device.

I cannot find any hints in the debug-log, or anywhere else.

I am running the latest version of dzga and domoticz.
Dzga is running on a synology nas.
SSL enabled with a self-signed cert, a fqdn, and reverse proxy.

Can you advice me how to go about troubleshooting my issue?
EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

Re: Domoticz-Google-Assistant (dzga)

Post by EddyG »

DewGew wrote: Friday 19 June 2020 10:10 New version of DzGA Beta (V.1.8.1) is out for testing.
- Get room name from domoticz plans
Love to test it, but needs a little bit more explanation. I could not find it it the wiki, or did not look good enough.
bramhut
Posts: 2
Joined: Sunday 21 June 2020 20:28
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by bramhut »

Robbie wrote: Sunday 21 June 2020 17:30 Hi DewGew,

It’s hard to admit, but I’m going to need a little help.
I have gone trough the (well written and extensive) instructions, but in the home-app I keep getting the message “something went wrong, try again” upon adding the dzga-device.

I cannot find any hints in the debug-log, or anywhere else.

I am running the latest version of dzga and domoticz.
Dzga is running on a synology nas.
SSL enabled with a self-signed cert, a fqdn, and reverse proxy.

Can you advice me how to go about troubleshooting my issue?
I'm having the same issue...

I have rechecked the Google settings and carefully followed the instructions. I'm also using a reverse proxy, which is functioning good.
User avatar
DewGew
Posts: 579
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10618
Location: Sweden
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by DewGew »

bramhut wrote: Sunday 21 June 2020 20:36
Robbie wrote: Sunday 21 June 2020 17:30 Hi DewGew,

It’s hard to admit, but I’m going to need a little help.
I have gone trough the (well written and extensive) instructions, but in the home-app I keep getting the message “something went wrong, try again” upon adding the dzga-device.

I cannot find any hints in the debug-log, or anywhere else.

I am running the latest version of dzga and domoticz.
Dzga is running on a synology nas.
SSL enabled with a self-signed cert, a fqdn, and reverse proxy.

Can you advice me how to go about troubleshooting my issue?
I'm having the same issue...

I have rechecked the Google settings and carefully followed the instructions. I'm also using a reverse proxy, which is functioning good.
Check settings in Actions on Google and dont forget to click ’TEST’ button
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
Robbie
Posts: 29
Joined: Friday 04 September 2015 1:15
Target OS: NAS (Synology & others)
Domoticz version: 2.2980
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by Robbie »

I checked the setting numerous times, and I enabled TEST every time.

Just to verify;
- Is it possible to run it with “ sampleClientId” and “ sampleClientSecret”, even when I have created an OAuth client ID?

- While creating the credentials, the option “other” is not available...

Is there any way to debug the google-actions settings?
Robbie
Posts: 29
Joined: Friday 04 September 2015 1:15
Target OS: NAS (Synology & others)
Domoticz version: 2.2980
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by Robbie »

I see having multiple config guides leads to confusion.
There is one in domoticz forum, one in dzga, and one on github.

Do I add a ClientID and Secret to config.yaml or not?
Either way I cant manage to get it working 🤷‍♂️
User avatar
DewGew
Posts: 579
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10618
Location: Sweden
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by DewGew »

Robbie wrote: Monday 22 June 2020 18:25 I see having multiple config guides leads to confusion.
There is one in domoticz forum, one in dzga, and one on github.

Do I add a ClientID and Secret to config.yaml or not?
Either way I cant manage to get it working 🤷‍♂️
Github wiki is most rescent to follow. ClintID and Secret is optional you dont need to add that to config.yaml. Just set “ sampleClientId” and “ sampleClientSecret” in Action on Google. No need to create credientials.
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
Robbie
Posts: 29
Joined: Friday 04 September 2015 1:15
Target OS: NAS (Synology & others)
Domoticz version: 2.2980
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by Robbie »

DewGew wrote: Tuesday 23 June 2020 9:20
Robbie wrote: Monday 22 June 2020 18:25 I see having multiple config guides leads to confusion.
There is one in domoticz forum, one in dzga, and one on github.

Do I add a ClientID and Secret to config.yaml or not?
Either way I cant manage to get it working 🤷‍♂️
Github wiki is most rescent to follow. ClintID and Secret is optional you dont need to add that to config.yaml. Just set “ sampleClientId” and “ sampleClientSecret” in Action on Google. No need to create credientials.
Yes, so I followed all instruction correct, to no avail.
I started over a couple of times. The installation went well, and so did the google-actions-setup. But in the home-app, the device fails when I try to add it.

I even tried to go trough all issues described in the former Google-Assistant topic in this forum, but non solved it.

Can there be an issue with the SSL certificate?
Are there any language restrictions? (Domoticz vs. Google Actions project vs. Home app)
Does the path for DZGA specifically need to be in the $USER-dir?
My sync url shows me this: Page not found!: 404 Client Error: Not Found for url: https://homegraph.googleapis.com/v1/devices:requestSync. Is this a hint of what might be wrong?

As you can see, I'm running out of options to find the cause of the problem.
I'm sorry to bug you with this, but it would be great to get this up and running.

Thanks a bunch! :)
User avatar
DewGew
Posts: 579
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10618
Location: Sweden
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by DewGew »

Robbie wrote: Friday 26 June 2020 20:31
DewGew wrote: Tuesday 23 June 2020 9:20
Robbie wrote: Monday 22 June 2020 18:25 I see having multiple config guides leads to confusion.
There is one in domoticz forum, one in dzga, and one on github.

Do I add a ClientID and Secret to config.yaml or not?
Either way I cant manage to get it working 🤷‍♂️
Github wiki is most rescent to follow. ClintID and Secret is optional you dont need to add that to config.yaml. Just set “ sampleClientId” and “ sampleClientSecret” in Action on Google. No need to create credientials.
Yes, so I followed all instruction correct, to no avail.
I started over a couple of times. The installation went well, and so did the google-actions-setup. But in the home-app, the device fails when I try to add it.

I even tried to go trough all issues described in the former Google-Assistant topic in this forum, but non solved it.

Can there be an issue with the SSL certificate?
Are there any language restrictions? (Domoticz vs. Google Actions project vs. Home app)
Does the path for DZGA specifically need to be in the $USER-dir?
My sync url shows me this: Page not found!: 404 Client Error: Not Found for url: https://homegraph.googleapis.com/v1/devices:requestSync. Is this a hint of what might be wrong?

As you can see, I'm running out of options to find the cause of the problem.
I'm sorry to bug you with this, but it would be great to get this up and running.

Thanks a bunch! :)
Is you certificate valid? If you goto https://your.dzga/settings to se if there is any warnings
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
Robbie
Posts: 29
Joined: Friday 04 September 2015 1:15
Target OS: NAS (Synology & others)
Domoticz version: 2.2980
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by Robbie »

It's a selfsigned certificate, so naturally it's not trusted. Furthermore it works as expected, no certificate problems.

From the log, (these are just normal lines right?):

2020-06-26 21:16:50 - DEBUG - Starting new HTTPS connection (1): raw.githubusercontent.com:443
2020-06-26 21:16:50 - DEBUG - https://raw.githubusercontent.com:443 "GET /DewGew/Domoticz-Google-Assistant/master/const.py HTTP/1.1" 200 13051
2020-06-26 21:16:52 - DEBUG - Starting new HTTPS connection (1): accounts.google.com:443
2020-06-26 21:16:52 - DEBUG - https://accounts.google.com:443 "POST /o/oauth2/token HTTP/1.1" 200 None
2020-06-26 21:16:53 - DEBUG - Starting new HTTPS connection (1): homegraph.googleapis.com:443
2020-06-26 21:16:53 - DEBUG - https://homegraph.googleapis.com:443 "POST /v1/devices:requestSync HTTP/1.1" 404 None
User avatar
DewGew
Posts: 579
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10618
Location: Sweden
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by DewGew »

Google dont accept self signed certificate get a let’s encrypt cert https://github.com/DewGew/Domoticz-Goog ... erse-proxy
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
Robbie
Posts: 29
Joined: Friday 04 September 2015 1:15
Target OS: NAS (Synology & others)
Domoticz version: 2.2980
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by Robbie »

DewGew wrote: Friday 26 June 2020 21:45 Google dont accept self signed certificate get a let’s encrypt cert https://github.com/DewGew/Domoticz-Goog ... erse-proxy
Hahahha okay :p I'm puzzeled though, you had openSSL instruction in the wiki on github. I see it's edited now :)
I will give it a go!
bramhut
Posts: 2
Joined: Sunday 21 June 2020 20:28
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by bramhut »

DewGew wrote: Friday 26 June 2020 21:45 Google dont accept self signed certificate get a let’s encrypt cert https://github.com/DewGew/Domoticz-Goog ... erse-proxy
Thanks, it works like a charm now!
Borderman
Posts: 2
Joined: Friday 11 April 2014 15:34
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by Borderman »

I have domoticz running on a Pi3B+ and a test version on a Pi2B
I have integrated the Pi3B+ with HomeBridge and Google Home.
I can give talking commands, but....
The integration with HomeBridge is not so good. Synchronisation does not work all the time.
So I want to leave Homebridge and try DZGA.
I am not a crack with unix, so I need help.
I have installed DZGA on the test PI2B, but be confronted with a lot af issues.
I cannot connect with http://ipnr/settings
and I am not sure if I have it installed right and how to configure ngrok, and so on.
Has anyone a more detailed instruction how to install and configure and how to work with it?
May in English or in Dutch.
Thanks in advance.
Pi3B+ with Domoticz 2020.2, RFXtrx433 USB Firmware 62
Oregon temp. sensors, klikaanklikuit switches
Youless monitor, Samsungtv via SamsungCTL
Speech with HomeBridge, Edomoticz and Homebridge-gsh to Google Home
Zigbee2mqtt and Ikea switches
User avatar
DewGew
Posts: 579
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10618
Location: Sweden
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by DewGew »

Borderman wrote: Monday 29 June 2020 16:34 I have domoticz running on a Pi3B+ and a test version on a Pi2B
I have integrated the Pi3B+ with HomeBridge and Google Home.
I can give talking commands, but....
The integration with HomeBridge is not so good. Synchronisation does not work all the time.
So I want to leave Homebridge and try DZGA.
I am not a crack with unix, so I need help.
I have installed DZGA on the test PI2B, but be confronted with a lot af issues.
I cannot connect with http://ipnr/settings
and I am not sure if I have it installed right and how to configure ngrok, and so on.
Has anyone a more detailed instruction how to install and configure and how to work with it?
May in English or in Dutch.
Thanks in advance.
Take a look at wiki https://github.com/DewGew/Domoticz-Goog ... stant/wiki
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
kabaret10
Posts: 3
Joined: Sunday 26 July 2020 9:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by kabaret10 »

I have encountered error during container start with python. I don't know what could be wrong ?
Is it just missing? Do I need to recreate img with dockerfile?

Code: Select all


pi@raspberrypi:~ $ docker-compose -f /home/pi/Domoticz-Google-Assistant/docker-compose.yaml up -d
Creating domoticz-google-assistant ... error

ERROR: for domoticz-google-assistant  Cannot start service dz-googleassistant: OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"python3 /__main__.py\": stat python3 /__main__.py: no such file or directory": unknown

ERROR: for dz-googleassistant  Cannot start service dz-googleassistant: OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"python3 /__main__.py\": stat python3 /__main__.py: no such file or directory": unknown
ERROR: Encountered errors while bringing up the project.
Flappie
Posts: 18
Joined: Tuesday 10 January 2017 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by Flappie »

Since IFTTT is stopping its free service, i'm trying to install dzga.
However, the installation script does not work?

When entering the command in SSH, nothing happens?
Image
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest