Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for effects and strobe/effect speed #50

Open
DGdB opened this issue Dec 6, 2023 · 2 comments
Open

Add support for effects and strobe/effect speed #50

DGdB opened this issue Dec 6, 2023 · 2 comments
Labels
platform-refactor Move away from only supporting lights and move to a separate platform config

Comments

@DGdB
Copy link

DGdB commented Dec 6, 2023

It looks like HomeAssistant Light entities have support for an "effect" property that we could use to set the effect of a DMX fixture. Possibly the "flash" value could be used to control the effect speed?

I have two old Chauvet LED Bars which support RGB + separate dimmer, but they also have "effects" which are built into the light when in 7-ch mode. So channel 1,2,3 are RGB, 5 is strobe/effect speed, 6 is the effect selection (mode) and 7 is the dimmer.

Currently I have implemented the light as an RGB fixture and created the "speed" and "mode" as linear dimmers. I am then using an automation to take the value from an input_select and set the "mode" dimmer to the correct value for each effect. See screenshot of lovelace UI for reference.

It would be super cool to be able to use the native HA effect option for light entities!

Thanks in advance, I do a little bit of light .NET dev for work but am not super familiar with Python, but I am super familiar with DMX lighting. If I can do anything to help further this project, please let me know. I have included some links for reference.

https://developers.home-assistant.io/docs/core/entity/light/?_highlight=effect&_highlight=flash
https://www.chauvetdj.com/wp-content/uploads/2015/12/COLORband_TRI_UM.pdf
image

@Breina Breina added the platform-refactor Move away from only supporting lights and move to a separate platform config label Dec 6, 2023
@Breina
Copy link
Owner

Breina commented Dec 6, 2023

Yep, already working on that! :)

Plan is to implement the format of OpenFixtureLibrary directly, seems like they have already figured the best way configure fixtures.

When all light colours fit into one Light Entity, I can use the effect list to select your effect, and have separate entities that are enabled/disabled to control the speed. I'd bundle all of these entities in a Device per fixture.

image

The Flash parameter is when calling service light.turn_on, to briefly flash it short or long.

But progress is being made. Lots of work of course, but we're slowly getting there. :)

@DGdB
Copy link
Author

DGdB commented Dec 6, 2023

Awesome, thanks Breina, looks like lots more exciting stuff to come!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform-refactor Move away from only supporting lights and move to a separate platform config
Projects
None yet
Development

No branches or pull requests

2 participants