-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Loxone support added #1185
Loxone support added #1185
Conversation
platformio.ini
Outdated
upload_port = /dev/cu.SLAB_USBtoUART | ||
monitor_port = /dev/cu.SLAB_USBtoUART |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be removed...
…as HTML. Commands for Loxone were added to the API.
…d. Segment handling for LX/LY removed.
…n a segment LX and LY are now supported.
Hi and thank you for the pull request! I have a few points to address before merging:
Thanks again! |
Thanks @Aircoookie, great to get your feedback. Much appreciated. The current UI for the UDP socket is located under "Sync Interfaces" and has the port configurable. There's no limitation (afaik) from the Loxone side. I totally agree with you regarding the Loxone format for color information. We did not know about usermods, though.
Regarding the color temperature to RGB conversion we are working on a better solution. This one currently is just taken from the FastLED fork to be able to "understand" these values. @m0fa can give deeper info on the implementation 👍 |
Hello, we can add the API functionality to the notifierUdp socket. It would be useful to activate the API in the web interface. Or should it be permanently active? I don't like the redundant functionality either. Unfortunately, Loxone has its own color formats and the conversion to RGB has to be implemented. |
Thank you for the feedback! Awesome, let's go with notifierUdp then :) It also handles the wled sync modes (first byte 0), some realtime modes (first byte 1-5) and TPM2.net (first byte 0x9c/156). These do not include any ascii characters, so we can safely add the API functionality in the bottom of Do you want to make these changes or should I update the PR before merging? |
Hey and thank you. That sounds great! If you like, you can update the pull request. Otherwise I can make the changes too. What do you prefer? |
Awesome! Alright, I will make the adjustments and merge soon :) |
Changes are done! Unfortunately I have no write access to your fork and thus this PR :( |
Merged and working well :) |
Great. Thank you very much! |
Hello,
this pull request adds loxone support. It was implemented with the help of the Loxforum (https://www.loxforum.com/forum/german/software-konfiguration-programm-und-visualisierung/260948-wled-projekt).
Loxone is a home automation solution that uses self-coded commands for RGB, brightness and color temperature. To make the connection of WLED to Loxone as easy as possible, WLED was adapted and extended. Thus the Loxone commands are interpreted and applied.
A separate UDP socket was added. This allows a faster transfer than HTTP because the overhead is minimized. In the web interface the socket can be activated and the port can be chosen. The settings are stored in the EEPROM. The UDP socket uses the HTTP-Api.
Loxone offers two commands. One for RGB values and one for brightness and color temperature. For these commands a parser was added to interpret them. The parser was added to the HTTP-Api and the JSON-Api.
For this the parameter
LX
is used. The values are applied to the primary color.LY
uses the same implementation for the secondary color. The HTTP-Api expects&LX
and&LY
in the request. The JSON api expects{"seg":{"lx":<v>}}
.Loxone RGB values have the structure
BBBGGGRRR
. Each color is specified in the range from 0 to 100%. For example, "100" stands for red (#ff0000).Also a conversion of color temperature and brightness to RGB was added. This command has the structure
20bbbtttt
. "bbb" stands for the brightness in the range 0-100%. "tttt" realizes the color temperature in the range 2700 to 6500 Kelvin. The original implementation is from: https://github.com/somebuddy87/FASTLED_Loxone_Edition.