Page 1 of 1

WebServer Deprecated RType(devices) for API request

Posted: Tuesday 13 August 2024 11:52
by pfloryann
Hi all,
I have this notifion(every time) in domoticz logs.

2024-08-13 12:50:00.440 Zigbee 2 Mqtt: General/kWh (Releu rulou energy)
2024-08-13 12:50:00.446 Zigbee 2 Mqtt: Usage/Electric (0x00158d000419c3b1 power)
2024-08-13 12:50:00.449 Zigbee 2 Mqtt: General/Voltage (Releu rulou voltage)
2024-08-13 12:50:00.829 [WebServer] Deprecated RType (devices) for API request. Handled via fallback (getdevices), please use correct API Command! (192.168.0.xxx)
2024-08-13 12:50:00.832 [WebServer] Deprecated RType (devices) for API request. Handled via fallback (getdevices), please use correct API Command! (192.168.0.xxx)
2024-08-13 12:50:00.835 [WebServer] Deprecated RType (devices) for API request. Handled via fallback (getdevices), please use correct API Command! (192.168.0.xxx)
2024-08-13 12:50:00.839 [WebServer] Deprecated RType (devices) for API request. Handled via fallback (getdevices), please use correct API Command! (192.168.0.xxx)


I using Domoticz 2024.7(16178) beta version + zigbee2mqtt(width MQTT Auto Discovery Client Gateway with LAN interface ) and I don't know why this message appears.

Thanks!

Re: WebServer Deprecated RType(devices) for API request

Posted: Tuesday 13 August 2024 13:27
by waltervl
Because something in your environment requests device info from Domoticz with the old json API call.
What is on IP (192.168.0.xxx) ?
If that is your Domoticz server check for scripts or themes or extra dashboards that use the old API calls

See also this topic viewtopic.php?t=40415 with a lot more info.

Re: WebServer Deprecated RType(devices) for API request

Posted: Tuesday 13 August 2024 14:51
by pfloryann
waltervl wrote: Tuesday 13 August 2024 13:27 Because something in your environment requests device info from Domoticz with the old json API call.
What is on IP (192.168.0.xxx) ?
If that is your Domoticz server check for scripts or themes or extra dashboards that use the old API calls

See also this topic viewtopic.php?t=40415 with a lot more info.
192.168.0.xxx is my server ip.
I checked for old api calls in scripts but everything is with new api(for my custom phone app), i stopped to call api... but I still have these messages. i can't find the problem.

Re: WebServer Deprecated RType(devices) for API request

Posted: Tuesday 13 August 2024 16:58
by waltervl
Perhaps you can relate the timing of the deprecation warnings to an action?
Do you use Dashticz?
Dou you use a non default theme?

Re: WebServer Deprecated RType(devices) for API request

Posted: Tuesday 13 August 2024 17:13
by pfloryann
waltervl wrote: Tuesday 13 August 2024 16:58 Perhaps you can relate the timing of the deprecation warnings to an action?
Do you use Dashticz?
Dou you use a non default theme?
I using default theme, i haven't dashticz.

i noticed when it get the devices information from zigbee2mqtt...this message also appears immediately. I don't know if it has anything to do with it

Re: WebServer Deprecated RType(devices) for API request

Posted: Tuesday 13 August 2024 18:42
by jvdz
pfloryann wrote: Tuesday 13 August 2024 17:13 i noticed when it get the devices information from zigbee2mqtt...this message also appears immediately. I don't know if it has anything to do with it
Nope, this is an http API request using the old format instead of the new, so you will have to search for it in the machine having the reported ip address.... or via a reverse proxy running on that IP address depending on how that is configured.

Re: WebServer Deprecated RType(devices) for API request

Posted: Tuesday 13 August 2024 18:56
by waltervl
It could be that you are using the Zigbee2MQTT python plugin and there is a webinterface that could be outdated? But you say you use the MQTT Autodiscover gateway so that should not be the case....

Re: WebServer Deprecated RType(devices) for API request

Posted: Wednesday 14 August 2024 10:12
by pfloryann
Hi,

Finally i found the problem. You are right...i found the old api in PV system script.

Thank you for help!

Re: WebServer Deprecated RType(devices) for API request

Posted: Wednesday 14 August 2024 10:30
by Dave21w
I see this quite a lot, in my case it's caused by the Pilot app on my iPhone, the dev doesn't seem to have updated it in quite a while which is a shame as I really like the app and pay yearly for it as a patron.