HTTP request stopped working overnight

Moderator: leecollings

Post Reply
Eternity
Posts: 63
Joined: Saturday 06 December 2014 16:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

HTTP request stopped working overnight

Post 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?
Synology DS218+
Homey controller
Z-Wave stuff (Fibaro / Aeotec / NEO Coolcam)
Zigbee stuff (Aqara)
HUE lights
Logitech Harmony Ultimate + Hub
IP camera's
User avatar
waltervl
Posts: 5384
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: HTTP request stopped working overnight

Post 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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Eternity
Posts: 63
Joined: Saturday 06 December 2014 16:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: HTTP request stopped working overnight

Post by Eternity »

Solved!

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

Thanks!
Synology DS218+
Homey controller
Z-Wave stuff (Fibaro / Aeotec / NEO Coolcam)
Zigbee stuff (Aqara)
HUE lights
Logitech Harmony Ultimate + Hub
IP camera's
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests