I do use Rollershutter Items in combination with an http binding.
The http binding reads out the status of the RollerShutter each 3000 ms (get function).
The resulting json is parsed via JS Transform and this should update the value of the item.
Unfortunately it does no longer. (Same is working in OH2 without problems)
The JS Transform looks like
(function(i)
{
var logger = Java.type(“org.slf4j.LoggerFactory”).getLogger(“myScript”);
logger.warn(i);
var json = JSON.parse(i);
for (i=0; i < json.length; i++)
{
…
{
var test = …
logger.warn("now set to "+test);
return test; <<< Test contains the right value between 0 and 100
}
}
})(input)
However the item state still shows UNDEF.
Any ideas?
(same is working in OH2 without issues)
Status is online. However the Rollershutteritem is not updated.
Via the item, I can send commands to the Rollershutter actor, so opening and closing is working but I cannot get the value of the item shown.