From c796d1d47a1b7851d3c70963c3711d2bc6f5380b Mon Sep 17 00:00:00 2001 From: Dirk Alders Date: Sun, 24 Jul 2022 09:23:48 +0200 Subject: [PATCH] mqqt topic name changed to status for feedback channel --- powerplug.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerplug.py b/powerplug.py index d1d3246..7e9a832 100644 --- a/powerplug.py +++ b/powerplug.py @@ -49,7 +49,7 @@ class sispmctl(object): self.send_state(output) def send_state(self, output): - topic = config.MQTT_TOPIC + "/get/" + str(output) + topic = config.MQTT_TOPIC + "/status/" + str(output) logger.info("Sending Powerplug status information of plug %d to mqtt %s = %s", output, topic, str(self.get_out_state(output))) self.__mqtt_client__.publish(topic, "true" if self.get_out_state(output) else "false")