Use hue alert with openhab 2

I got the following rule to switch on my hue color light:

rule "Begin"
	when 
		 Time cron "0 56 19 1/1 * ? *"
	then	
		sendCommand(Licht_Kueche1_Toggle, "ON")
		sendCommand(Licht_Kueche1_Color, HSBType::BLUE)
		sendCommand(Licht_Kueche1_Alert, "lselect")	
end

This works fine for the toggle and color. But I can’t get the alert channel to work.

Item definition:

String Licht_Kueche1_Alert { channel=“hue:0210:0017884a2f27:1:alert” }

Error message:

[ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule Begin: The argument ‘command’ must not be null or empty.

Any ideas what’s wrong?

This is a link to a working solution

I’ve used the following in my rule and it is working:

Light_Living_Ceiling_Alert.sendCommand("SELECT")

This is my item definition:
String Light_Living_Iris_Alert "Alarmmodus" <Light> { channel="hue:0200:1:1:alert" }

This is the full rule:

rule "Open_Window_Alert"
when
	Item Window_Living_Erker_Sensor changed
then
	Light_Living_Ceiling_Alert.sendCommand("SELECT")
end
1 Like