From 1628acd6c37c4640c5414e2b97938f5766046f01 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Tue, 21 May 2024 09:06:46 +0200 Subject: [PATCH] add Sheds 30W COB-RGB lights --- lights/sheds_30w_cob_rgb.py | 16 ++++++++++++++++ main.py | 3 +++ 2 files changed, 19 insertions(+) create mode 100644 lights/sheds_30w_cob_rgb.py diff --git a/lights/sheds_30w_cob_rgb.py b/lights/sheds_30w_cob_rgb.py new file mode 100644 index 0000000..85518e1 --- /dev/null +++ b/lights/sheds_30w_cob_rgb.py @@ -0,0 +1,16 @@ +from .common import BaseDMXLight + + +class Sheds30WCOBRGB(BaseDMXLight): + name = "Sheds 30W COB-RGB" + + def _dump(self): + return self.address, [ + self.intensity, + self.red, + self.green, + self.blue, + 0, # strobe + 0, # mode + 0, # speed + ] diff --git a/main.py b/main.py index 05ca010..e9415a3 100755 --- a/main.py +++ b/main.py @@ -9,6 +9,7 @@ from time import sleep from conf import load_and_validate_config from dmx_queue import DMXQueue from lights.ignition_wal_l710 import IgnitionWALL710 +from lights.sheds_30w_cob_rgb import Sheds30WCOBRGB from lights.stairville_par_56 import StairvillePar56 from lights.varytec_hero_wash_zoom_712 import VarytecHeroWashZoom712 from lights.tsss_led_par_rgbw import TSSS_LED_PAR_RGBW @@ -39,6 +40,8 @@ def main(): lights = [] for addr in config.lights.get('ignition_wal_l710', []): lights.append(IgnitionWALL710(addr)) + for addr in config.lights.get('sheds_30w_cob_rgb', []): + lights.append(Sheds30WCOBRGB(addr)) for addr in config.lights.get('stairville_par_56', []): lights.append(StairvillePar56(addr)) for addr in config.lights.get('tsss_led_par_rgbw', []):