JSON API missing in Domoticz 2025.1 beta (16657) Topic is solved

Subforum for general discussions. Do not dump your questions/problems here, but try to find the subforum where it belongs!

Moderators: leecollings, remb0

Post Reply
Matmar
Posts: 9
Joined: Tuesday 20 November 2018 16:54
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: Italy
Contact:

JSON API missing in Domoticz 2025.1 beta (16657)

Post by Matmar »

Hello everyone,

I'm currently running Domoticz 2025.1 (16657) because I need the Netatmo OAuth2 support (which is not available in the stable version yet).
Everything works fine when accessing the Domoticz web interface (e.g., http://192.xxx.x.x::8080/), but whenever I try to access the JSON API, I get a "Page not found" error.

For example, if I visit:

Code: Select all

http://192.xxx.x.x:8080/json.htm?type=devices&order=name
or simply

Code: Select all

http://192.xxx.x.x:8080/json.htm
I get a "404 Page Not Found" error.

I checked that Domoticz is running without the --minimalwebserver flag.

I am not using any reverse proxy (I connect directly).

Domoticz starts normally, and the web GUI is accessible.

Tested both HTTP and HTTPS access — same issue.

I am not using any authentication settings that could block API access.

My question:

Is the JSON API intentionally disabled or missing in the current 2025.1 (16657)?

Will it be reintroduced soon, or should we expect it only in the next stable release?

Thank you for your help,
Alberto
User avatar
waltervl
Posts: 5760
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: JSON API missing in Domoticz 2025.1 beta (16657)

Post by waltervl »

Did you read this: https://wiki.domoticz.com/Domoticz_API/ ... and_newer)
In latest beta this has been enforced and really deprecated so the old type API calls will not work anymore.

Code: Select all

/json.htm?type=devices 
will be

Code: Select all

/json.htm?type=command&param=getdevices
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Matmar
Posts: 9
Joined: Tuesday 20 November 2018 16:54
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: Italy
Contact:

Re: JSON API missing in Domoticz 2025.1 beta (16657)

Post by Matmar »

Hello,

I just wanted to thank you for the clarification regarding the changes in the JSON API. I now understand that the old command:

/json.htm?type=devices

has been replaced with:

/json.htm?type=command&param=getdevices

I appreciate the heads-up and the explanation—it was very helpful in understanding the recent updates. Everything is working smoothly now.

Thanks again!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest