WebServer Deprecated RType(devices) for API request

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
pfloryann
Posts: 168
Joined: Wednesday 09 January 2019 10:14
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.1
Contact:

WebServer Deprecated RType(devices) for API request

Post 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!
Domoticz on Raspberry Pi 4with Zigbee2mqtt
2 x xiaomi temperature sensor
7 x xiaomi plug
2 x xiaomi door sensor
1 x ikea plug
1 x ikea zigbee apdator
4 x xiaomi motion sensor
1 x xiaomi vibration sensor
2 x xiaomi wireless switch
Broadlink rm pro
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: WebServer Deprecated RType(devices) for API request

Post 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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
pfloryann
Posts: 168
Joined: Wednesday 09 January 2019 10:14
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.1
Contact:

Re: WebServer Deprecated RType(devices) for API request

Post 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.
Domoticz on Raspberry Pi 4with Zigbee2mqtt
2 x xiaomi temperature sensor
7 x xiaomi plug
2 x xiaomi door sensor
1 x ikea plug
1 x ikea zigbee apdator
4 x xiaomi motion sensor
1 x xiaomi vibration sensor
2 x xiaomi wireless switch
Broadlink rm pro
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: WebServer Deprecated RType(devices) for API request

Post 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?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
pfloryann
Posts: 168
Joined: Wednesday 09 January 2019 10:14
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.1
Contact:

Re: WebServer Deprecated RType(devices) for API request

Post 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
Domoticz on Raspberry Pi 4with Zigbee2mqtt
2 x xiaomi temperature sensor
7 x xiaomi plug
2 x xiaomi door sensor
1 x ikea plug
1 x ikea zigbee apdator
4 x xiaomi motion sensor
1 x xiaomi vibration sensor
2 x xiaomi wireless switch
Broadlink rm pro
User avatar
jvdz
Posts: 2189
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: WebServer Deprecated RType(devices) for API request

Post 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.
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: WebServer Deprecated RType(devices) for API request

Post 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....
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
pfloryann
Posts: 168
Joined: Wednesday 09 January 2019 10:14
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.1
Contact:

Re: WebServer Deprecated RType(devices) for API request

Post by pfloryann »

Hi,

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

Thank you for help!
Domoticz on Raspberry Pi 4with Zigbee2mqtt
2 x xiaomi temperature sensor
7 x xiaomi plug
2 x xiaomi door sensor
1 x ikea plug
1 x ikea zigbee apdator
4 x xiaomi motion sensor
1 x xiaomi vibration sensor
2 x xiaomi wireless switch
Broadlink rm pro
Dave21w
Posts: 360
Joined: Sunday 29 November 2015 21:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: UK
Contact:

Re: WebServer Deprecated RType(devices) for API request

Post 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.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest