Skip to content

Commit

Permalink
[Hotfix] Merge pull request #56 from igresc/homewareMQTT-control-bug-…
Browse files Browse the repository at this point in the history
…fixed

Fixed homewareMQTT.py control publish issue
  • Loading branch information
kikeelectronico authored Jun 16, 2020
2 parents 8c56883 + 4f52c9d commit 6612beb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions homewareMQTT.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ def control(payload):
# Analyze the message
if intent == 'execute':
hData.updateParamStatus(id,param,value)
publish.single("device/"+id, hData.getStatus()[id], hostname="localhost")
publish.single("device/"+id, json.dumps(hData.getStatus()[id]), hostname="localhost")
elif intent == 'rules':
hData.updateParamStatus(id,param,value)
elif intent == 'request':
publish.single("device/"+id, hData.getStatus()[id], hostname="localhost")
publish.single("device/"+id, json.dumps(hData.getStatus()[id]), hostname="localhost")



Expand Down

0 comments on commit 6612beb

Please sign in to comment.