[2025.1] Pythpn scipts not working due to old API

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!

Moderators: leecollings, remb0

Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post

Please mark your topic as Solved when the problem is solved.
Post Reply
kupfer007
Posts: 1
Joined: Friday 01 August 2025 17:22
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

[2025.1] Pythpn scipts not working due to old API

Post by kupfer007 »

Removing the old API (json.htm?type=devices with rid) in version 2025.1 has completely broken my setup.

I’ve been using Domoticz for years to automate solar panels, irrigation, and lighting — all controlled through Python scripts using the old API. After the update, none of it works anymore.

How can I download and install an older version of Domoticz that still supports the classic API?

Thank you.


Waltervl: splitted to a new topic
User avatar
jvdz
Posts: 2346
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Domoticz version 2025.1 released

Post by jvdz »

Why not simply adapt the used api url?

.. but else you simply restore it from backup.
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
User avatar
waltervl
Posts: 5979
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Domoticz version 2025.1 released

Post by waltervl »

kupfer007 wrote: Friday 01 August 2025 17:25 Removing the old API (json.htm?type=devices with rid) in version 2025.1 has completely broken my setup.

I’ve been using Domoticz for years to automate solar panels, irrigation, and lighting — all controlled through Python scripts using the old API. After the update, none of it works anymore.
In your python script change

Code: Select all

json.htm?type=devices 
into

Code: Select all

json.htm?type=command&param=getdevices
It is that simple.....
See wiki for more simple examples.... https://wiki.domoticz.com/Domoticz_API/ ... and_newer)
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest