I’m trying to get 3 sliders to work with some colored lights.
So far I’ve tried to use another rule and adapt it for my use. It only need to go one way.
So in HABPanel i have 3 sliders with 3 seperate items behind them.
The rule i’m trying to adapt is this:
import org.openhab.core.library.types.* var HSBType hsbValue var String redValue var String greenValue var String blueValue rule "Set RGB value" when Item Color1RED changed or Item Color1GREEN changed or Item Color1BLUE changed then hsbValue = Color1.state as HSBType redValue = hsbValue.red.intValue.toString greenValue = hsbValue.green.intValue.toString blueValue = hsbValue.blue.intValue.toString sendCommand(Color1) end