Xiaomi rule problem

Have a problem with the standard-button rule of xiaomi

rule "Mijia & Aqara Wireless Switch"
when
    Channel "mihome:sensor_switch:<7c49xxxx>:<158d0001exxxx>:button" triggered
then
    var actionName = receivedEvent.getEvent()
    switch(actionName) {
        case "SHORT_PRESSED": {
            <Decke_Kueche1.sendCommand(ON)>
        }
        case "DOUBLE_PRESSED": {
            <Decke_Kueche1.sendCommand(OFF)>
        }
        case "LONG_PRESSED": {
            <Decke_Kueche1.sendCommand(OFF)>
        }
        case "LONG_RELEASED": {
            <ACTION>
        }
    }
end

Log:

2020-09-16 01:01:22.435 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model 'xiaomi.rules' has errors, therefore ignoring it: [8,39]: mismatched input '(' expecting '>'

[9,9]: no viable alternative at input '}'

[11,39]: mismatched input '(' expecting '>'

[12,9]: no viable alternative at input '}'

[14,39]: mismatched input '(' expecting '>'

[15,9]: no viable alternative at input '}'

[18,9]: no viable alternative at input '}'

Not sure what those < > are about, but they are not wanted here.

here too

1 Like