From: Martin Mares Date: Sun, 27 Feb 2022 15:38:40 +0000 (+0100) Subject: Telegram: client_id X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=4a043fa76a538e74111cdd0b4955f75c1077fcf8;p=home-hw.git Telegram: client_id --- diff --git a/telegram/burrow-telegram.py b/telegram/burrow-telegram.py index f763af0..7305915 100755 --- a/telegram/burrow-telegram.py +++ b/telegram/burrow-telegram.py @@ -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/#")