From 1bae2d2c0296c7c055650c5bdf7b639708e70b70 Mon Sep 17 00:00:00 2001 From: polyfloyd Date: Wed, 13 Sep 2023 19:52:34 +0200 Subject: [PATCH] Fix bitlair state topic --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index b9fc682..9eb633b 100755 --- a/main.py +++ b/main.py @@ -94,7 +94,7 @@ async def np(ctx): # # subscribe to topics def on_connect(client, userdata, flags, rc): - client.subscribe("bitlair/state/bitlair") + client.subscribe("bitlair/state") client.subscribe("bitlair/state/djo") client.subscribe("bitlair/photos") @@ -110,7 +110,7 @@ def on_message(client, userdata, msg): topic = msg.topic msg = msg.payload.decode() - if topic == 'bitlair/state/bitlair': + if topic == 'bitlair/state': webhook_message('Bitlair is now %s' % msg.upper()) elif topic == 'bitlair/state/djo': webhook_message('DJO is now %s' % msg.upper())