Israel Railways
The Israel Railways integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] will give you the next three departure times from a given location to another one in Israel rail.
Configuration
To add the Israel Railways service to your Home Assistant instance, use this My button:
Manual configuration steps
If the above My button doesn’t work, you can also perform the following steps manually:
-
Browse to your Home Assistant instance.
-
In the bottom right corner, select the
Add Integration button. -
From the list, select Israel Railways.
-
Follow the instructions on screen to complete the setup.
The public timetables are coming from Israel rail.
Sensors
For each configured connection, the integration creates a set of sensors for the next three upcoming departures. The first departure sensors have no +N suffix. The second and third are labeled with +1 and +2.
-
Departure / Departure +1 / Departure +2
- Description: Scheduled departure time from the start station.
-
Platform / Platform +1 / Platform +2
- Description: Platform the train departs from at the start station.
-
Train number / Train number +1 / Train number +2
- Description: Identifier of the train operating the connection.
-
Trains / Trains +1 / Trains +2
- Description: Number of trains involved in the connection (1 for a direct connection, more when a transfer is required).
-
Departure delay / Departure delay +1 / Departure delay +2
- Description: Delay of the departure in minutes, based on real-time data from Israel Rail.
If a departure time has already passed, that route is skipped. The sensors only ever show upcoming departures.
Defining a custom polling interval
If you want to define a specific interval at which your device is being polled for data, you can disable the default polling interval and create your own polling automation.
To turn off the default polling and create your own polling automation, follow these steps:
- Go to Settings > Devices & services, and select your integration.
- On the integration entry, select the three dots
menu, and then select System options. - Turn off Enable polling for changes, and then select Update.
- If Home Assistant asks you to restart, restart it.
- Go to Settings > Automations & scenes, and select Create automation > Create new automation.
- Add the triggers and conditions for when you want to poll for data.
- Select Add action, select By type, select Perform action, and then select + next to Perform action.
- Under Action, search for and select the Update entity action.
- Under Entities to update, select the entities you want to poll.
- You can only select entities. Areas, devices, and labels aren’t supported.
- Select Save.
Many integrations update their data at most once every 10 seconds. If you poll more often, Home Assistant waits until the 10 seconds have passed before it updates the data again.