diff --git a/bundles/org.openhab.binding.mihome/README.md b/bundles/org.openhab.binding.mihome/README.md index 25d10a7cb56..5a7e01f15e6 100644 --- a/bundles/org.openhab.binding.mihome/README.md +++ b/bundles/org.openhab.binding.mihome/README.md @@ -246,8 +246,8 @@ rule "Mijia & Aqara Wireless Switch" when Channel "mihome:sensor_switch:::button" triggered then - var actionName = receivedEvent.getEvent() - switch(actionName) { + + switch(receivedEvent) { case "SHORT_PRESSED": { } @@ -267,8 +267,7 @@ rule "Mijia & Aqara Cube Controller" when Channel 'mihome:sensor_cube:::action' triggered then - var actionName = receivedEvent.getEvent() - switch(actionName) { + switch(receivedEvent) { case "MOVE": { } @@ -303,8 +302,7 @@ rule "Aqara Smart Motion Sensor" when Channel 'mihome:sensor_vibration:::action' triggered then - var actionName = receivedEvent.getEvent() - switch(actionName) { + switch(receivedEvent) { case "VIBRATE": { }