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!
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.
waltervl wrote: ↑Wednesday 14 June 2023 0:36
The app will probably change only after the current beta is promoted to stable else the app will not work on current stable.
Which is an issue when there is no backward compatibility build into the APP since a hard cut change would mean everybody needs to upgrade Domoticz immediately when the app changes!
To avoid putting the burden onto the developers of APPS and other external processes and hard cutoffs, these "breaking change" really should be implemented over 2 releases:
First release (now) the new and old format API should work without it triggering all these errors in the logfile and informing everyone of start making the changes to the APIs in their external APPs/Fornt-ends/Batch processes.
Next release (Beta&Prod after current Beta went into production) the new and old format API should work, but now implement the errors in the logfile so people know this is really happening.
2nd Next release (Beta&Prod) stop support for old API format.
This way everybody gets the time to make the adaptions and upgrades in their own time.
Just my 2 cents.
This is exactly the perfect way to do it. Unfortunately that has not been so often the case. Look after the new blind behaviour.
I do hope that for the API we will apply those approach
The blinds chamge is not the same situation as that really needed to be changed to make it work the way it should have been in the first place and there is no option to make it backwards compatible, so you have to bite that bullet and go for it.
The API change mak s sense but is very easy to keep backward compatibility for a couple of release.
jvdz wrote: ↑Wednesday 14 June 2023 15:27
The blinds chamge is not the same situation as that really needed to be changed to make it work the way it should have been in the first place and there is no option to make it backwards compatible, so you have to bite that bullet and go for it.
The API change mak s sense but is very easy to keep backward compatibility for a couple of release.
I do not fully agree, as they were a possibility to have backward capability by a settings in the Domoticz settings.
That's fine, but adding an option doesn't do anything on the app side and is still a hard cut-over so nothing to fo with backward compatibility as it doesn't support both at the same time. .... Either way, let's not wordsmith too much and get back on the topic at hand: the change of the API format.
Kedi wrote:There are still a few 'old' calls left in dzVents/runtime/device-adaptors/*
Will they be changed to the 'new' call?
Found those as well. Will try to update those as well.
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
jvdz wrote: ↑Tuesday 06 June 2023 9:28
Isn't dzVents causing these messages too as I see some 28 references that needs changing in the current github source of which 12 seem to be in the core code?:
kiddigital wrote: ↑Wednesday 07 June 2023 21:37
Just enable the `webserver` debug flag and you will see a lot more details from the webserver.
Where do you do this ?
I have about 4 error by minutes and I can not figure out where it comes from.
I checked all my scripts, all the scripts links inside the devices, all my external script. I see nothng special.
Perhaps it would help if we have a print of the api command in the log next to the message in order to see what call creates the error.
kiddigital wrote: ↑Wednesday 07 June 2023 21:37
Just enable the `webserver` debug flag and you will see a lot more details from the webserver.
Where do you do this ?
I have about 4 error by minutes and I can not figure out where it comes from.
I checked all my scripts, all the scripts links inside the devices, all my external script. I see nothng special.
Perhaps it would help if we have a print of the api command in the log next to the message in order to see what call creates the error.
The status message tells you which RType command is called and from which IP the request is coming from. (And if it is handled via fallback or not).
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
I looked at the source, and it seems that the plugin check the API version and use the old or the new call api.
I tried to stop the plugin : almost all the errors stopped, but it is not necessarily the plugin fault. Perhaps it is something using this device and if the plugin is stopped, the device is no more available > so the errors stop.
Not sure where you looked, but when I check the Github source I only see "DOMOTICZ_DEVICEST_API = "type=devices&rid="" in DomoticzDB.py?
EDIT: ... or are you running the Development branch, which indeed has a check for version in it?
2023-06-26 14:01:07.579 Status: [WebServer] Deprecated RType (devices) for API request. Handled via fallback (getdevices), please use correct API Command! (127.0.0.1)
2023-06-26 14:01:07.583 Status: [WebServer] Deprecated RType (devices) for API request. Handled via fallback (getdevices), please use correct API Command! (127.0.0.1)
2023-06-26 14:01:07.651 Status: [WebServer] Deprecated RType (devices) for API request. Handled via fallback (getdevices), please use correct API Command! (127.0.0.1)
2023-06-26 14:01:07.655 Status: [WebServer] Deprecated RType (devices) for API request. Handled via fallback (getdevices), please use correct API Command! (127.0.0.1)
2023-06-26 14:01:07.717 Status: [WebServer] Deprecated RType (devices) for API request. Handled via fallback (getdevices), please use correct API Command! (127.0.0.1)
2023-06-26 14:01:07.722 Status: [WebServer] Deprecated RType (devices) for API request. Handled via fallback (getdevices), please use correct API Command! (127.0.0.1)
2023-06-26 14:01:07.798 Status: [WebServer] Deprecated RType (devices) for API request. Handled via fallback (getdevices), please use correct API Command! (127.0.0.1)
2023-06-26 14:01:07.802 Status: [WebServer] Deprecated RType (devices) for API request. Handled via fallback (g
Is this mean i have 7 errors with api calls?
Only how can i find this in all my scripts?
I can not script i am a user..
Is there a way how i can check te places in code for this error?
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups