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.
basmaaks
Posts: 16
Joined: Tuesday 17 October 2017 18:55
Target OS: -
Domoticz version:

Re: 15326 - [WebServer] Depricated RType

Post by basmaaks »

Gravityz wrote: Friday 01 September 2023 15:09 that looks fine, i use the same command

do you have the edomoticz plugin in homebridge?
yep.

i've got one temp sensor and 2 virtual switches exposed to homebridge.
Gravityz
Posts: 583
Joined: Wednesday 16 December 2015 19:13
Target OS: NAS (Synology & others)
Domoticz version: 2022.2
Location: Netherlands
Contact:

Re: 15326 - [WebServer] Depricated RType

Post by Gravityz »

ok, if you did not manually fixxed things in edomoticz that's your problem

look at this thread

you can solve the issue by manually changing the domoticz.js file IN HOMEBRIDGE.

https://github.com/PatchworkBoy/homebri ... issues/265
basmaaks
Posts: 16
Joined: Tuesday 17 October 2017 18:55
Target OS: -
Domoticz version:

Re: 15326 - [WebServer] Depricated RType

Post by basmaaks »

Gravityz wrote: Friday 01 September 2023 15:16 ok, if you did not manually fixxed things in edomoticz that's your problem

look at this thread

you can solve the issue by manually changing the domoticz.js file IN HOMEBRIDGE.

https://github.com/PatchworkBoy/homebri ... issues/265
YES, that was the problem, fixed it. !!!
User avatar
pierrotori
Posts: 101
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 »

exactly , now the domoticz log is clean :D
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
Gravityz
Posts: 583
Joined: Wednesday 16 December 2015 19:13
Target OS: NAS (Synology & others)
Domoticz version: 2022.2
Location: Netherlands
Contact:

Re: 15326 - [WebServer] Depricated RType

Post by Gravityz »

glad i could help
markk
Posts: 267
Joined: Tuesday 14 January 2014 14:50
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: 15326 - [WebServer] Depricated RType

Post by markk »

kiddigital wrote: Friday 09 June 2023 22:13
newpond wrote:

If any one can see how to modify these to follow the new requirements, i would be grateful of any help.

var jurl=$.domoticzurl+"/json.htm?type=devices

thanks
Newpond
That one has to change ‘type=command&param=getdevices’

You can remove the ‘&jsoncallback=?’ as that is also not supported anymore.

The others should be ok
EDITED
I hope someone can help me please. I'm having trouble getting my frontpage working again after Domoticz update. I was getting two Rtype errors, one for devices and one for scenes. I have changed /json.htm?type=devices to /json.htm?type=command&param=getdevices and that seems to have fixed the devices issue but having changed /json.htm?type=scenes to /json.htm?type=command&param=getscenes I'm still getting a scenes R type error: [WebServer] Deprecated RType (scenes) for API request. Handled via fallback (getscenes), please use correct API Command!
Last edited by markk on Tuesday 31 October 2023 12:48, edited 1 time in total.
Running Domoticz on Pi3 with RFXtrx433e. LWRF power sockets and dimmer switches. Integrated my existing wirefree alarm PIRs and door contacts with domoticz. Geofencing with Pilot. Harmony Hub. Tado for Heating. Now playing with mysensors.
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: 15326 - [WebServer] Depricated RType

Post by jvdz »

markk wrote: Tuesday 31 October 2023 12:07 but having changed /json.htm?type=devices to /json.htm?type=command&param=getscenes I'm still getting a scenes R type error:
mmm... I guess you mean you changed:/json.htm?type=scenes to /json.htm?type=command&param=getscenes ?
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
markk
Posts: 267
Joined: Tuesday 14 January 2014 14:50
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: 15326 - [WebServer] Depricated RType

Post by markk »

jvdz wrote: Tuesday 31 October 2023 12:18
markk wrote: Tuesday 31 October 2023 12:07 but having changed /json.htm?type=devices to /json.htm?type=command&param=getscenes I'm still getting a scenes R type error:
mmm... I guess you mean you changed:/json.htm?type=scenes to /json.htm?type=command&param=getscenes ?
Oops, yes, sorry. That's exactly what I mean. I now corrected this typo.
Running Domoticz on Pi3 with RFXtrx433e. LWRF power sockets and dimmer switches. Integrated my existing wirefree alarm PIRs and door contacts with domoticz. Geofencing with Pilot. Harmony Hub. Tado for Heating. Now playing with mysensors.
pipiche
Posts: 1975
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: 15326 - [WebServer] Depricated RType

Post by pipiche »

Ça peut être lié à un soucis de rapport. Donc il faudrait que tu mettes une ampoule dont tu connais la consommation et ainsi je pourrais en déduire le bon ratio


Envoyé de mon iPhone en utilisant Tapatalk
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
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: 15326 - [WebServer] Depricated RType

Post by jvdz »

markk wrote: Tuesday 31 October 2023 12:47 Oops, yes, sorry. That's exactly what I mean. I now corrected this typo.
Well then it must be that there is another API call using that old format API or something is cached. :)
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: 15326 - [WebServer] Depricated RType

Post by waltervl »

markk wrote: Tuesday 31 October 2023 12:07
EDITED
I hope someone can help me please. I'm having trouble getting my frontpage working again after Domoticz update. I was getting two Rtype errors, one for devices and one for scenes. I have changed /json.htm?type=devices to /json.htm?type=command&param=getdevices and that seems to have fixed the devices issue but having changed /json.htm?type=scenes to /json.htm?type=command&param=getscenes I'm still getting a scenes R type error: [WebServer] Deprecated RType (scenes) for API request. Handled via fallback (getscenes), please use correct API Command!
Then there is another proces/application in your environment calling the deprecated API call. Also clear your browser cache, that also helps to get changes implemented in a browser environment.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
markk
Posts: 267
Joined: Tuesday 14 January 2014 14:50
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: 15326 - [WebServer] Depricated RType

Post by markk »

So the rtype errors have now gone but no devices are showing on frontpage. I can see the incoming connection in the log: 192.168.0.39:8080/frontpage2/index.html. The index.html file is the same one that was working before I updated Domoticz :(
Running Domoticz on Pi3 with RFXtrx433e. LWRF power sockets and dimmer switches. Integrated my existing wirefree alarm PIRs and door contacts with domoticz. Geofencing with Pilot. Harmony Hub. Tado for Heating. Now playing with mysensors.
User avatar
waltervl
Posts: 5148
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 »

You probably made a type error somewhere so Domoticz does not understand what you are doing.

Do you see a white page or is there some general information from the index.html and no sensor values?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
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: 15326 - [WebServer] Depricated RType

Post by jvdz »

markk wrote: Tuesday 31 October 2023 18:25 So the rtype errors have now gone but no devices are showing on frontpage. I can see the incoming connection in the log: 192.168.0.39:8080/frontpage2/index.html. The index.html file is the same one that was working before I updated Domoticz :(
Hit F12 and goto the network tab to see the requests and the results returned.
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
markk
Posts: 267
Joined: Tuesday 14 January 2014 14:50
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: 15326 - [WebServer] Depricated RType

Post by markk »

I don’t know how to post a screenshot but when I hit F12 I can view my index.html file under the sources tab. Network tab shows a list of requests
Running Domoticz on Pi3 with RFXtrx433e. LWRF power sockets and dimmer switches. Integrated my existing wirefree alarm PIRs and door contacts with domoticz. Geofencing with Pilot. Harmony Hub. Tado for Heating. Now playing with mysensors.
User avatar
kiddigital
Posts: 435
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 »

And if they are ok (200) or not.. all ok?
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
markk
Posts: 267
Joined: Tuesday 14 January 2014 14:50
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: 15326 - [WebServer] Depricated RType

Post by markk »

Yes. All showing (200) but it is reporting an issue:

Because a cookie’s SameSite attribute was not set or is invalid, it defaults to SameSite=Lax, which prevents the cookie from being set in a cross-site context. This behavior protects user data from accidentally leaking to third parties and cross-site request forgery.
Resolve this issue by updating the attributes of the cookie:
Specify SameSite=None and Secure if the cookie is intended to be set in cross-site contexts. Note that only cookies sent over HTTPS may use the Secure attribute.
Specify SameSite=Strict or SameSite=Lax if the cookie should not be set by cross-site requests.
1 cookie
Name Domain & Path
DMZSID 192.168.0.XXX/
Running Domoticz on Pi3 with RFXtrx433e. LWRF power sockets and dimmer switches. Integrated my existing wirefree alarm PIRs and door contacts with domoticz. Geofencing with Pilot. Harmony Hub. Tado for Heating. Now playing with mysensors.
houk
Posts: 17
Joined: Thursday 07 April 2016 16:53
Target OS: Linux
Domoticz version: 2023.2
Contact:

Re: 15326 - [WebServer] Depricated RType

Post by houk »

Joep123 wrote: Friday 02 June 2023 19:55
gizmocuz wrote: Friday 02 June 2023 14:04 For external API queries, RType queries have been replaced by normal queries.
I changed all my scripts (104):

Code: Select all

/json.htm?type=devices
into

Code: Select all

/json.htm?type=command&param=getdevices

and

Code: Select all

/json.htm?type=graph&
into

Code: Select all

/json.htm?type=command&param=graph&
The messages about "Depricated RType" don't appear anymore :)
I have 2 devices running on the old API which I cannot convert to the new API. Unfortunately, I do not have the source code for one, and for the other I am not able to compile the ESP8266 batch using the current libraries. So the Domoticz upgrade lock will probably last quite a long time for me...
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: 15326 - [WebServer] Depricated RType

Post by jvdz »

One way could be to implement an reverse proxy that will translate the old API call to the new format as I posted here as solution when the Android App crashed when used on old domoticz versions: viewtopic.php?p=308169#p308169
The only thing you need to be able to do is change the used port on those devices you can't change the API format on from eg 8080 to 8082 when using that posted setup.
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
houk
Posts: 17
Joined: Thursday 07 April 2016 16:53
Target OS: Linux
Domoticz version: 2023.2
Contact:

Re: 15326 - [WebServer] Depricated RType

Post by houk »

Thank you for that.
Simpler option is to maintain backward compatibility in domoticz itself and no disabling old format.
I already lost one way to access domoticz via old, not maintained from 2017 year app Imperihome because of changes in domoticz security.
Now another thing in next version will be lost. It shouldn't be like this.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest