corb3000 / ha-artnet-led

DMX lighting Integration for Home Assistant. Using the HA Color Mode update and Pyartnet library to control lights in multiple DMX universes over ethernet with the Art-Net protocol.
MIT License
26 stars 18 forks source link

auto Switch to HA #16

Open sined0606 opened 1 year ago

sined0606 commented 1 year ago

Is it possible to check for a boolean to activate or deactivate the Artnet output? The use case that I see in this project is to use Home Assistant as a light manager if the primary Artnet source from the light console is offline.

Breina commented 1 year ago

A proper ArtNet node is able to merge two incoming signals. Shouldn't need a separate switch for that.

If you set the refresh interval to 0, this implementation shouldn't be sending anything if it doesn't have anything to say.

sined0606 commented 1 year ago

Well, yes, but the possibility to switch HA Artnet Output off has the benefit that you can automatically switch back to the previous settings in HA. So, for example, if you have a theater room, you can put some presets on HA for the room lights like rehearsal or cleaning lights and automatically switch from HA to a light console if it is powered up and automatically switch back if the console shuts down.

Breina commented 1 year ago

Ah I see, fair point.

I can implement this on my fork at some point. Will take a while though.