mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-01-24 04:49:26 +00:00
bitwarden
This commit is contained in:
parent
99f052e8b1
commit
5eb1eae04f
@ -924,7 +924,10 @@ def on_message(client, userdata, msg):
|
|||||||
except:
|
except:
|
||||||
print("not a json!")
|
print("not a json!")
|
||||||
|
|
||||||
client = mqtt.Client()
|
try:
|
||||||
|
client = mqttClient.Client(mqttClient.CallbackAPIVersion.VERSION1)
|
||||||
|
except:
|
||||||
|
client = mqttClient.Client()
|
||||||
payload = "off"
|
payload = "off"
|
||||||
client.username_pw_set("jaydee", password="jaydee1")
|
client.username_pw_set("jaydee", password="jaydee1")
|
||||||
client.will_set("sectorq/systems/" + host.lower() + "/stat", payload=payload, qos=0, retain=True)
|
client.will_set("sectorq/systems/" + host.lower() + "/stat", payload=payload, qos=0, retain=True)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user