Ephemeris doesn't trigger with city's holiday

  • Platform information:
    • Hardware: Raspberry Pi 4
    • OS: Armbian
    • Java Runtime Environment: OpenJDK Runtime Environment Zulu17.44+53-CA (build
    • openHAB version: 4.0.3
  • Issue of the topic: I have Ephemeris configured with country, region and city information, but it doesn’t seem to be able to get the city holidays correctly. Today 9th of November is a bank holiday in Madrid city, but Ephemeris returns a false value if I ask isBankHoliday
  • Please post configurations (if applicable):



Test rule:

rule "Test rule"
  Time cron "0 0 0 * * *"
  logInfo("Test rule", "Ephemeris: " + Ephemeris.isBankHoliday)
  logInfo("Test rule", "Ephemeris day: " + Ephemeris.getBankHolidayName)
  • If logs where generated please post these here using code fences:
2023-11-09 18:49:50.513 [INFO ] [.openhab.core.model.script.Test rule] - Ephemeris: false
2023-11-09 18:49:50.516 [INFO ] [.openhab.core.model.script.Test rule] - Ephemeris day: null

I’ve checked the Jollyday XML file (https://github.com/svendiedrichsen/jollyday/blob/master/src/main/resources/holidays/Holidays_es.xml) and it has the following lines:

 <tns:SubConfigurations hierarchy="m" description="Madrid">
  		<tns:Fixed month="MARCH" day="19" descriptionPropertiesKey="ST_JOSEPH"/>
  		<tns:Fixed month="MAY" day="2" descriptionPropertiesKey="REGIONAL"/>
		<tns:Fixed month="AUGUST" day="15" descriptionPropertiesKey="ASSUMPTION_DAY"/>
  		<tns:ChristianHoliday type="MAUNDY_THURSDAY"/>
  	<tns:SubConfigurations hierarchy="mad" description="Madrid city">
      <tns:Fixed month="MAY" day="15" descriptionPropertiesKey="SAINT_ISIDORE"/>
      <tns:Fixed month="NOVEMBER" day="9" descriptionPropertiesKey="ALMUDENA_DAY"/>

In this case, it should have marked the holiday as the last one (ALMUDENA_DAY). Do I have something wrong in the configuration or what’s the correct way of setting Ephemeris so it gets the city holidays as well?