Not able to link dzga test app in google home
vreesie18 opened this issue · 2 comments
Tried over and over again to link my dzga test app in google home but it always end with the message that [test] dzga could not be reached. I get the login screen from dzga in my google home app after initiating the link process, can login but that it always ends unsuccesful.
Checked my settings according to the wiki many times but I can't find anything wrong or missing. For now I am sort of lost and need some
help.
My log
2024-02-05 15:36:56 - INFO - Connecting to Domoticz on http://192.168.1.10:8181
2024-02-05 15:36:56 - DEBUG - Starting new HTTP connection (1): 192.168.1.10:8181
2024-02-05 15:36:56 - DEBUG - http://192.168.1.10:8181 "GET /json.htm?type=command¶m=addlogmessage&message=Connected%20to%20Google%20Assistant%20with%20DZGA%20v1.23.2 HTTP/1.1" 200 49
2024-02-05 15:36:56 - DEBUG - <pid.posix.PidFile object at 0x7f33af68c640> entering setup
2024-02-05 15:36:56 - DEBUG - <pid.posix.PidFile object at 0x7f33af68c640> create pidfile: /run/user/0/.pid
2024-02-05 15:36:56 - DEBUG - <pid.posix.PidFile object at 0x7f33af68c640> check pidfile: /run/user/0/.pid
2024-02-05 15:36:56 - INFO - ========
2024-02-05 15:36:56 - INFO - Started DZGA v1.23.2 server at port 8090
2024-02-05 15:36:56 - INFO -
2024-02-05 15:36:56 - INFO - Visit http://localhost:8090/settings to access the user interface
2024-02-05 15:36:56 - INFO -
2024-02-05 15:36:56 - INFO - =========
2024-02-05 15:36:56 - INFO - Visit the Actions on Google console at http://console.actions.google.com
2024-02-05 15:36:56 - INFO - Under Develop section, replace the fulfillment URL in Actions with:
2024-02-05 15:36:56 - INFO - https://[your public url]/smarthome
2024-02-05 15:36:56 - INFO -
2024-02-05 15:36:56 - INFO - In Account linking, set the Authorization URL to:
2024-02-05 15:36:56 - INFO - https://[your public url]/oauth
2024-02-05 15:36:56 - INFO -
2024-02-05 15:36:56 - INFO - Then set the Token URL to:
2024-02-05 15:36:56 - INFO - https://[your public url]/token
2024-02-05 15:36:56 - INFO -
2024-02-05 15:36:56 - INFO - Finally press 'SAVE' and then 'TEST' button
2024-02-05 15:36:56 - INFO - =======
2024-02-05 15:36:56 - DEBUG - Starting new HTTP connection (1): 192.168.1.10:8181
2024-02-05 15:36:56 - DEBUG - http://192.168.1.10:8181 "GET /json.htm?type=devices&plan=18&filter=all&used=true HTTP/1.1" 200 682
2024-02-05 15:36:56 - DEBUG - Starting new HTTP connection (1): 192.168.1.10:8181
2024-02-05 15:36:56 - DEBUG - http://192.168.1.10:8181 "GET /json.htm?type=plans&order=name&used=true HTTP/1.1" 200 394
2024-02-05 15:36:56 - DEBUG - {
"Suzuki server": {
"idx": 26799,
"type": "Switch",
"state": "Off",
"lastupdate": "2024-02-05 15:31:47",
"willReportState": true
}
}
2024-02-05 15:36:56 - DEBUG - Starting new HTTP connection (1): 192.168.1.10:8181
2024-02-05 15:36:56 - DEBUG - http://192.168.1.10:8181 "GET /json.htm?type=settings HTTP/1.1" 200 1544
2024-02-05 15:36:56 - DEBUG - Starting new HTTP connection (1): 192.168.1.10:8181
2024-02-05 15:36:56 - DEBUG - http://192.168.1.10:8181 "GET /json.htm?type=command¶m=getversion HTTP/1.1" 200 209
2024-02-05 15:36:56 - DEBUG - {
"dzversion": "2024.4",
"SecPassword": "4772c1b987f1f6d8c9d4ef0f3b764f7a",
"SecOnDelay": 30,
"TempUnit": 0,
"Language": "en"
}
2024-02-05 15:37:35 - DEBUG - Host: domogoogle.secondstep.nl
Content-Type: application/json;charset=UTF-8
Google-Assistant-API-Version: v1
Authorization: Bearer ECeDeOpcRIOIqi2Ke6C6
User-Agent: Mozilla/5.0 (compatible; Google-Cloud-Functions/2.1; +http://www.google.com/bot.html)
Accept-Encoding: gzip, deflate, br
X-Forwarded-For: x.x.x.x
X-Forwarded-Host: [my public url]
X-Forwarded-Server: [my public url]
Content-Length: 80
Connection: Keep-Alive
2024-02-05 15:37:35 - INFO - {
"inputs": [
{
"intent": "action.devices.SYNC"
}
],
"requestId": "13573761813837981386"
}
2024-02-05 15:37:35 - INFO - Google Assistant requests an action.devices.SYNC
2024-02-05 15:37:35 - DEBUG - Starting new HTTP connection (1): 192.168.1.10:8181
2024-02-05 15:37:35 - DEBUG - http://192.168.1.10:8181 "GET /json.htm?type=devices&plan=18&filter=all&used=true HTTP/1.1" 200 683
2024-02-05 15:37:35 - DEBUG - Starting new HTTP connection (1): 192.168.1.10:8181
2024-02-05 15:37:35 - DEBUG - http://192.168.1.10:8181 "GET /json.htm?type=plans&order=name&used=true HTTP/1.1" 200 394
2024-02-05 15:37:35 - DEBUG - {
"Suzuki server": {
"idx": 26799,
"type": "Switch",
"state": "Off",
"lastupdate": "2024-02-05 15:31:47",
"willReportState": true
}
}
2024-02-05 15:37:35 - DEBUG - Starting new HTTP connection (1): 192.168.1.10:8181
2024-02-05 15:37:35 - DEBUG - http://192.168.1.10:8181 "GET /json.htm?type=settings HTTP/1.1" 200 1544
2024-02-05 15:37:35 - DEBUG - Starting new HTTP connection (1): 192.168.1.10:8181
2024-02-05 15:37:35 - DEBUG - http://192.168.1.10:8181 "GET /json.htm?type=command¶m=getversion HTTP/1.1" 200 209
2024-02-05 15:37:35 - DEBUG - {
"dzversion": "2024.4",
"SecPassword": "4772c1b987f1f6d8c9d4ef0f3b764f7a",
"SecOnDelay": 30,
"TempUnit": 0,
"Language": "en"
}
@vreesie18 how did you het this working ? Couldn't get this to work with Nginx reverse proxy (Nginx proxy manager).
Tried now with HAProxy (installed on my OPNSense box), but got the same result.
Tried even without reverse proxy.
Tried also with subdomain instead of path but still no luck :-( (eg dzga.mydomain.duckdns.org <-> mydomain.duckdns.org/dzga)
Used new gmail account and started clean all over again. Also switched to flask-dzga.