hi,
the documentation of the Astro binding https://docs.openhab.org/addons/bindings/astro/readme.html does not list the Season as valid Triggering Channel. But I found https://github.com/openhab/openhab2-addons/pull/1519/files/14826b39069b16870e1bdd0f19f777b71474365f which indeed lists Season as Triggering Channel.
String Season_Name "Saison [MAP(astro.map):%s]" (Astro) {channel="astro:sun:home:season#name"}
rule "triggering on season name"
when
Channel "astro:sun:home:season#name" changed
//or should the trigger be on event?: Channel "astro:sun:home:season#event" changed
then
if (Season_Name.state.toString.contains("SPRING")) (_//do something_)
else if (Season_Name.state.toString.contains("SUMMER")) (_//do something_)
else if (Season_Name.state.toString.contains("AUTUMN")) (_//do something_)
end
I don`t want to wait for Spring to see if the rule shoots, can someone doublecheck please?
thanks