the output of the script run by OH2 exec binding looks like this:
21.88
54.30
100
is it possible to configure my Item to only show one of these 3 values without using a rule, that splits the execution output?
the output of the script run by OH2 exec binding looks like this:
21.88
54.30
100
is it possible to configure my Item to only show one of these 3 values without using a rule, that splits the execution output?
I think you have to use “get(0)” instead of array[0]. that’s what I’ve used in an OpenHAB rule
You could use a REGEX transform (I am not too familiar with these, the syntax puts me off)
Or as JAVASCRIPT transform
You could change the Skript or use some similar regex like the third example in following post.