15326 - [WebServer] Depricated RType Topic is solved

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
lost
Posts: 664
Joined: Thursday 10 November 2016 9:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: 15326 - [WebServer] Depricated RType

Post by lost »

Derik wrote: Monday 26 June 2023 14:03 Is there a way how i can check te places in code for this error?
Message states that (new) getdevices is handled (so no functional issue until old APIs are removed) but via a compatibility fallback.

This one is even in the examples on the wiki that document theses changes:
https://www.domoticz.com/wiki/Domoticz_ ... d_newer.29

=> You should search for JSON API "type=devices" call that should become "type=command&param=getdevices" in your script files IMO.

In your case, this looks to spam a lot, but IMO this is just as a result of (too?) heavy use of this API that already existed (some active wait/pooling loop that should be modified to relax a bit on this call?) in some script.
User avatar
pierrotori
Posts: 118
Joined: Tuesday 15 May 2018 0:08
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: France
Contact:

Re: 15326 - [WebServer] Depricated RType

Post by pierrotori »

i migrate in the beta version and update all my lua scripts with the new syntax, but i have always the messge error

Code: Select all

[WebServer] Deprecated RType (devices) for API request. Handled via fallback
i use only the standard plugin
Perhaps the standard plugin in domoticz use the syntax ?
rpi : Raspberry Pi 2 Model B Rev 1.1 / Modele : Cortex-A7 armv7l GNU/Linux / Os Name : bullseye
Docker/Domoticz/zwave-ui/homebridge/mosquitto/wireguard
User avatar
kiddigital
Posts: 438
Joined: Thursday 10 August 2017 6:52
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: 15326 - [WebServer] Depricated RType

Post by kiddigital »

The standard plugin for what? Domoticz does not have a standard ‘plugin’. What do you refer to? Maybe screenshot?
One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.4.0 for Alexa, Philips Hue Bridge, Pimoroni Automation Hat
One RPi with Pi foundation standard touch screen to display Dashticz
User avatar
pierrotori
Posts: 118
Joined: Tuesday 15 May 2018 0:08
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: France
Contact:

Re: 15326 - [WebServer] Depricated RType

Post by pierrotori »

perhaps
MQTT Auto Discovery Client Gateway with LAN interface
MQTT Client Gateway with LAN interface
rpi : Raspberry Pi 2 Model B Rev 1.1 / Modele : Cortex-A7 armv7l GNU/Linux / Os Name : bullseye
Docker/Domoticz/zwave-ui/homebridge/mosquitto/wireguard
Kedi
Posts: 577
Joined: Monday 20 March 2023 14:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Somewhere in NL
Contact:

Re: 15326 - [WebServer] Depricated RType

Post by Kedi »

That's not a plugin, but "internal hardware", and that does not use those API calls.
And if you use the latest beta, the error should be a little bit more descriptive.
Logic will get you from A to B. Imagination will take you everywhere.
User avatar
pierrotori
Posts: 118
Joined: Tuesday 15 May 2018 0:08
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: France
Contact:

15326 - [WebServer] Depricated RType

Post by pierrotori »

ok, but i put all debug but i don"t have more detail on the error webserver, always

Code: Select all

2023-06-29 21:19:06.889 Status: [WebServer] Deprecated RType (devices) for API request. Handled via fallback (getdevices), please use correct API Command! (192.168.0.6)
Last edited by pierrotori on Thursday 29 June 2023 21:22, edited 1 time in total.
rpi : Raspberry Pi 2 Model B Rev 1.1 / Modele : Cortex-A7 armv7l GNU/Linux / Os Name : bullseye
Docker/Domoticz/zwave-ui/homebridge/mosquitto/wireguard
Kedi
Posts: 577
Joined: Monday 20 March 2023 14:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Somewhere in NL
Contact:

Re: 15326 - [WebServer] Depricated RType

Post by Kedi »

I suppose that 192.168.0.6 is you domoticz server?
If you have debug on than just before and after this message there should be some info about what triggered the message.
Logic will get you from A to B. Imagination will take you everywhere.
User avatar
pierrotori
Posts: 118
Joined: Tuesday 15 May 2018 0:08
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: France
Contact:

Re: 15326 - [WebServer] Depricated RType

Post by pierrotori »

yes 192.168.0.6 it's my domoticz ip
no info about what triggered the message, only the message
rpi : Raspberry Pi 2 Model B Rev 1.1 / Modele : Cortex-A7 armv7l GNU/Linux / Os Name : bullseye
Docker/Domoticz/zwave-ui/homebridge/mosquitto/wireguard
User avatar
kiddigital
Posts: 438
Joined: Thursday 10 August 2017 6:52
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: 15326 - [WebServer] Depricated RType

Post by kiddigital »

So something runs on your domoticz that still uses the old command.

The domoticz hardware modules have no need to call the API as they use internal functions.

So some scripts, etc. runs on your domoticz machine causing those messages.

But you could try disabling hardware module and see what happens.
One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.4.0 for Alexa, Philips Hue Bridge, Pimoroni Automation Hat
One RPi with Pi foundation standard touch screen to display Dashticz
User avatar
pierrotori
Posts: 118
Joined: Tuesday 15 May 2018 0:08
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: France
Contact:

15326 - [WebServer] Depricated RType

Post by pierrotori »

--Configuration --
rpi : Raspberry Pi 2 Model B Rev 1.1
Os Name : bullseye Release: 11
--Software Domoticz bash--
Version: 2023.1 (build 15369)
Compile Date: 2023-06-22 07:56:08
dzVents Version: 3.1.8
Python Version: 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110]
--Software Mosquitto sh --
mosquitto version 2.0.15
mosquitto is an MQTT v5.0/v3.1.1/v3.1 broker.
--Software zwave-js-ui sh --
npm version : 9.5.0
Node version : v18.14.2

And full docker

i have only the lua script

Code: Select all

sudo grep --include=*.lua -rn -e "/json.htm?type"

local url = dw.settings['http://127.0.0.1:8080'] .. '/json.htm?type=command&param=setused&used=true&name=' .. dz.utils.urlEncode(item.name) ..
URLString = URLString .. "://127.0.0.1:"..cdd_port.."/json.htm?type=command&param=getdevices&used=true"
URLString = URLString .. "://127.0.0.1:"..cdd_port.."/json.htm?type=command&param=getdevices&used=true&username="..cdd_username.."&password="..cdd_password
local custom_action = "http://"..serv_ip..":"..serv_port.."/json.htm?type=command&param=customevent&event="
dz.openURL("http://127.0.0.1:8080/json.htm?type=command&param=setactivetimerplan&ActiveTimerPlan=1")
dz.openURL("http://127.0.0.1:8080/json.htm?type=command&param=setactivetimerplan&ActiveTimerPlan=2")
dz.openURL("http://127.0.0.1:8080/json.htm?type=command&param=setactivetimerplan&ActiveTimerPlan=4")
dz.openURL("http://127.0.0.1:8080/json.htm?type=command&param=setactivetimerplan&ActiveTimerPlan=3")
local URLGetPlanning = 'http://127.0.0.1:8080/json.htm?type=command&param=getschedules&filter=device'
local URLPlanningOn = 'http://127.0.0.1:8080/json.htm?type=command&param=enabletimer&idx='
local URLPlanningOff = 'http://127.0.0.1:8080/json.htm?type=command&param=disabletimer&idx='
local URLGetPlanning = 'http://127.0.0.1:8080/json.htm?type=command&param=getschedules&filter=device'
local URLPlanningOn = 'http://127.0.0.1:8080/json.htm?type=command&param=enabletimer&idx='
local URLPlanningOff = 'http://127.0.0.1:8080/json.htm?type=command&param=disabletimer&idx='
local url ='http://127.0.1:8080/json.htm?type=command&param=udevice&idx='..id..'&nvalue='..nValue..'&svalue='..sValue

and sh script

Code: Select all

sudo grep --include=*.sh -rn -e "/json.htm?type"

res=`curl -s "http://$home_ip:8080/json.htm?type=command&param=getdevices&rid=$internet_device"`
res=$(curl -s "http://$home_ip:8080/json.htm?type=command&param=getdevices&rid=$internet_device" | jq -r '.result[0].Status')
Last edited by pierrotori on Saturday 01 July 2023 10:33, edited 1 time in total.
rpi : Raspberry Pi 2 Model B Rev 1.1 / Modele : Cortex-A7 armv7l GNU/Linux / Os Name : bullseye
Docker/Domoticz/zwave-ui/homebridge/mosquitto/wireguard
User avatar
jvdz
Posts: 2335
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: 15326 - [WebServer] Depricated RType

Post by jvdz »

Do you have any hardware defined that is a plugin?
If so try disabling it and see if the message goes away.
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
User avatar
pierrotori
Posts: 118
Joined: Tuesday 15 May 2018 0:08
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: France
Contact:

Re: 15326 - [WebServer] Depricated RType

Post by pierrotori »

no hardware plugin
Attachments
hardware.PNG
hardware.PNG (51.61 KiB) Viewed 4331 times
rpi : Raspberry Pi 2 Model B Rev 1.1 / Modele : Cortex-A7 armv7l GNU/Linux / Os Name : bullseye
Docker/Domoticz/zwave-ui/homebridge/mosquitto/wireguard
User avatar
boum
Posts: 135
Joined: Friday 18 January 2019 11:31
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: France
Contact:

Re: 15326 - [WebServer] Depricated RType

Post by boum »

Small question about the change described in https://www.domoticz.com/wiki/Domoticz_ ... d_newer.29

Since every API request has now "type=command", what is the point of ever having the "type" parameter?
User avatar
kiddigital
Posts: 438
Joined: Thursday 10 August 2017 6:52
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: 15326 - [WebServer] Depricated RType

Post by kiddigital »

boum wrote:Small question about the change described in https://www.domoticz.com/wiki/Domoticz_ ... d_newer.29

Since every API request has now "type=command", what is the point of ever having the "type" parameter?
Correct.. type=command will become optional overtime..

Before several ways of calling API commands existed (still do). Harmonizing these make things easier (also less code and less error prone).

The code cleanup opens the possibility to introduce a V2 (open)api for future developments.
One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.4.0 for Alexa, Philips Hue Bridge, Pimoroni Automation Hat
One RPi with Pi foundation standard touch screen to display Dashticz
User avatar
pierrotori
Posts: 118
Joined: Tuesday 15 May 2018 0:08
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: France
Contact:

Re: 15326 - [WebServer] Depricated RType

Post by pierrotori »

when i add a value in the selector switch ja have thos error in the log
2023-07-09 08:40:20.421 Status: [WebServer] Deprecated RType (devices) for API request. Handled via fallback (getdevices), please use correct API Command! (192.168.0.6)
Could you check please ?
rpi : Raspberry Pi 2 Model B Rev 1.1 / Modele : Cortex-A7 armv7l GNU/Linux / Os Name : bullseye
Docker/Domoticz/zwave-ui/homebridge/mosquitto/wireguard
User avatar
kiddigital
Posts: 438
Joined: Thursday 10 August 2017 6:52
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: 15326 - [WebServer] Depricated RType

Post by kiddigital »

pierrotori wrote:when i add a value in the selector switch ja have thos error in the log
Not sure what/where you mean. Please add a screenshot and steps to repeat.
One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.4.0 for Alexa, Philips Hue Bridge, Pimoroni Automation Hat
One RPi with Pi foundation standard touch screen to display Dashticz
User avatar
pierrotori
Posts: 118
Joined: Tuesday 15 May 2018 0:08
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: France
Contact:

Re: 15326 - [WebServer] Depricated RType

Post by pierrotori »

in fact you are right
it's seem that it's
this commande generate

Code: Select all

http://127.0.0.1:8080/json.htm?type=setused&used=true&name=lune&description=&idx=293&switchtype=18&customimage=112
or

Code: Select all

item.setIcon(icons[item.level])
this error
[WebServer] Deprecated RType (setused) for API request. Handled via fallback (setused), please use correct API Command! (127.0.0.1)
rpi : Raspberry Pi 2 Model B Rev 1.1 / Modele : Cortex-A7 armv7l GNU/Linux / Os Name : bullseye
Docker/Domoticz/zwave-ui/homebridge/mosquitto/wireguard
User avatar
kiddigital
Posts: 438
Joined: Thursday 10 August 2017 6:52
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: 15326 - [WebServer] Depricated RType

Post by kiddigital »

pierrotori wrote: Sunday 09 July 2023 9:46 in fact you are right
it's seem that it's
this commande generate

Code: Select all

http://127.0.0.1:8080/json.htm?type=setused&used=true&name=lune&description=&idx=293&switchtype=18&customimage=112
...
this error
[WebServer] Deprecated RType (setused) for API request. Handled via fallback (setused), please use correct API Command! (127.0.0.1)
change the

Code: Select all

type=setused
to

Code: Select all

type=command&param=setused
and the message will be gone.
One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.4.0 for Alexa, Philips Hue Bridge, Pimoroni Automation Hat
One RPi with Pi foundation standard touch screen to display Dashticz
Nefsolive
Posts: 69
Joined: Monday 04 September 2017 17:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: 15326 - [WebServer] Depricated RType

Post by Nefsolive »

hello!


After the update version 2023.2, wen i open domoticz App i recebe mensage log;

[WebServer] Deprecated RType (graph) for API request. Handled via fallback (graph), please use correct API Command!
[WebServer] Deprecated RType (users) for API request. Handled via fallback (getusers), please use correct API Command!
[WebServer] Deprecated RType (devices) for API request. Handled via fallback (getdevices), please use correct API Command!

And domoticz app not show events! say "UPSS! no data domoticz server"

Any app update coming!
Anyone whit this probleam too?
User avatar
waltervl
Posts: 5907
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: 15326 - [WebServer] Depricated RType

Post by waltervl »

Nefsolive wrote: Friday 28 July 2023 13:26 hello!


After the update version 2023.2, wen i open domoticz App i recebe mensage log;

[WebServer] Deprecated RType (graph) for API request. Handled via fallback (graph), please use correct API Command!
[WebServer] Deprecated RType (users) for API request. Handled via fallback (getusers), please use correct API Command!
[WebServer] Deprecated RType (devices) for API request. Handled via fallback (getdevices), please use correct API Command!

And domoticz app not show events! say "UPSS! no data domoticz server"

Any app update coming!
Anyone whit this probleam too?
Android App owner/author is warned for this change. https://github.com/domoticz/domoticz-android/issues/692
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