From aef0244e639fa8b11acadd323c6fee3a7bbc022e Mon Sep 17 00:00:00 2001 From: smash Date: Tue, 11 Dec 2018 12:50:59 +0100 Subject: [PATCH] mqtt topic update --- unhb-mqtt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unhb-mqtt.py b/unhb-mqtt.py index 0350145..06f5776 100644 --- a/unhb-mqtt.py +++ b/unhb-mqtt.py @@ -85,7 +85,7 @@ def spaceapi(): def on_message(client, userdata, msg): # print(msg.topic+" "+str(msg.payload)) print("Received message '" + str(msg.payload) + "' on topic '" + msg.topic + "' with QoS " + str(msg.qos)) - if msg.topic == '/UHB/public/status': + if msg.topic == '/UHB/status/public': if msg.payload == "0": # space_obj["state"] = {u'open': True,u'lastchange': time.time()} space_obj["state"]["open"] = True