Page 4 of 19

Re: Domoticz-Google-Assistant (dzga)

Posted: Thursday 24 September 2020 8:49
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?

Re: Domoticz-Google-Assistant (dzga)

Posted: Monday 28 September 2020 9:23
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.

Re: Domoticz-Google-Assistant (dzga)

Posted: Monday 28 September 2020 10:05
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

Re: Domoticz-Google-Assistant (dzga)

Posted: Thursday 01 October 2020 8:03
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.

Re: Domoticz-Google-Assistant (dzga)

Posted: Thursday 01 October 2020 14:43
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

Re: Domoticz-Google-Assistant (dzga)

Posted: Thursday 01 October 2020 15:50
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)

Re: Domoticz-Google-Assistant (dzga)

Posted: Thursday 01 October 2020 16:01
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

Re: Domoticz-Google-Assistant (dzga)

Posted: Thursday 01 October 2020 18:46
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

Re: Domoticz-Google-Assistant (dzga)

Posted: Thursday 01 October 2020 19:30
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

Re: Domoticz-Google-Assistant (dzga)

Posted: Thursday 01 October 2020 19:35
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:

Re: Domoticz-Google-Assistant (dzga)

Posted: Friday 02 October 2020 7:48
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?

Re: Domoticz-Google-Assistant (dzga)

Posted: Friday 02 October 2020 14:14
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?

Re: Domoticz-Google-Assistant (dzga)

Posted: Friday 02 October 2020 15:08
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

Re: Domoticz-Google-Assistant (dzga)

Posted: Friday 02 October 2020 15:14
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

Re: Domoticz-Google-Assistant (dzga)

Posted: Friday 02 October 2020 17:06
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

Re: Domoticz-Google-Assistant (dzga)

Posted: Friday 02 October 2020 17:52
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 ...

Re: Domoticz-Google-Assistant (dzga)

Posted: Friday 02 October 2020 19:42
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

Re: Domoticz-Google-Assistant (dzga)

Posted: Friday 02 October 2020 19:45
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?

Re: Domoticz-Google-Assistant (dzga)

Posted: Friday 02 October 2020 19:48
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

Re: Domoticz-Google-Assistant (dzga)

Posted: Friday 02 October 2020 20:03
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