Browse Source

mqqt topic name changed to status for feedback channel

master
Dirk Alders 2 years ago
parent
commit
c796d1d47a
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      powerplug.py

+ 1
- 1
powerplug.py View File

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

Loading…
Cancel
Save