Skip to content

Ephemeris Binding ​

The Ephemeris Binding makes the bridge with Ephemeris core actions. It provides access to Ephemeris data via Items without requiring usage of a scripting language.

The binding will search your Jollyday event definition files in the sub folder /misc/ephemeris located in the configuration folder of openHAB (e.g. for a linux system: /etc/openhab/misc/ephemeris/)

Supported Things ​

The binding handles the following Things:

  • default holiday data (holiday)
  • custom holiday file (custom)
  • daysets (dayset)
  • weekend (weekend)

Discovery ​

The binding discovers weekend and holiday things.

Binding Configuration ​

There is no configuration at binding level.

Thing Configuration ​

custom Thing Configuration ​

NameTypeDescriptionDefaultRequiredAdvanced
fileNametextName of the XML file in the configuration folderN/Ayesno

The file has to use the syntax described here: </docs/configuration/actions.html#custom-bank-holidays>

dayset Thing Configuration ​

NameTypeDescriptionDefaultRequiredAdvanced
nametextName of the dayset usedN/Ayesno

Channels ​

weekend Channels ​

NameTypeDescription
todaySwitchSet to ON if today is a weekend day, OFF in the other case
tomorrowSwitchSet to ON if tomorrow is a weekend day, OFF in the other case

dayset Channels ​

NameTypeDescription
todaySwitchSet to ON if today is in the given dayset, OFF in the other case
tomorrowSwitchSet to ON if tomorrow is in the given dayset, OFF in the other case

holiday Channels ​

NameTypeDescription
title-todayStringName of today's holiday if any, NULL otherwise
holiday-todaySwitchSet to ON if today is a holiday
holiday-tomorrowSwitchSet to ON if tomorrow is a holiday
next-titleStringName of the next coming holiday
next-startDateTimeStart date of the next coming holiday
days-remainingNumber:TimeRemaining days until next holiday

custom Channels ​

NameTypeDescription
title-todayStringTitle of the currently present event
event-todaySwitchSet to ON if an event exists today
event-tomorrowSwitchSet to ON if an event exists tomorrow
next-titleStringTitle of the next starting event
next-startDateTimeStart date of the next coming event
days-remainingNumber:TimeRemaining days until next event

Full Example ​

Thing Example ​

dsl
Thing ephemeris:holiday:local "Holidays"
Thing ephemeris:weekend:local "Week-end"
Thing ephemeris:custom:events "Event" [fileName="events.xml"]

Item Example ​

dsl
String         ToD_Event_Current          "Event Today"       <calendar>    (gEvents)                           {channel="ephemeris:custom:events:title-today"}
String         ToD_Event_Next          "Event Next"       <calendar>    (gEvents)                           {channel="ephemeris:custom:events:next-title"}
Number:Time    ToD_Event_Next_Left       "Event In"          <calendar>    (gEvents)       ["Measurement","Duration"]    {channel="ephemeris:custom:events:days-remaining", unit="day"}

Switch         ToD_Week_End_Current           "Week-End"                <calendar>    (gWeekEnd)                               {channel="ephemeris:weekend:local:today"}
Switch         ToD_Week_End_Tomorrow           "Week-End Tomorrow"         <calendar>    (gWeekEnd)                               {channel="ephemeris:weekend:local:tomorrow"}

String         ToD_Holiday_Current              "Holiday Today"       <calendar>    (gHoliday)                                 {channel="ephemeris:holiday:local:title-today"}
String         ToD_Holiday_Next              "Holiday Next"           <calendar>    (gHoliday)                                 {channel="ephemeris:holiday:local:next-title"}
Number:Time    ToD_Holiday_Next_Left           "Holiday In"              <calendar>    (gHoliday)            ["Measurement","Duration"]    {channel="ephemeris:holiday:local:days-remaining", unit="day"}