Good day,
i am in the middle of a OH2->OH3-Migration and struggeling with some HTTP-Get-Commands.
In OH2.5.6 i made a item like this:
String HueMotionSensor001_Name { http=“<[http://IP-ADRESS/api/USERNAME/sensors/3:60000:JS(getHueName.js)]” }
and could resolve the Clear-Name of a Hue Device from my Hue Bridge.
This is just for an example. I have several items like this.
Since OH3.0.0 i am not able to get this working.
Bindings installed: HTTP, JSONPath Transform, HUE
Unfortunately i cant see any errors in the logs or something. Its just receiving nothing and doing nothing.
Content of GetHueName.js:
(function(i) {
var json = JSON.parse(i);
return ((json[‘name’]));
})(input)
Do you have any hints for me?