WLED and Loxone

2,693 views
Skip to first unread message

Vidor Lakatos

unread,
Feb 4, 2023, 9:05:52 AM2/4/23
to Loxone English
Hi All,

Is anyone using WLED with Loxone ? 

I think that it should be possible, but the documentation for the MQTT is very poor for my understanding. 
Also the API is pointing to a JSON way, which I'm not familiar with. 

Anyone with experience or config file perhaps as an example ? 

I'm been using WLED with a esp32 for weeks and looks very promising. I think that we could use it a lot within Loxone. 

Thank you. 

Vidor Lakatos

unread,
Feb 4, 2023, 12:27:31 PM2/4/23
to loxone-...@googlegroups.com
I find some useful info on a german forum, but they mention a special ESP32 which works together with Loxone. https://shop.codm.de/automation/pixel/30/wlan-pixel-controller-wled 
There is also a mention on the WLED homepage that 
image.png

But still so far I could not get it working :( 



On Sat, Feb 4, 2023 at 5:14 PM Jonathan Dixon <jo...@lifelogic.uk> wrote:
There was some discussion of it a couple years ago: 

Would be interesting to hear any updates on how people are integrating it 

--
You received this message because you are subscribed to the Google Groups "Loxone English" group.
To unsubscribe from this group and stop receiving emails from it, send an email to loxone-englis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/loxone-english/74574caa-00f6-4275-88ec-96a986c71c0an%40googlegroups.com.


--
Lakatos Vidor

Techdoctor

unread,
Feb 16, 2023, 6:52:00 PM2/16/23
to Loxone English
I have used something called Pixelblaze , you will also need a RPi running Firestorm. This acts as a gateway between the Pixelblaze and Loxone.  Then using HTTP you send commands to the Firestorm program which in turn controls the Pixelblaze.

Gert Stalpaert

unread,
Feb 17, 2023, 3:03:59 AM2/17/23
to Techdoctor, Loxone English
I have several WLED lights running and they work without any issue, out of the box. You can control them right from Loxone.
I even have a WLED GU10 RGB led lamp that works with it. No issues at all for a decent price: https://www.athom.tech/blank-1/wled-gu10-rgbcw

I'm not at home now, so I can't share the Loxone integration, but will do this weekend.

Gert Stalpaert

unread,
Feb 17, 2023, 2:25:14 PM2/17/23
to Loxone English

As promised, here is how I set up WLED for Loxone:

You don't need a special version of WLED anymore: All recent versions have Loxone support build in. 
That's why you can even buy WLED bulbs and use them without modifications as an RGB light in any Loxone Light controller. It just works like any other RGB light. 

Of course, Loxone has no way to control each pixel of your RGB LED strip separately. Although there are workarounds to do so, this is not explained below. I only use them as single RGB light for the whole LED strip or bulb.

Here's how:

Step 1 - Hardware
Buy a WLED strip or bulb, or build one yourself with a ESP32 or ESP8266. 
WLED is easy to install on your DIY project with their web installer
I have done both ways and they all work fine and stable if you have decent wifi.

Step 2 - Setup WLED software
Find your WLED light using their mobile app: It searches for all WLED devices on your wifi. 
Set up your device in the app (LED type, nr of LEDs on the strip, ...)
Here you can also see the IP address of your device. Make sure to make this ip static on your router or give it a network name (SSID). You will need this IP or name later in Loxone. I always used the IP, so not sure if the SSID works evenly good.

Step 3 - Setup in Loxone
In Config:
a - Add a Virtual Output: The adress is /dev/udp/<your device ip>/21324

Virtual-output.png

b - Add a command to your Virtual output:
Command for ON and OFF should be set like below. 
ON: LX=<v>&FX=0&T=1
OFF: LX=0&FX=0&T=0
The LX=<v> part makes sure that the Loxone RGB value is send to WLED.

Virtual-output-command.png


c - Drag your command to a Light Controller and choose type RGB:

Lighting-controller.png

Edit-lighting-controller.png

That's it. You can now setup and control your WLED light like any other RGB light in Loxone ;-)

Good luck with your setup!

Gert

Vidor Lakatos

unread,
Feb 19, 2023, 11:20:41 AM2/19/23
to Loxone English
Gert,

Thank you very much ! 

I have all the necceseray HW and I will probably do it tonight ! 

I will keep you all posted with the results. 

Thx once again ! 

Jim Heaver

unread,
Jan 3, 2024, 6:57:08 AM1/3/24
to Loxone English
Hi Gert,

Been following your instructions and I'm able to turn on the light, but it won't change colour. This is the UDP message that Loxone is sending to the WLed controller.
Loxone UDP message WLed.png

I also see that something has changed in the Loxone config since the latest version. The command for off is no longer available in the virtual output if you uncheck the digital IO checkbox. 
Any idea's?

Thanks,

Op zondag 19 februari 2023 om 17:20:41 UTC+1 schreef lvi...@gmail.com:

Gert Stalpaert

unread,
Jan 3, 2024, 12:50:04 PM1/3/24
to Loxone English

Jim Heaver

unread,
Jan 3, 2024, 2:39:32 PM1/3/24
to Loxone English
Hi Gert,

Checked the Loxone light controller and it is set to RGB as you can see. I've also added a screenshot of the virtual output settings. What WLED version are you running? Mine is on 0.14.

Thanks,


Loxone Wled Virtual Output.png

Op woensdag 3 januari 2024 om 18:50:04 UTC+1 schreef ger...@gmail.com:

Gert Stalpaert

unread,
Jan 3, 2024, 5:19:03 PM1/3/24
to Loxone English
One has 0.13.0-b6 and another has 0.14.0. Both are working fine.
Did you change the correction? These at should be on the default values. 
Screenshot 2024-01-03 225534.png

Here is my UDP log:
Screenshot 2024-01-03 225534.png
But looking at your logs, these looks very similar as mine ...
So no clue what's going wrong ...

To test if the WLED commands are working, you can use the WLED REST API  in your browser:
eg: To send the 2nd command in my list above,  from within a browser:
Of course, you have to adapt the IP address with yours.

Please let me know if this works, using different values for LX.
Setting LX to 0 should turn the lights to black, like in my last command.

Gert

Jim Heaver

unread,
Jan 4, 2024, 3:09:23 AM1/4/24
to Loxone English
Thanks for the quick reply. Just tested the http commands through the browser. I do get a response, the light turns on and off if I change the T command, the effects change when I send the FX command, but the colours just don't seem to change. If I send a blue command to the light I get a response with the current colour for example.

<vs>
<ac>255</ac>
<cl>255</cl>
<cl>0</cl>
<cl>0</cl>
<cs>0</cs>
<cs>0</cs>
<cs>0</cs>
<ns>0</ns>
<nr>1</nr>
<nl>0</nl>
<nf>1</nf>
<nd>60</nd>
<nt>0</nt>
<fx>0</fx>
<sx>128</sx>
<ix>128</ix>
<fp>50</fp>
<wv>-1</wv>
<ws>0</ws>
<ps>0</ps>
<cy>0</cy>
<ds>dig2go</ds>
<ss>0</ss>
</vs>

Op woensdag 3 januari 2024 om 23:19:03 UTC+1 schreef ger...@gmail.com:

Gert Stalpaert

unread,
Jan 4, 2024, 3:44:23 AM1/4/24
to Jim Heaver, Loxone English
Ok, so it has nothing to do with Loxone.
In the WLED docs of the API you can find out more about the LX command. It is not simply RRRGGGBBB but a Loxone-format.
My example should give an orange-like color.

Gert

Jim Heaver

unread,
Jan 4, 2024, 5:18:18 AM1/4/24
to Loxone English
Just flashed the latest version of WLed to my Dig2Go and now it seems to work. Will need to dig a little deeper into finding the issue...
Op donderdag 4 januari 2024 om 09:44:23 UTC+1 schreef ger...@gmail.com:
Reply all
Reply to author
Forward
0 new messages