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 17.0.8.1+1-LTS)
    • 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):

ephemeris.cfg:

country=es
region=m
city=mad
dayset-workday=[MONDAY,TUESDAY,WEDNESDAY,THURSDAY,FRIDAY]
dayset-weekend=[SATURDAY,SUNDAY]

Test rule:

rule "Test rule"
when
  Time cron "0 0 0 * * *"
then
  logInfo("Test rule", "Ephemeris: " + Ephemeris.isBankHoliday)
  logInfo("Test rule", "Ephemeris day: " + Ephemeris.getBankHolidayName)
end
  • 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:Holidays>
  		<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:Holidays>
  	<tns:SubConfigurations hierarchy="mad" description="Madrid city">
		<tns:Holidays>
      <tns:Fixed month="MAY" day="15" descriptionPropertiesKey="SAINT_ISIDORE"/>
      <tns:Fixed month="NOVEMBER" day="9" descriptionPropertiesKey="ALMUDENA_DAY"/>
		</tns:Holidays>
	</tns:SubConfigurations>
 </tns:SubConfigurations>

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?