Connection to Domoticz refused since last Domoticz update

Alexa, Google Home and Siri

Moderator: leecollings

Post Reply
WillemK
Posts: 21
Joined: Monday 07 December 2015 14:02
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Connection to Domoticz refused since last Domoticz update

Post by WillemK »

Hi,

Since the last update of Domoticz a few days ago connection from DZGA to Domoticz gives "Connection to Domoticz refused! Check configuration".
What could be wrong?

This is in de DZGA log:
2023-04-02 13:56:59 - INFO - Connecting to Domoticz on http://192.168.1.55:8084
2023-04-02 13:56:59 - DEBUG - Starting new HTTP connection (1): 192.168.1.55:8084
2023-04-02 13:56:59 - DEBUG - http://192.168.1.55:8084 "GET /json.htm?type=command&param=addlogmessage&message=Connected%20to%20Google%20Assistant%20with%20DZGA%20v1.23.2 HTTP/1.1" 401 91
2023-04-02 13:56:59 - ERROR - Connection to Domoticz refused with error: 401 Client Error: Unauthorized for url: http://192.168.1.55:8084/json.htm?type= ... %20v1.23.2
2023-04-02 13:56:59 - DEBUG - Popen(['git', 'version'], cwd=/, universal_newlines=False, shell=None, istream=None)
2023-04-02 13:56:59 - DEBUG - Popen(['git', 'version'], cwd=/, universal_newlines=False, shell=None, istream=None)
2023-04-02 13:56:59 - ERROR - Service account key is not found. Report state will be unavailable
2023-04-02 13:56:59 - DEBUG - Starting new HTTPS connection (1): raw.githubusercontent.com:443
2023-04-02 13:56:59 - DEBUG - https://raw.githubusercontent.com:443 "GET /DewGew/Domoticz-Google-Assistant/beta/const.py HTTP/1.1" 200 1983
2023-04-02 13:56:59 - DEBUG - <pid.posix.PidFile object at 0x3ff7ea7f948> entering setup
2023-04-02 13:56:59 - DEBUG - <pid.posix.PidFile object at 0x3ff7ea7f948> create pidfile: /run/user/0/dzga.pid
2023-04-02 13:56:59 - DEBUG - <pid.posix.PidFile object at 0x3ff7ea7f948> check pidfile: /run/user/0/dzga.pid
2023-04-02 13:56:59 - INFO - Using SSL connection
2023-04-02 13:56:59 - INFO - ========
2023-04-02 13:56:59 - INFO - Started DZGA v1.23.2 server at port 3030
2023-04-02 13:56:59 - INFO -
2023-04-02 13:56:59 - INFO - Visit https://localhost:3030/settings to access the user interface
2023-04-02 13:56:59 - INFO -
2023-04-02 13:56:59 - INFO - =========
2023-04-02 13:56:59 - INFO - Visit the Actions on Google console at http://console.actions.google.com
2023-04-02 13:56:59 - INFO - Under Develop section, replace the fulfillment URL in Actions with:
2023-04-02 13:56:59 - INFO - https://[your public url]/smarthome
2023-04-02 13:56:59 - INFO -
2023-04-02 13:56:59 - INFO - In Account linking, set the Authorization URL to:
2023-04-02 13:56:59 - INFO - https://[your public url]/oauth
2023-04-02 13:56:59 - INFO -
2023-04-02 13:56:59 - INFO - Then set the Token URL to:
2023-04-02 13:56:59 - INFO - https://[your public url]/token
2023-04-02 13:56:59 - INFO -
2023-04-02 13:56:59 - INFO - Finally press 'SAVE' and then 'TEST' button
2023-04-02 13:56:59 - INFO - =======
2023-04-02 13:56:59 - DEBUG - Starting new HTTP connection (1): 192.168.1.55:8084
2023-04-02 13:56:59 - DEBUG - http://192.168.1.55:8084 "GET /json.htm?type=devices&plan=0&filter=all&used=true HTTP/1.1" 401 91
2023-04-02 13:56:59 - DEBUG - Starting new HTTP connection (1): 192.168.1.55:8084
2023-04-02 13:56:59 - DEBUG - http://192.168.1.55:8084 "GET /json.htm?type=settings HTTP/1.1" 401 91
2023-04-02 13:56:59 - DEBUG - Starting new HTTP connection (1): 192.168.1.55:8084
2023-04-02 13:56:59 - DEBUG - http://192.168.1.55:8084 "GET /json.htm?type=command&param=getversion HTTP/1.1" 200 216
2023-04-02 13:56:59 - DEBUG - {
"dzversion": "2023.1 (build 15178)"
}
2023-04-02 13:57:09 - DEBUG - Starting new HTTPS connection (1): raw.githubusercontent.com:443
2023-04-02 13:57:09 - DEBUG - https://raw.githubusercontent.com:443 "GET /DewGew/Domoticz-Google-Assistant/beta/const.py HTTP/1.1" 200 1983
User avatar
waltervl
Posts: 5369
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Connection to Domoticz refused since last Domoticz update

Post by waltervl »

Check your security settings in Domoticz (menu setup - settings - security). Especially trusted networks and allow http api calls.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
WillemK
Posts: 21
Joined: Monday 07 December 2015 14:02
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Connection to Domoticz refused since last Domoticz update

Post by WillemK »

Thanks for the response. I was able to solve the problem with your suggestion. The settings appeared okay, but connection was refused. But just by saving the settings again in Domoticz the connection with DZGA was accepted.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests