Hello all,
The profile JS transformation is not working in a text file item file
here is my try
Rollershutter myLivingShutter "Wohnzimmer [%d]" { channel="deconz:windowcovering:000000000000:a4c1385ebde6490601:position" [profile="transform:JS", toItemScript="rollershutter.js"] }
rollershutter.js
(function(position) {
var newposition = 100 - position;
return newposition;
}) (input)
I doesn’t work
But if I do it via main UI everything is fine
but it doesn’t work anything wrong?
See dlso here
The Solution is there must be again the JS before the script name, but the documentation don’t tell it
correct solution
Rollershutter myLivingShutter "Wohnzimmer [%d]" { channel="deconz:windowcovering:000000000000:a4c1385ebde6490601:position" [profile="transform:JS", toItemScript="JS:rollershutter.js"] }
is this an implementation or documentation error?