Skip to content

Commit

Permalink
[xmppclient] fix typo in doc example (openhab#7866)
Browse files Browse the repository at this point in the history
If Bridge example at top uses (two) ## then split command further down needs to, also.

I was trying to get this working on my own machine but could not until making that small change. So in that sense, it has been (lightly) "tested."

Signed-off-by: CSchlipp <[email protected]>
  • Loading branch information
TRSx80 authored and CSchlipp committed Jul 26, 2020
1 parent dee8d45 commit 6a84126
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bundles/org.openhab.binding.xmppclient/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ rule "Turn off all lights with separator and reply"
when
Channel "xmppclient:xmppBridge:xmpp:xmpp_command" triggered
then
var actionName = receivedEvent.getEvent().split("#")
var actionName = receivedEvent.getEvent().split("##")
if(actionName.get(1).toLowerCase() == "turn off lights") {
Group_Light_Home_All.sendCommand(OFF)
Expand Down

0 comments on commit 6a84126

Please sign in to comment.