]> mj.ucw.cz Git - home-hw.git/commitdiff
Telegram: client_id
authorMartin Mares <mj@ucw.cz>
Sun, 27 Feb 2022 15:38:40 +0000 (16:38 +0100)
committerMartin Mares <mj@ucw.cz>
Sun, 27 Feb 2022 15:38:40 +0000 (16:38 +0100)
telegram/burrow-telegram.py

index f763af00b803b95832dc5f3de2b0b120ed17a1ec..73059156660564a835c57b6ac1468b0bc39eed98 100755 (executable)
@@ -137,7 +137,7 @@ async def mqtt_loop():
     sctx.load_cert_chain('/etc/burrow-mqtt/client.crt', '/etc/burrow-mqtt/client.key')
     sctx.load_verify_locations(cafile='/etc/burrow-mqtt/ca.crt')
 
-    async with asyncio_mqtt.Client(hostname="burrow-mqtt", port=8883, tls_context=sctx) as mqtt:
+    async with asyncio_mqtt.Client(client_id='telegram', hostname="burrow-mqtt", port=8883, tls_context=sctx) as mqtt:
         async with mqtt.unfiltered_messages() as messages:
             await mqtt.subscribe("burrow/heating/#")
             await mqtt.subscribe("burrow/temp/#")