Page 1 of 1

HTTP request stopped working overnight

Posted: Friday 05 May 2023 13:22
by Eternity
My Domoticz setup monitors and logs my smart meter. That works fine, and gives me insight in gas / electricity and water consumption. It calculates the cost fine too.

I have a Homey system, that fetches data from Domoticz via a http request. This has been working fine, but overnight stoppes working. My Domoticz has not updated, nor has anything in Homey.

The error I get is "Cannot read properties of undefined (reading 'settings')"

The url I use, is correct because I can load the page and see the contents via

Code: Select all

http://192.168.50.53:8080/json.htm?type=devices&rid=104
The JSONpath expression is

Code: Select all

 $.[result][0][Data]
Why has this stopped working?

Re: HTTP request stopped working overnight

Posted: Friday 05 May 2023 13:37
by waltervl
Did you update Domoticz? As security has changed in 2023.1
https://www.domoticz.com/wiki/Security#The_Security-tab
Check API Protection: Allow Basic Authentication over plain HTTP setting and Trusted networks.

Re: HTTP request stopped working overnight

Posted: Friday 05 May 2023 13:43
by Eternity
Solved!

I update a variable via the request, but that variable was somehow deleted. After solving that, the error is gone.

Thanks!