delay response

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
pierre2302
Posts: 132
Joined: 15 Oct 2013 19:04

delay response

Post 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
" Raspi 2 (RaZberry) / Raspi B (Razberry) " With OpenRemote Free 2.2.0_TTS-Email-Serial and Z-Way
pofs
Posts: 688
Joined: 25 Mar 2011 19:03

Re: delay response

Post 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?
pierre2302
Posts: 132
Joined: 15 Oct 2013 19:04

Re: delay response

Post by pierre2302 »

for now I can confirm that there is no delay with the user interface. the delay is for all modules

Thank you
" Raspi 2 (RaZberry) / Raspi B (Razberry) " With OpenRemote Free 2.2.0_TTS-Email-Serial and Z-Way
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: delay response

Post 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
Since 29-12-2016 I am no longer a moderator for this forum
pierre2302
Posts: 132
Joined: 15 Oct 2013 19:04

Re: delay response

Post 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
" Raspi 2 (RaZberry) / Raspi B (Razberry) " With OpenRemote Free 2.2.0_TTS-Email-Serial and Z-Way
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: delay response

Post 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.
Since 29-12-2016 I am no longer a moderator for this forum
pierre2302
Posts: 132
Joined: 15 Oct 2013 19:04

Re: delay response

Post 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
" Raspi 2 (RaZberry) / Raspi B (Razberry) " With OpenRemote Free 2.2.0_TTS-Email-Serial and Z-Way
pierre2302
Posts: 132
Joined: 15 Oct 2013 19:04

Re: delay response

Post by pierre2302 »

With version 2 I do not have this delay, its works best

This new version seems promising
" Raspi 2 (RaZberry) / Raspi B (Razberry) " With OpenRemote Free 2.2.0_TTS-Email-Serial and Z-Way
Post Reply