From 0d993489d41149e14af35544b72935738d03b416 Mon Sep 17 00:00:00 2001 From: quoije Date: Wed, 19 Oct 2022 16:57:05 -0400 Subject: [PATCH] 123456 --- HA-SS_Sync.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/HA-SS_Sync.py b/HA-SS_Sync.py index ce9a889..1315b9a 100644 --- a/HA-SS_Sync.py +++ b/HA-SS_Sync.py @@ -28,9 +28,9 @@ def checkLight(): haData = loads(haResponse.text) return haData['attributes']['rgb_color'] -redRGB = checkLight()[0] -greenRGB = checkLight()[1] -blueRGB = checkLight()[2] +redRGB = 0 +greenRGB = 0 +blueRGB = 0 def updateLight(): global redRGB @@ -103,7 +103,7 @@ def sendGameEvent(kill_switch): "value" : 100, "frame": { "zone-all-color": { - "color": {"red": 0,"green": 0,"blue": 0} + "color": {"red": redRGB,"green": greenRGB,"blue": blueRGB} } } }