Hey,
is there a bug (or do I do anything else wrong) with rules and items beginning with numbers?
The errormessage is:
2018-11-18 22:16:55.464 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model 'default.rules' has errors, therefore ignoring it: [35,3]: no viable alternative at input '109_L'
[37,3]: mismatched input 'Item' expecting 'end'
[45,3]: no viable alternative at input '109_L'
[47,3]: mismatched input 'Item' expecting 'end'
[55,3]: no viable alternative at input '109_L'
[57,3]: mismatched input 'Item' expecting 'end'
[65,3]: no viable alternative at input '109_L'
[67,3]: mismatched input 'Item' expecting 'end'
[75,3]: no viable alternative at input '109_L'
[77,3]: mismatched input 'Item' expecting 'end'
And the rule is:
rule "x109s1"
when
Item 109_Light_S1 changed to ON
then
logInfo("Harmony", "RGBW S1")
109_Light_S2.sendCommand(OFF)
109_Light_S3.sendCommand(OFF)
109_Light_S4.sendCommand(OFF)
109_Light_S5.sendCommand(OFF)
end
If I rename the items to for example x109_light_s1 it seems to work.
Is there any possibility to escape the name? Quotationmarks do not help
Thanks,
Patrick