as Number would be a bodge really, using units correctly allows you to compare e.g. 40°F > 5°C
I’ve just played in OH 2.5 release, if (nmt_CurrentTemperature.state > 10 | "°C") {
works fine (where the Item is a Number:Temperature type, with an if-else action to determine path)
as it does without spaces e.g. ... > 10|"°C")
and indeed without quotes e.g ... > 10|°C).
although I’m sure that did not at some point.
if (nmt_CurrentTemperature.state > 283|K) {
works too.
Changing the test Item to a plain Number type does not produce the error you see (of course the comparison is never true).
Is that a run time error, or rules load time?
Not changed Java versions?
a few reboots and cache clearouts and its back to functioning again, the only change being breaking out the failing rule into its own rule file, so go figure… well i say its functioning, at least its now not obliterating the log file and the rule is executing…ill shall monitor it closely. thanks for the pointers @rossko57 and @Bruce_Osborne