add support for Stairville PAR 36/56/64

This commit is contained in:
Franzi 2024-01-07 10:42:02 +01:00
parent 84d73f489b
commit d6792fba1c
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 18 additions and 0 deletions

View file

@ -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
]

View file

@ -9,6 +9,7 @@ from time import sleep
from conf import load_and_validate_config from conf import load_and_validate_config
from dmx_queue import DMXQueue from dmx_queue import DMXQueue
from lights.ignition_wal_l710 import IgnitionWALL710 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.varytec_hero_wash_zoom_712 import VarytecHeroWashZoom712
from lights.wled import WLED from lights.wled import WLED
from mqtt_queue import MQTTQueue from mqtt_queue import MQTTQueue
@ -37,6 +38,8 @@ def main():
lights = [] lights = []
for addr in config.lights.get('ignition_wal_l710', []): for addr in config.lights.get('ignition_wal_l710', []):
lights.append(IgnitionWALL710(addr)) 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', []): for addr in config.lights.get('varytec_hero_wash_712_zoom', []):
lights.append(VarytecHeroWashZoom712(addr)) lights.append(VarytecHeroWashZoom712(addr))
for addr in config.lights.get('wled_multi_rgb', []): for addr in config.lights.get('wled_multi_rgb', []):