LED lighting multiple control by openhab2, wall switch and alexa

Hi I need help for my lighting problem.

I have a room with 9 RGBW strips and I want to realize the follwing features:

  1. Switch on/off the lights via OH,wall switch (to make it wife compatible) and also by speech with alexa
  2. Dimm the lights
  3. Choose color
  4. and so on (you get the idea)

So here is my question:

What kind of LED controller to use (KNX, DALI, DMX, or whatever)?
My problem is how can I realize that openhab gets the status from alexa or the wall switch what is switched on or not and vise versa. So when I push a button on the wall switch that openhap gets the status that scene 1 is on now for example. Or when switched on by Alexa and of by the the wall switch that openhab also gets the actual status.

Is this possible? What hardware to use? … (I need an idea in general to get on track…)

PS: I´m very flexible when it comes to wireing, everything is in one control cabinet in the room and close together, so wireless conections are not a problem (wifi, bluetooth…) also LAN DC 5V, 12V, 24V also AC 220V is available.

When you say, “wall switch”, do you mean replacing an existing light switch in your wall with a wireless switch, which would then control your wired lights and connect to openHAB? Or do you mean mounting a simple wireless button on your wall that only communicates with openHAB for the purpose of triggering your LED lights? (there shouldn’t be an issue in either case)

If you’re talking about in-wall light switches, your wireless switch will be regularly polled by OH to check its status. So if you press the switch to turn it on, OH will see that and stay in sync. Conversely, you can turn the switch on using OH or Alexa, which sends a command to the switch. Everything stays in sync.

If you’re talking about mounting a battery-powered button to the wall, then the state of the button doesn’t matter. Every time you press it, you’ll send a command to OH, which will trigger a rule to turn your LED lights on or off.

I can’t help you choose an LED controller, but I don’t think you’ll have trouble being able to switch the lights in a variety of ways.

In many cases, the devices will report to OH directly instead of requiring OH to poll. In fact, most work in this way.

There is no really good way to answer this except to say “you can do this with literally any switch that OH supports.” That is the whole point of OH. OH acts as a hub that processes events from supported devices and allows you to write behaviors (i.e. Rules) that tells other integrated devices what to do in response (.e.g button was pressed, turn on lights 1, 2 and 5.)

1 Like

There is no replacing of any switch, the old ones will stay untouched as a regular switch, so to say as fall back if OH is down for some reason…
All LED lighting is new and new wireing also…

I still have no idea which hardware (LED controller) to use… this is very confusing to me… :frowning:

Those two sentences do not got together (at least in way the I understand). When keeping the old wires and switches in place ("…as fall back…"), how are those wires and switches relate to the new LED lighting and wires?
If the old wires/switches are to act as a fall back, switching the switch to OFF would leave any connected device without power, all “smart” function gone.
If the new LED lighting/wiring is completely seperated from the old wiring, the old can not act as a back up.

The first major question to ask is…

Will you be able to run all the 5 core cables from the RGBW back to one place, and use something like a 24 channel DMX LED dimmer.

Or, do you want local dimmers next to the LED strip?

Like a 4 channel DMX dimmer, if you want a wired solution.

You’ll need a simple way of getting DMX out of openHAB2, I’m a big fan of SmartShow lighting products, their NetDMX device would be perfect.

Or there are various wireless protocols that have RGBW dimmer options.
Like the Z-WAVE Fibaro unit.

Well, it´s not really a fall back. The LED and the old “light bulp” are not related at all. The old light bulp will be normally NOT used at all (location is stupid), maybe I may integrate it later with sonoff or so but this should be no topic here.

So far I understand your answers is, that I use like an EnOcean switch to send command to OH and alexa does the same so OH always knows the status?


Yes all the 5 core cables from every LED-strip running back into one distribution cabinet, I was thinking about to use a 10 channel controller to have 2 sections where are multple LED strips act similar (e.g. section one iluminate in white, section 2 iluminate in some color).

So a controller is absolutely possible.

1 Like

You could go wild and use SPi led strip, so that you can address each pixel, but that’s “probably TOO much”…

Yep, thats too wild…

I already have a 10 channel DMX connected via artnet bridge, but I think my problem is that DMX is a pulse signal which has no on/off state…???

Hell no !

Each DMX universe has 512 individual channel, each with intensity between 0 & 254

So using Art-NET / sACN encapsulated DMX you can have ~130 RGBW pixels / devices per Universe.

Jan’s DMX binding offers OnOffType controls, as well as full colour and intensity.

His chase Thing is really clever.

Unless you’re referring to the actual DMX data stream, in which case, I think you’re correct.

There is always a live data stream (at least at the DMX level), even if it’s repeating 0 values to each channel.

SmartShow SPi adapters concatenate universes into single SPi streams.
But if you’re looking at that many SPi pixels, you should look at an intermediate Pixel mapping software solution, with OH controlling the pixel software.
(Which is what I’ve done in that staircase video)

DMX relay boards are configured to work something like this.

DMX channel value < 128 = Relay OFF
DMX channel value > 128 = Relay ON

I dont´t understand this completely, but so far I understand I can use DMX…, but how does this work with Alexa and a wall switch?

openHAB2 is the King Maker :slight_smile:

Alexa talks to OH

Wall buttons / switches talk to OH

OH decides what to do, and instructs any output devices. (Like the DMX protocol)

I’m not an Alexa user (but some of my clients are), I use Google Assistant.

If you add the Tags, “Color” & “Switchable” to a Colorpicker item, you can request colours (by name) and On Off to be sent to OH.

I have a simple rule with a couple of IF statements so that…

A button is pressed.

IF - nothing is on, create scene 1.

IF - Scene 1 is set (by checking Chase1), create Scene 2

IF - Scene 2 is set (by checking Chase2), create Scene 3

IF - Scene 3 is set (by checking Chase3), Switch everything OFF (by telling a ‘Catch All’ single DMX dimmer Item to Switch OFF {DMX channels 1/512})

Ok, I understand. Now I have at least an idea how it works…
I will do some more research…

1 Like

I’m glad you got a start on the LED side. For the wall switch, you’ll have to install something that can communicate with OH. A standard light switch can’t do anything more than turning on/off power to the lights at the other end of the wire, and OH has no way to know whether it’s on or off.

Per my previous comment, I think the easiest solutions are to install a wifi light switch or mount a battery-powered button on the wall that communicates with OH.

Good luck!

@ahe take a look at the Shelly 1 switch, it works out of the box or you can flash a different firmware, and fits easily behind you existing wall switch. Here’s a link but be aware you do not have to use their cloud service. You can use mqtt and it work well with OH.:wink: