Page 1 of 1

[2025.1] Pythpn scipts not working due to old API

Posted: Friday 01 August 2025 17:25
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

Re: Domoticz version 2025.1 released

Posted: Friday 01 August 2025 17:45
by jvdz
Why not simply adapt the used api url?

.. but else you simply restore it from backup.

Re: Domoticz version 2025.1 released

Posted: Friday 01 August 2025 23:29
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)