- Platform information:
- Hardware: pi4
- OS: openhabiab
- openHAB version: 4
I have a set a dimmable LEDs that I want to link to the sun’s brightness during the day. I installed the Astro binding which has a sun irradiance channel that seems perfect as a source. I also have a simple dimmer channel for the LEDs that works fine on its own.
I figured I should be able to link these up in some way. I can create a Link between the two using the Follow profile (which I assumed would be the one I want), but that doesn’t do anything and the value just says “error”. I assume this is because the two channels are in different units, one is percent and the other is irradiance. I also figured that converting units of channels must be a common enough issue for there to be some facility to do it on a Link in the UI, but maybe I’m wrong about that?
- Would this be a case for me to write a custom profile?
- Should I just switch entirely to “file-based”, using openhab’s internal DSL to do all this stuff?
- Is there actual documentation for this DSL anywhere? How would I go about starting to learn how it works?
I’m a programmer by trade, but I was hoping I could just get this thing up and running quickly and easily. If I need to, however, I’ll learn this DSL, but do I really need to comb through the source code to do it?