Since when are rules case sensitive?

Hi,

since when is

rule "Multimedia - Start watching TV"
when
  Channel "harmonyhub:hub:HarmonyHub:activityStarting" triggered "Fernsehen" or
  Channel "harmonyhub:hub:HarmonyHub:activityStarting" triggered "FireTV"
then
end

different to

rule "Multimedia - Start watching TV"
when
  Channel "harmonyhub:hub:HarmonyHub:activityStarting" triggered "Fernsehen" OR
  Channel "harmonyhub:hub:HarmonyHub:activityStarting" triggered "FireTV"
then
end

See the OR in the second rule?

The first one works, the second not.

missing 'then' at 'OR'
[5,56]: no viable alternative at input 'triggered'
[5,76]: no viable alternative at input 'or'

It’s no problem at all, but I couldn’t find any documentation about this behaviour.

Just about everything in openHAB rules is case sensitive

2 Likes

Since always as far as I’m aware. The move from OH 2.2 to 2.3 tightened up the syntax checking a bit where it used to allow some minor errors like this through without detection and now it identifies and reports them correctly.

If this is something that used to work but doesn’t now then that might be why you never saw the problem before. If not, then as rossko57 states, everything in OH is case sensitive.