Page 1 of 1

delay response

Posted: 15 Oct 2014 23:05
by pierre2302
Hello

I just installed 1.7.2 and I use commands openremotehelpers module. I have a problem of delay equal to several seconds with the command I did not have with version 1.3.1 RAZ-OR

thank you

Re: delay response

Posted: 16 Oct 2014 07:47
by pofs
Does the delay happen if you send command directly from Expert UI? Does it happen for all devices, or just for some of them?

Re: delay response

Posted: 16 Oct 2014 09:26
by pierre2302
for now I can confirm that there is no delay with the user interface. the delay is for all modules

Thank you

Re: delay response

Posted: 16 Oct 2014 10:57
by pz1
A while ago I did test some of my extended RaZ-OR functions with version 1.7.1 that were functions that hadn't made it to the OpenRemoteHelpers (e.g. Devicename and DeviceFunction). So I placed the file my_openremote.js in the RaZberry automation directory, and added in main.js to the section
//--- Load Automation subsystem classes
the line

Code: Select all

executeFile("my_openremote.js");
You can put one of your problem commands there. Change the name of the function, so it does not conflict with one of the names of OpenRemoteHelper functions.

If you don't want to use any of the RaZberry automation, I think it is even possible to have a main.js with only the line shown above, and use your existing old RaZ-OR module. But this is only for the daring
Pieter

Re: delay response

Posted: 16 Oct 2014 11:50
by pierre2302
tried with RAZ_OR but there is always the delay of several seconds.

I realized that when I use for exemple a switch from OpenRemote, we can see the queue which empties before return of etat on openremote

Re: delay response

Posted: 16 Oct 2014 12:48
by pz1
The problem with OpenRemote is that it has to get the status of devices by polling. That is very inefficient. To get an instantaneous response from a switch change, you have to poll every second. Even for a switch that you may touch only once a week.
I think RaZberry can push a status change to Openremote. But that would require a separate protocol at that end, as it is not possible to push status changes via the REST Api from OR. (You can send commands there though). As OpenRemote is at a very low burner at the moment I do not see much happening there for RaZberry. They are telling the last two years that they will have a full Zwave implementation soon, but after such long time I have lost confidence it will.

Re: delay response

Posted: 16 Oct 2014 13:03
by pierre2302
Yes I agree with you, but what I does not understand it is that he worked very well with the version 1.3.1 equipped with about twenty modules with polling all 1 second for some

On the other hand the version 1.7.2 with only 2 modules it is a disaster

Re: delay response

Posted: 24 Oct 2014 04:33
by pierre2302
With version 2 I do not have this delay, its works best

This new version seems promising