Lights don't turn on at sunset

Hi all,

I’ve a light which I want to turn on at sunset - 30 minutes. So I’ve created the following:

astro.things

astro:sun:setminus30 [ geolocation="x.xxxx,x.xxxx", interval=300]
{
	Channels:
		Type rangeEvent : set#event [
            offset=-30
        ]
} 

sunset_lights.rules

rule "Licht aan"
when
    Channel "astro:sun:setminus30" triggered START
then
      logDebug("Lamp aan")
      Dressoir_lamp.sendCommand(ON)
end

switch.items

Switch Dressoir_lamp “Switch Dressoir” { channel=“zwave:device:8027af9a:node4:switch_binary” }

All that I see in the log is:

[vent.ChannelTriggeredEvent] - astro:sun:setminus30:set#event triggered START

I’ve been spending the past few hours on this, but I’m out of idea’s. Looks very similar to this topic. But chancing single/double quotes didn’t help.

What am I missing??

You are using double quotes, that might be the problem?

 Channel "astro:sun:setminus30" triggered START

instead try using:

 Channel 'astro:sun:setminus30' triggered START

I already tried that, but nothing happens.

and you should define the exact channel you want to trigger

Channel 'astro:sun:setminus30:set#event' triggered START
1 Like

That did the trick! Thank you @rkrisi

1 Like

Cool, please mark the thread as solved, thanks.
hc_292