bitwarden

This commit is contained in:
jaydee 2024-06-08 23:34:18 +02:00
parent 99f052e8b1
commit 5eb1eae04f

View File

@ -924,7 +924,10 @@ def on_message(client, userdata, msg):
except:
print("not a json!")
client = mqtt.Client()
try:
client = mqttClient.Client(mqttClient.CallbackAPIVersion.VERSION1)
except:
client = mqttClient.Client()
payload = "off"
client.username_pw_set("jaydee", password="jaydee1")
client.will_set("sectorq/systems/" + host.lower() + "/stat", payload=payload, qos=0, retain=True)