Combine commands in one HTTP call

Discussions about RaZberry - Z-Wave board for Raspberry computer
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

You're right

Post by pz1 » 30 Mar 2013 15:13

You are right. The Get() does come automatically after I have done a Set() from within OpenRemote. Good to know that the Read.status does not create a package. I'll have to dig a bit deeper at the OR side to see what happens there.
Thanks, Pieter
Since 29-12-2016 I am no longer a moderator for this forum

pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Error at Razberry side?

Post by pz1 » 30 Mar 2013 15:13

My read command is submitted by OpenRemote at 1 second intervals as:
http://raspberry:8083/JS/Run/zway.devic ... F"on":"off"
In the z-way-server.log I noticed many repeating blocks like:

Executing script: zway.devices%5B2%5D.Basic.data.level.value%3F"on":"off"
JavaScript compilation error: Uncaught SyntaxError: Unexpected token ILLEGAL
JavaScript compilation error: Uncaught SyntaxError: Unexpected token ILLEGAL

Since 29-12-2016 I am no longer a moderator for this forum

pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

I found different solution within OpenRemote

Post by pz1 » 30 Mar 2013 15:13

I have found a different method to map retrieved values within Openremote. So, the solution for this "bug" is not relevant for my present task.
The different method helped me to get the binary switch working in principle. Unfortunately this comes at the cost of sending this read command every few seconds. My present thinking is that the OpenRemote HTTP calls would need a programmable delay setting.
Since 29-12-2016 I am no longer a moderator for this forum

Post Reply