- openHABian 3.3.0 on rPi4
I am trying to set up my first colour light, using the example in the documentation.
Here the example from the docs (Rules | openHAB)
import java.awt.Color
rule "Test: a light"
when
Item test_new_stuff changed to ON
then
val newColor = new Color(100,20,50)
Shed_KDL_Colour.sendCommand(new HSBType(newColor.toString))
end
I tried this variation based on forum posts; same result:
val newColor = new Color(100,20,50)
val HSBType hsb = new HSBType(newColor.toString)
Shed_KDL_Colour.sendCommand(hsb)
vsCode gives me a wiggly line under sendCommand.
The log is even more cryptic:
2022-11-21 23:00:14.283 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'test.rules'
2022-11-21 23:00:23.742 [INFO ] [ab.core.model.script.testRules.01.01] - test light...
2022-11-21 23:00:23.805 [ERROR] [internal.handler.ScriptActionHandler] - Script execution of rule with UID 'test-1' failed: Character array is missing "e" notation exponential mark. in test
What am I missing?