From d6792fba1cdb0d96c7843aa11c342e4a8a2668dc Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sun, 7 Jan 2024 10:42:02 +0100 Subject: [PATCH] add support for Stairville PAR 36/56/64 --- lights/stairville_par_56.py | 15 +++++++++++++++ main.py | 3 +++ 2 files changed, 18 insertions(+) create mode 100644 lights/stairville_par_56.py diff --git a/lights/stairville_par_56.py b/lights/stairville_par_56.py new file mode 100644 index 0000000..6b7b923 --- /dev/null +++ b/lights/stairville_par_56.py @@ -0,0 +1,15 @@ +from .common import BaseDMXLight + + +class StairvillePar56(BaseDMXLight): + name = "Stairville PAR 36/56/64" + + def _dump(self): + offset = self.intensity / 255 + return self.address, [ + 0, # RGB mode + int(self.red * offset), + int(self.green * offset), + int(self.blue * offset), + 0, # speed + ] diff --git a/main.py b/main.py index 176c3a3..98765f5 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.stairville_par_56 import StairvillePar56 from lights.varytec_hero_wash_zoom_712 import VarytecHeroWashZoom712 from lights.wled import WLED from mqtt_queue import MQTTQueue @@ -37,6 +38,8 @@ def main(): lights = [] for addr in config.lights.get('ignition_wal_l710', []): lights.append(IgnitionWALL710(addr)) + for addr in config.lights.get('stairville_par_56', []): + lights.append(StairvillePar56(addr)) for addr in config.lights.get('varytec_hero_wash_712_zoom', []): lights.append(VarytecHeroWashZoom712(addr)) for addr in config.lights.get('wled_multi_rgb', []):