mqtt_client.py: add auto discovery for home assistant

This commit is contained in:
coon 2025-09-26 23:09:13 +02:00
parent 6b8c57441f
commit 5ae6d1f832
2 changed files with 26 additions and 3 deletions

View file

@ -28,7 +28,7 @@ def main():
j = json.dumps({"command": "scene_recall", "args": {"scene_id": 0}})
# j = json.dumps({'command': 'shutdown'})
client.publish(mqtt_client.MQTT_TOPIC, payload=j, qos=0, retain=False)
client.publish(mqtt_client.MQTT_COMMAND_TOPIC, payload=j, qos=0, retain=False)
time.sleep(2)