I am testing the Astro binding on OH2 and created the following rule. I know the email is working because I have it set up the same way in other rules that are working. Am I missing something? Also I noticed in all the documentation that people usually refer to the “240daf21” as home or local. Why is that different here? When I pull up the channel for sunrise for instance I see “astro:sun:240daf21:rise#start”
rule "X"
when
Channel 'astro:sun:240daf21:rise#start' triggered START
then
sendMail("email@example.com","Critical Alert From OpenHab","Your Sunrise Event Just triggered X")
end
As the sun is not a dot but a circle (treated as 2D…), the sun is “passing” the boundaries, so start is first contact with boundary, end is end of contact with boundary
Please be aware that the trigger is the event channel, not a time/date channel. The event channels are gray in the thing configuration
Thanks for the clarification! Just had my first Astro triggered event! Everything worked as expected. Also I did two rules so I tested it with both the local and the “240daf21” and it worked on both!