Domoticz-Google-Assistant (dzga) Topic is solved

Alexa, Google Home and Siri

Moderator: leecollings

mrfatmen
Posts: 2
Joined: Thursday 24 September 2020 8:41
Target OS: Windows
Domoticz version:
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by mrfatmen »

Maybe i didn't look right.
I have 2 rollerblinds which are set in Domoticz as "Blinds percentage inverted"
Google reconized them as blinds but no percentage and there not inverted.
I now have to say open to close them and Close to open them.

Is this a setting i can change?
vodor
Posts: 39
Joined: Friday 19 February 2016 14:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by vodor »

I just completed my setup. Slight change from the original wiki article I used Haproxy instead of Nginx as I already had Haproxy for my remote access to my Domoticz. Having said that I have an additional layer of authentication on haproxy as that allows me to push those logs via fail2ban to prevent brute force attacks. Initially I tried dzga with my auth enabled on haproxy but it seems google does not use the token and auth urls correctly when they look like this https://user:[email protected]. I suspect they strip out the user bits and they keep getting firewalled out by fail2ban. As soon as I removed it it worked first time. So if anybody wants to use haproxy that also works. Thanks for this awesome piece of software and detailed documentation this could not have been a small amount of work. Now the transition away from IFTTT is much easier after the stunt they recently pulled trying to screw customers.
Moosjes
Posts: 6
Joined: Wednesday 10 January 2018 14:31
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by Moosjes »

mrfatmen wrote: Thursday 24 September 2020 8:49 Maybe i didn't look right.
I have 2 rollerblinds which are set in Domoticz as "Blinds percentage inverted"
Google reconized them as blinds but no percentage and there not inverted.
I now have to say open to close them and Close to open them.

Is this a setting i can change?
I am having the same issue. No solution yet
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 »

Moosjes wrote: Monday 28 September 2020 10:05
mrfatmen wrote: Thursday 24 September 2020 8:49 Maybe i didn't look right.
I have 2 rollerblinds which are set in Domoticz as "Blinds percentage inverted"
Google reconized them as blinds but no percentage and there not inverted.
I now have to say open to close them and Close to open them.

Is this a setting i can change?
I am having the same issue. No solution yet
I have added blinds inverted to beta branch, try it out. I dont use inverted so I need some feedback.
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
transalpes
Posts: 10
Joined: Thursday 17 October 2019 12:57
Target OS: Linux
Domoticz version:
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by transalpes »

DewGew wrote: Thursday 01 October 2020 8:03
Moosjes wrote: Monday 28 September 2020 10:05
mrfatmen wrote: Thursday 24 September 2020 8:49 Maybe i didn't look right.
I have 2 rollerblinds which are set in Domoticz as "Blinds percentage inverted"
Google reconized them as blinds but no percentage and there not inverted.
I now have to say open to close them and Close to open them.

Is this a setting i can change?
I am having the same issue. No solution yet
I have added blinds inverted to beta branch, try it out. I dont use inverted so I need some feedback.
Hello
When I say "open the shutter" google replies "the shutter is already open".

in the LOG I have: 2020-10-01 14:14:14 - ERROR - Unable to execute action.devices.commands.OpenClose for BlindInverted193. Already in state "

thank you for coming back

friendship
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 »

transalpes wrote: Thursday 01 October 2020 14:43
DewGew wrote: Thursday 01 October 2020 8:03
Moosjes wrote: Monday 28 September 2020 10:05

I am having the same issue. No solution yet
I have added blinds inverted to beta branch, try it out. I dont use inverted so I need some feedback.
Hello
When I say "open the shutter" google replies "the shutter is already open".

in the LOG I have: 2020-10-01 14:14:14 - ERROR - Unable to execute action.devices.commands.OpenClose for BlindInverted193. Already in state "

thank you for coming back

friendship
I missed adding some. But try now again with latest beta (1.8.8)
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
transalpes
Posts: 10
Joined: Thursday 17 October 2019 12:57
Target OS: Linux
Domoticz version:
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by transalpes »

Hello
I have another difficulty with the temperature devices, they are incremented from 0.5 to 0.5, is it possible to have them all?
example: 20, 20.5, 21, is it possible to have 20, 20.1, 20.2, 20.3, 20.4 .........?
thank you for coming back
friendship
transalpes
Posts: 10
Joined: Thursday 17 October 2019 12:57
Target OS: Linux
Domoticz version:
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by transalpes »

DewGew wrote: Thursday 01 October 2020 15:50
transalpes wrote: Thursday 01 October 2020 14:43
DewGew wrote: Thursday 01 October 2020 8:03
I have added blinds inverted to beta branch, try it out. I dont use inverted so I need some feedback.
Hello
When I say "open the shutter" google replies "the shutter is already open".

in the LOG I have: 2020-10-01 14:14:14 - ERROR - Unable to execute action.devices.commands.OpenClose for BlindInverted193. Already in state "

thank you for coming back

friendship
I missed adding some. But try now again with latest beta (1.8.8)
I always have the same message:
2020-10-01 18:43:17 - ERROR - Unable to execute action.devices.commands.OpenClose for BlindInverted193. Already in state
transalpes
Posts: 10
Joined: Thursday 17 October 2019 12:57
Target OS: Linux
Domoticz version:
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by transalpes »

transalpes wrote: Thursday 01 October 2020 18:46
DewGew wrote: Thursday 01 October 2020 15:50
transalpes wrote: Thursday 01 October 2020 14:43

Hello
When I say "open the shutter" google replies "the shutter is already open".

in the LOG I have: 2020-10-01 14:14:14 - ERROR - Unable to execute action.devices.commands.OpenClose for BlindInverted193. Already in state "

thank you for coming back

friendship
I missed adding some. But try now again with latest beta (1.8.8)
I always have the same message:
2020-10-01 18:43:17 - ERROR - Unable to execute action.devices.commands.OpenClose for BlindInverted193. Already in state
small precision, close ok, but open, google rest: already open
EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

Re: Domoticz-Google-Assistant (dzga)

Post by EddyG »

transalpes wrote: Thursday 01 October 2020 16:01 Hello
I have another difficulty with the temperature devices, they are incremented from 0.5 to 0.5, is it possible to have them all?
example: 20, 20.5, 21, is it possible to have 20, 20.1, 20.2, 20.3, 20.4 .........?
thank you for coming back
friendship
I think that's a Google issue, because in the dzga logfile you can see that the real values are send.
It is Google that rounds them off to half degrees. :shock:
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 »

transalpes wrote: Thursday 01 October 2020 19:30
transalpes wrote: Thursday 01 October 2020 18:46
DewGew wrote: Thursday 01 October 2020 15:50
I missed adding some. But try now again with latest beta (1.8.8)
I always have the same message:
2020-10-01 18:43:17 - ERROR - Unable to execute action.devices.commands.OpenClose for BlindInverted193. Already in state
small precision, close ok, but open, google rest: already open
There is a new update on beta (1.8.9)
Are you trying to use percentage inverted?
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
Xavier82
Posts: 178
Joined: Tuesday 07 June 2016 22:09
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Netherlands
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by Xavier82 »

Hi DewGew,

I hope you can help.
I'm helping a friend out to install DZGA.
Setup:
Rpi3b with Domoticz installed, DZGA installed, pngrok installed (with Python3.7)
So far so good.
In DZGA I also see the devices within Domitcz.
When access to 3030/settings and login, I completely follow (already tried 3 times all over) the manual in the wiki to setup Google actions.
But I can't get it to work.
It looks like things have changes in manual or at Google.

I have added the smart-home-key.json file in the config folder.
I have entered the ngrok url and the auth and token url in action console.
Client Id is exported out of the smart-home-key.json file.
The client secret is exported out the "client_secret_XXX.JSON file from the Google Cloud Platform under "OAuth 2.0 Client-ID's".

Followed steps for account linking.
When clicking Sync devices in dzga I get the error:
Page not found!: 404 Client Error: Not Found for url: https://homegraph.googleapis.com/v1/devices:requestSync

What is going wrong here?
How can I fix this?
transalpes
Posts: 10
Joined: Thursday 17 October 2019 12:57
Target OS: Linux
Domoticz version:
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by transalpes »

DewGew wrote: Friday 02 October 2020 7:48
transalpes wrote: Thursday 01 October 2020 19:30
transalpes wrote: Thursday 01 October 2020 18:46

I always have the same message:
2020-10-01 18:43:17 - ERROR - Unable to execute action.devices.commands.OpenClose for BlindInverted193. Already in state
small precision, close ok, but open, google rest: already open
There is a new update on beta (1.8.9)
Are you trying to use percentage inverted?
Bonjour,
I will test as soon as possible
absolutely I use "percentage inverted" and I have the same problem, when I ask for 1% I get 99% ......

thank you for your comeback
transalpes
Posts: 10
Joined: Thursday 17 October 2019 12:57
Target OS: Linux
Domoticz version:
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by transalpes »

EddyG wrote: Thursday 01 October 2020 19:35
transalpes wrote: Thursday 01 October 2020 16:01 Hello
I have another difficulty with the temperature devices, they are incremented from 0.5 to 0.5, is it possible to have them all?
example: 20, 20.5, 21, is it possible to have 20, 20.1, 20.2, 20.3, 20.4 .........?
thank you for coming back
friendship
I think that's a Google issue, because in the dzga logfile you can see that the real values are send.
It is Google that rounds them off to half degrees. :shock:
Hello,

Indeed I saw that, it is embarrassing .... moreover I also just saw that it does not take into account the temperatures lower than 10, as well as the negative temperatures example - 5 .....
do we have a solution to overcome it?

thank you for your comeback
k20human
Posts: 6
Joined: Friday 02 October 2020 16:59
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by k20human »

Hi,

I try to use dzga but wihtout success for now ...
I follow every steps on the wiki : https://www.domoticz.com/wiki/Google_Assistant

My dzga is successfully installed and accessible via HTTPS (Let's Encrypt already use for others websites on the Rasp, like Domoticz)

When i try to add my application on my Google Home app i have an error
When i watch the logs on dzga i see this :

Code: Select all

2020-10-02 16:50:15 - DEBUG - Host: assistant.emee.info
X-Real-IP: 66.249.93.107
X-Forwarded-For: 66.249.93.107
Connection: close
Content-Length: 80
Content-Type: application/json;charset=UTF-8
Google-Assistant-API-Version: v1
Authorization: Bearer XXXXXXX
User-Agent: Mozilla/5.0 (compatible; Google-Cloud-Functions/2.1; +http://www.google.com/bot.html)
Accept-Encoding: gzip,deflate,br
In my nginx logs i see this :

Code: Select all

66.249.93.107 - - [02/Oct/2020:16:54:24 +0200] "POST /smarthome HTTP/1.1" 404 67 "-" "Mozilla/5.0 (compatible; Google-Cloud-Functions/2.1; +http://www.google.com/bot.html)"
I try this url POST /smarthome on Postman and it give me this response :

Code: Select all

Page not found!: not authorized access!!
What can be wrong with my configuration ?

Thanks
transalpes
Posts: 10
Joined: Thursday 17 October 2019 12:57
Target OS: Linux
Domoticz version:
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by transalpes »

transalpes wrote: Friday 02 October 2020 15:08
DewGew wrote: Friday 02 October 2020 7:48
transalpes wrote: Thursday 01 October 2020 19:30

small precision, close ok, but open, google rest: already open
There is a new update on beta (1.8.9)
Are you trying to use percentage inverted?
Bonjour,
I will test as soon as possible
absolutely I use "percentage inverted" and I have the same problem, when I ask for 1% I get 99% ......

thank you for your comeback
I just did a test, it works very well as well as the percentages ... thank you very much and congratulations on your work ...
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 »

Xavier82 wrote: Friday 02 October 2020 14:14 Hi DewGew,

I hope you can help.
I'm helping a friend out to install DZGA.
Setup:
Rpi3b with Domoticz installed, DZGA installed, pngrok installed (with Python3.7)
So far so good.
In DZGA I also see the devices within Domitcz.
When access to 3030/settings and login, I completely follow (already tried 3 times all over) the manual in the wiki to setup Google actions.
But I can't get it to work.
It looks like things have changes in manual or at Google.

I have added the smart-home-key.json file in the config folder.
I have entered the ngrok url and the auth and token url in action console.
Client Id is exported out of the smart-home-key.json file.
The client secret is exported out the "client_secret_XXX.JSON file from the Google Cloud Platform under "OAuth 2.0 Client-ID's".

Followed steps for account linking.
When clicking Sync devices in dzga I get the error:
Page not found!: 404 Client Error: Not Found for url: https://homegraph.googleapis.com/v1/devices:requestSync

What is going wrong here?
How can I fix this?
You have to download and rename the json file you can not copy and paste from the file and make sure its correct project.
Try also to delete the json file and then sync with voice, if that works json file is corrupted
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
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 »

k20human wrote: Friday 02 October 2020 17:06 Hi,

I try to use dzga but wihtout success for now ...
I follow every steps on the wiki : https://www.domoticz.com/wiki/Google_Assistant

My dzga is successfully installed and accessible via HTTPS (Let's Encrypt already use for others websites on the Rasp, like Domoticz)

When i try to add my application on my Google Home app i have an error
When i watch the logs on dzga i see this :

Code: Select all

2020-10-02 16:50:15 - DEBUG - Host: assistant.emee.info
X-Real-IP: 66.249.93.107
X-Forwarded-For: 66.249.93.107
Connection: close
Content-Length: 80
Content-Type: application/json;charset=UTF-8
Google-Assistant-API-Version: v1
Authorization: Bearer XXXXXXX
User-Agent: Mozilla/5.0 (compatible; Google-Cloud-Functions/2.1; +http://www.google.com/bot.html)
Accept-Encoding: gzip,deflate,br
In my nginx logs i see this :

Code: Select all

66.249.93.107 - - [02/Oct/2020:16:54:24 +0200] "POST /smarthome HTTP/1.1" 404 67 "-" "Mozilla/5.0 (compatible; Google-Cloud-Functions/2.1; +http://www.google.com/bot.html)"
I try this url POST /smarthome on Postman and it give me this response :

Code: Select all

Page not found!: not authorized access!!
What can be wrong with my configuration ?

Thanks
Can you add dzga ([test]testapp)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
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 »

transalpes wrote: Friday 02 October 2020 15:14
EddyG wrote: Thursday 01 October 2020 19:35
transalpes wrote: Thursday 01 October 2020 16:01 Hello
I have another difficulty with the temperature devices, they are incremented from 0.5 to 0.5, is it possible to have them all?
example: 20, 20.5, 21, is it possible to have 20, 20.1, 20.2, 20.3, 20.4 .........?
thank you for coming back
friendship
I think that's a Google issue, because in the dzga logfile you can see that the real values are send.
It is Google that rounds them off to half degrees. :shock:
Hello,

Indeed I saw that, it is embarrassing .... moreover I also just saw that it does not take into account the temperatures lower than 10, as well as the negative temperatures example - 5 .....
do we have a solution to overcome it?

thank you for your comeback
This is also a google issue. Its reported to google
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
k20human
Posts: 6
Joined: Friday 02 October 2020 16:59
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by k20human »

DewGew wrote: Friday 02 October 2020 19:45
k20human wrote: Friday 02 October 2020 17:06 Hi,

I try to use dzga but wihtout success for now ...
I follow every steps on the wiki : https://www.domoticz.com/wiki/Google_Assistant

My dzga is successfully installed and accessible via HTTPS (Let's Encrypt already use for others websites on the Rasp, like Domoticz)

When i try to add my application on my Google Home app i have an error
When i watch the logs on dzga i see this :

Code: Select all

2020-10-02 16:50:15 - DEBUG - Host: assistant.emee.info
X-Real-IP: 66.249.93.107
X-Forwarded-For: 66.249.93.107
Connection: close
Content-Length: 80
Content-Type: application/json;charset=UTF-8
Google-Assistant-API-Version: v1
Authorization: Bearer XXXXXXX
User-Agent: Mozilla/5.0 (compatible; Google-Cloud-Functions/2.1; +http://www.google.com/bot.html)
Accept-Encoding: gzip,deflate,br
In my nginx logs i see this :

Code: Select all

66.249.93.107 - - [02/Oct/2020:16:54:24 +0200] "POST /smarthome HTTP/1.1" 404 67 "-" "Mozilla/5.0 (compatible; Google-Cloud-Functions/2.1; +http://www.google.com/bot.html)"
I try this url POST /smarthome on Postman and it give me this response :

Code: Select all

Page not found!: not authorized access!!
What can be wrong with my configuration ?

Thanks
Can you add dzga ([test]testapp)in google home app?
No i can't add dzga. I have the 404 error in my logs when i try to add it.

See error in attachement when i click on my test app
Attachments
Screenshot_2020-10-02-20-00-49-324_com.google.android.googlequicksearchbox.jpg
Screenshot_2020-10-02-20-00-49-324_com.google.android.googlequicksearchbox.jpg (257.08 KiB) Viewed 2112 times
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest