Hi all,
I hope somebody wants to help me to get DZGA-Flask running, meaning connection to Google Home/Assistant with Ngrok
Running DZGA-Flask on Rpi4B (8GB) with Bullseye OS.
Running Domoticz version 2024.2.
Running DZGA-Flask version 24.1
Both running on the same Rpi4B.
Created DZGA user (with rights of "user") in Domoticz and added devices which may be handled bij DZGA-Flask (Google Home).
In Domoticz in Settings in Security API Basic Auth is enabled.
In DZGA-Flask I created a user (DZGA).
I have configured the Domoticz URL (With IP and port of Domoticz).
I have configured DOmoticz user (DZGA) and the corresponding password.
Domoticz roomplan id is set to "0" (zero).
Google Assistant is set to "Enabled"
Server settings in DZGA-Flask:
Actions on Google Client id: number from "Google APIs & Services" credentials \ OAth 2.0 Client IDs and then the client ID
Actions on Google Client secret: secret from "Google APIs & Services" credentials \ OAth 2.0 Client IDs and then the client secret.
I have uploaded the smart-home-key.json in the upload folder of DZGA-Flask.
On the "Info" tab I can see:
DZGA-Flask Version: 24.1
Domoticz Version: 2024.2
Devices from Domoticz are present in Dashboard and in Devices tab.
The issue I have is with Ngrok (stable tunnel) and connection with Google Home.
I created a project and followed all the steps in the guido of DZGA-Flask.
I have Ngrok agent installed.
I have added the authtoken to the config file.
Then in the cli (Via Putty) I run the command: ngrok http 8181
A tunnel is created with a forward to
http://localhost:8181.
Is this port correct or do I need to use an other port?
Does the forward needs to go to DZGA-Flask?
I use the tunnellink in Google Actions:
Http://code-myIP.ngrok-free.app/smarthome
and in account linking:
Autherization url:
https://code-myIP.ngrok-free.app/oauth
Token URL:
https://code-myIP.ngrok-free.app/token
I press save and after that I press Test.
Then I go to Google Home app on my andoid phone.
I go to settings and I add the project. I need to proceed.
So far so good.
Then I get a screen where I need to login to DZGA
I use username and password with which I login to dzga local on my rpi.
Then Google Home says its linking.
And a short while after Google Home says it can't reach the project ([test] Domoticz Google Assistant)
I hope somebody can help.
Thanks!