From 3c2960e1fe84693cd8a6bac0923ec4a586228ddf Mon Sep 17 00:00:00 2001 From: Daniel Pape Date: Sun, 24 Jan 2021 11:36:56 +0100 Subject: [PATCH] [hue] Fix rule example (#9928) Updated README.md with example working under openhab 3.0. The receivedEvent does no longer have a method getEvent(). --- bundles/org.openhab.binding.hue/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bundles/org.openhab.binding.hue/README.md b/bundles/org.openhab.binding.hue/README.md index 689707bdd..332b25cb8 100644 --- a/bundles/org.openhab.binding.hue/README.md +++ b/bundles/org.openhab.binding.hue/README.md @@ -357,12 +357,12 @@ end ``` The optional `` represents one of the button events that are generated by the Hue Dimmer Switch. -If ommited the rule gets triggered by any key action and you can determine the event that triggered it with the `receivedEvent.getEvent()` method. +If ommited the rule gets triggered by any key action and you can determine the event that triggered it with the `receivedEvent` method. Be aware that the events have a '.0' attached to them, like `2001.0` or `34.0`. So, testing for specific events looks like this: ```php -if (receivedEvent.getEvent() == "1000.0")) { +if (receivedEvent == "1000.0")) { //do stuff } ```