Update mqtt_controller.py

This commit is contained in:
imonlinux
2025-12-11 11:25:59 -08:00
committed by GitHub
parent 3f05bcfc56
commit 8187760b39
+1
View File
@@ -353,6 +353,7 @@ class MqttController(EventHandler):
light_state = { light_state = {
"state": "ON" if data.get("effect") != "off" else "OFF", "state": "ON" if data.get("effect") != "off" else "OFF",
"color_mode": "rgb",
"brightness": int(data.get("brightness", 0.5) * 255), "brightness": int(data.get("brightness", 0.5) * 255),
"color": { "color": {
"r": data.get("color")[0], "r": data.get("color")[0],