aboutsummaryrefslogtreecommitdiffstats
path: root/mqtt-client
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2026-05-13 17:18:05 +0100
committerjwansek <eddie.atten.ea29@gmail.com>2026-05-13 17:18:05 +0100
commit2ba3ac837a6f3d6ce498ff5ea3c1955c70baa8c0 (patch)
treec93011dfb4af2b224327a6d2b7756459d08f7843 /mqtt-client
parenteb80b4c998cd971b5f271a0735e0490b288c5cc9 (diff)
downloadpower.eda.gay-2ba3ac837a6f3d6ce498ff5ea3c1955c70baa8c0.tar.gz
power.eda.gay-2ba3ac837a6f3d6ce498ff5ea3c1955c70baa8c0.zip
Updated README image
Diffstat (limited to 'mqtt-client')
-rw-r--r--mqtt-client/mqtt-client.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mqtt-client/mqtt-client.py b/mqtt-client/mqtt-client.py
index 8c7bd23..ad6227c 100644
--- a/mqtt-client/mqtt-client.py
+++ b/mqtt-client/mqtt-client.py
@@ -98,17 +98,16 @@ class MQTTClient:
if status_before == "OFF":
print("TV was formerly off, so its being turned on, so we're going to turn the firestick on.")
-
set_omada_poe("Firestick", 0)
print("Waiting...")
- time.sleep(8)
+ time.sleep(6)
set_omada_poe("Firestick", 1)
print("Turned firestick on.")
else:
print("TV was formerly on, so its being turned off, so we're going to turn the firestick off.")
set_omada_poe("Firestick", 1)
print("Waiting...")
- time.sleep(8)
+ time.sleep(6)
set_omada_poe("Firestick", 0)
print("Turned firestick off.")
@@ -124,6 +123,7 @@ class MQTTClient:
status_before = self.get_http_power_status("192.168.5.6", os.environ["MQTT_PASSWD"])
self.toggle_plug("TasmotaTV")
threading.Thread(target = toggle_firestick, args = (status_before, )).start()
+ # toggle_firestick(status_before)
if zigbee_id == "0x74B3" and friendlyname == "HarveyButton" and "Power" in fields.keys():
if fields["Power"] == 2: