Osram lightify lantern and gardenpole

Hello
I just started to set up openhab2 on a rasperry 3b. My Intention is to illuminate the Garden in the dusk. I could integrate the Osram Lightify Gateway. Also the Binding and installation of the Items Osram lightify Lantern and Gardenpole (both rgb led) is ok. I can control them over the Control Panel in the Paper UI.
grafik

But now I need help: I want to control the leds per rule:

rule “Lantern on”
when
Time cron “0 30 16 1/1 * ? *”
then
"turn on the light with prescribed brightness, color, saturation and white temperature "
end

rule “Lantern off”
when
Time cron " 0 0 19 1/1 * ? *"
then
“turn off the light”
end

What are the commands to control the lamps in such a rule?

A coloritem consists of 3 values, hue, saturation and brightness, i think it’s HsbType.

You can work with the type or just create a string containing the list of values.

<itemname>.sendCommand("0,100,100") creates full red. Hue, the first value has a range of 360 and defines the color, while saturation and brightness go from 0 to 100.

Ok. Thanks. That works fine:

rule "Lantern on"
when
Time cron " 0 30 16 1/1 * ? *"
then
sendCommand(OsramLaterne_Color, “0,100,100”)
end

rule "Lantern off"
when
Time cron " 0 0 19 1/1 * ? *"
then
sendCommand(OsramLaterne_Color, “0,0,0”)
end

You should use the method instead of the action:

OsramLaterne_Color.sendCommand(“0,100,100”)

Use the action only if you have to.

OK. But what is the reason?