aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2025-06-09 14:14:22 +0100
committerjwansek <eddie.atten.ea29@gmail.com>2025-06-09 14:14:22 +0100
commit482e4a767cea6499b5ba26a56baa0db16e2830b7 (patch)
treed3102fda5818c6a3ad9028d213ea7b841cac27c4
parent70f3264561b1e2c444408d75bfbc9d72ca85c771 (diff)
downloadpower.eda.gay-482e4a767cea6499b5ba26a56baa0db16e2830b7.tar.gz
power.eda.gay-482e4a767cea6499b5ba26a56baa0db16e2830b7.zip
Reverted to toggling geoffery with MQTT instead of HTTPHEADmaster
-rw-r--r--mqtt-client/mqtt-client.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/mqtt-client/mqtt-client.py b/mqtt-client/mqtt-client.py
index 00a808f..37ed8cb 100644
--- a/mqtt-client/mqtt-client.py
+++ b/mqtt-client/mqtt-client.py
@@ -106,11 +106,11 @@ class MQTTClient:
if fields["Power"] == 2:
print("TV Zigbee button pressed, toggling TasmotaTV Tasmota Plug")
self.toggle_plug("TasmotaTV")
- # threading.Thread(target = toggle_geoffery, args = ()).start()
- loop = asyncio.get_event_loop()
- loop.run_until_complete(tasmotaHTTPClient.main(host = "geoffery.plug", username = "admin", password = os.environ["MQTT_PASSWD"], toggle = True))
- time.sleep(8)
- loop.run_until_complete(tasmotaHTTPClient.main(host = "geoffery.plug", username = "admin", password = os.environ["MQTT_PASSWD"], toggle = True))
+ threading.Thread(target = toggle_geoffery, args = ()).start()
+ #loop = asyncio.get_event_loop()
+ #loop.run_until_complete(tasmotaHTTPClient.main(host = "geoffery.plug", username = "admin", password = os.environ["MQTT_PASSWD"], toggle = True))
+ #time.sleep(8)
+ #loop.run_until_complete(tasmotaHTTPClient.main(host = "geoffery.plug", username = "admin", password = os.environ["MQTT_PASSWD"], toggle = True))
if zigbee_id == "0x74B3" and friendlyname == "HarveyButton" and "Power" in fields.keys():