It depends on your keyboard and operating system. It’s in the description in the UI so I usually just copy and paste it from there as I create the Thing in the UI.
2024-06-08 21:23:50.347 [WARN ] [penhab.core.config.core.ConfigParser] - Conversion of value '' with type 'class java.lang.String' to 'class java.util.ArrayList' failed. Returning null
Where did you get the syntax for this? There a whole bunch wrong with it. It’s not valid JS code. Something like the following might work:
JS:| (parseFloat(input) > 0) ? input : 0
The original was basically unparsable (no open parens, nothing to the left of “>”) and logically incorrect (input is a String so “2” > “10” because “2” comes later alphabetically.
If you want to avoid the Item being updated at all you are out of luck. There is no transformation that will prevent the update from flowing through to the Item. You can change that update through a transform but you cannot prevent the update from occurring at all.
All you can do is if the value doesn’t make sense or there is some other error value convert that to something else (e.g. 0, UNDEF, NULL, the current state of the Item, etc.).
If the Thing itself goes offline you’ll need some external rule to change the state of the Item.
If you need an Item that doesn’t update at all, you’ll need to use a rule and a Proxy Item.