mqqt topic name changed to status for feedback channel
このコミットが含まれているのは:
コミット
c796d1d47a
@ -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")
|
||||
|
||||
|
読み込み中…
x
新しいイシューから参照
ユーザーをブロックする