|
@@ -49,7 +49,7 @@ class sispmctl(object):
|
49
|
49
|
self.send_state(output)
|
50
|
50
|
|
51
|
51
|
def send_state(self, output):
|
52
|
|
- topic = config.MQTT_TOPIC + "/get/" + str(output)
|
|
52
|
+ topic = config.MQTT_TOPIC + "/status/" + str(output)
|
53
|
53
|
logger.info("Sending Powerplug status information of plug %d to mqtt %s = %s", output, topic, str(self.get_out_state(output)))
|
54
|
54
|
self.__mqtt_client__.publish(topic, "true" if self.get_out_state(output) else "false")
|
55
|
55
|
|