How can I identify if today is a holiday or not by using the following the rule??
rule "read ephemeris files"
when System started or
Time cron "0 0 * * * ?"
then
if (Ephemeris.isWeekend == true) {
logInfo("read ephemeris files","Wochenende")
}
if (Ephemeris.isWeekend == false) {
logInfo("read ephemeris files","Arbeitswoche")
}
number_openhab2operatingmodus_day.postUpdate(now.getDayOfWeek)
val String nextHoliday = Ephemeris.getNextBankHoliday('/etc/openhab2/services/Holidays_de.xml')
val long untilHoliday = Ephemeris.getDaysUntil(nextHoliday, '/etc/openhab2/services/Holidays_de.xml')
val String nextBirth = Ephemeris.getNextBankHoliday('/etc/openhab2/services/Birthdays.xml')
val long untBirth = Ephemeris.getDaysUntil(nextBirth, '/etc/openhab2/services/Birthdays.xml')
logInfo("read ephemeris files: Nächster Feiertag", nextHoliday + " in Tagen: " + untilHoliday)
logInfo("read ephemeris files: Nächster Geburtstag", nextBirth + " in Tagen: " + untBirth)
end