mqtt_client.py: add auto discovery for home assistant
This commit is contained in:
parent
6b8c57441f
commit
5ae6d1f832
2 changed files with 26 additions and 3 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue