Hey everyone, I’ve been diving into the world of smart home automation and wanted to share some of my experiences and questions. I’ve been working on setting up a status display using system variables and WebUI programs, but I’ve hit a bit of a snag. Let me walk you through what I’ve done so far and where I’m stuck.
So, here’s the setup: I’ve defined 16 system variables with value ranges set to “off;green;orange;red”. These variables are triggered by different actors, like window contacts. For example, when a window is closed, the system variable LED16_Status.01 is set to green, and so on. That part works perfectly!
Now, the challenge comes when I try to use these system variables to control the LEDs in my status display via WebUI programs. I’ve set up a program where the LED changes color based on the system variable’s state. The structure is pretty straightforward: if the system variable is green, the LED turns green, and so on for orange and red. But here’s the kicker—it only works for orange and red, not green. That’s puzzling!
I’ve tried a few workarounds. For instance, if I create three separate programs, each with a single “if” condition, everything works as expected. But that’s not ideal for maintaining an overview, especially with 16 LEDs. I’d really like to keep the program structure clean and efficient.
Another observation: when I use devices instead of system variables, the same program structure works without any issues. So why the discrepancy with system variables? I’m not sure if it’s a bug or if I’m missing something in the configuration. I’ve double-checked for typos, special characters, and even considered if timing issues might be causing the problem, but nothing seems off.
On a positive note, I’ve managed to get things working by adding an initial “if” condition checking for the “off” state. It’s a bit of a hack, but it allows green, orange, and red to function as intended. Still, I’d love to understand why the original setup isn’t working as expected. Maybe there’s a limitation in how system variables are handled in WebUI programs that I’m not aware of?
If anyone has encountered a similar issue or has insights into how system variables interact with WebUI programs, I’d be thrilled to hear from you! It’s moments like these that make me appreciate the smart home community so much. The learning curve is steep, but the possibilities are endless. Let’s keep innovating and sharing our experiences!
Cheers,
Thorsten