]> git.basschouten.com Git - openhab-addons.git/commitdiff
[hue] Fix rule example (#9928)
authorDaniel Pape <github.com@75ohm.de>
Sun, 24 Jan 2021 10:36:56 +0000 (11:36 +0100)
committerGitHub <noreply@github.com>
Sun, 24 Jan 2021 10:36:56 +0000 (11:36 +0100)
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

index 689707bdd9e11da93f283cf452255626cde42a1d..332b25cb8a20569f564bba743c0982a30afa2196 100644 (file)
@@ -357,12 +357,12 @@ end
 ```
 
 The optional `<EVENT>` 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
 }       
 ```