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."
  • Loading branch information
TRSx80 authored and andrewfg committed Aug 31, 2020
1 parent 9bfbe69 commit f9fdaac
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 f9fdaac

Please sign in to comment.