Hello,
I am trying to trigger a rule based on a Astro event, but nothing happens. Astro thing is created in text file, but channels and items were created on the UI. I don’t remember exactly why I choose this mixed way, but I think textual channel definition didn’t work. I prefer to define things and items in text files if possible.
rule "Blinds - at dusk"
when
Channel "astro:sun:home:civilDusk#start" triggered START
then
logInfo("rules", "zsaluziák leeresztse triggerelve")
// nothing logged or hppen here
....
end
Channel configuration on GUI. The channel exists and has value, so I don’t really understan what do I wrong.
where start is date and time of civil dusk start, end is date and time of civil dusk end, duration is time in minutes between start and end, and finally event is the trigger channel.
event will trigger START and END (at the date and time which is displayed through the other two channels.)
Thank you, you are right I should add “#event” to the rule. I don’t know how I missed it.
You are writing that the #event will trigger the rule on both, Start and End, right? it is possible to trigger the rule only on Start? Should I use Time is ITEM in such case?