Entities Reference π
The DB Infoscreen integration creates multiple entities for each configured station to provide comprehensive departure information.
π¦ Sensor Entities
Main Departure Sensor
The primary sensor that displays the next departure time.
| Attribute | Description |
|---|---|
state | Scheduled departure time of the next train |
next_departures | List of all upcoming departures with full details |
station | Configured station name |
last_updated | Last successful data refresh |
attribution | Data source URL |
Attributes per Departure:
-
line- Train line/number (e.g., "ICE 578", "S3") -
destination- Final destination -
platform/scheduledPlatform- Current and planned platform -
delay/delayDeparture- Delay in minutes -
isCancelled- Whether the train is cancelled -
route- Intermediate stops (if enabled) -
messages- Quality notes and warnings -
wagon_order- Raw wagon order data (if available and detailed) -
wagon_order_html- HTML summary of wagon order (e.g. "1. Class in A") -
alternative_connections- List of later trains to the same destination (if detailed enabled)
Leave Now Alarm Sensor
Entity ID: sensor.db_infoscreen_{station}_leave_now_alarm
Disabled by Default
This sensor is disabled by default. Enable it if you want to be notified when it's time to leave for the station.
| State | Meaning |
|---|---|
| {Time to leave} | Time until you need to leave to reach the station on time |
| On Time | You are on time to leave |
| Delayed | You are delayed to leave |
| Unknown | No data available |
Attributes:
time_to_leave- Time in minutes until you need to leavedeparture_time- Scheduled departure time of the traintravel_time- Configured travel time to the stationdelay- Current delay of the train in minutes
Station Punctuality Sensor
Entity ID: sensor.db_infoscreen_{station}_station_punctuality
Disabled by Default
This sensor is disabled by default. It tracks the punctuality of all trains at this station over a rolling 24-hour window.
| State | Meaning |
|---|---|
| {Percentage} | The percentage of trains departing on time (delay <= 5 min) |
| Unknown | No historical data collected yet |
Attributes:
total_trains- Total number of trains tracked in the last 24hdelayed_trains- Number of trains with delay > 5 mincancelled_trains- Number of cancelled trainsaverage_delay- Average delay in minutes for all non-cancelled trainspunctuality_percent- Number value for graphs
Trip Watchdog Sensor
Entity ID: sensor.db_infoscreen_{station}_trip_watchdog
Disabled by Default
This sensor is disabled by default. Enable it if you want to monitor the status of the next train at its previous stop.
| State | Meaning |
|---|---|
| {Station}: +X min | Train left previous station with X minute delay |
| {Station}: On Time | Train left previous station on time |
| Unknown | No route data available |
Attributes:
train- Train identifier (e.g. "ICE 578")previous_station_name- Name of the previous stationprevious_delay- Delay in minutes at previous station
π΄ Binary Sensors
Three binary sensors are automatically created to provide quick status indicators.
Delay Sensor
Entity ID: binary_sensor.db_infoscreen_{station}_delay
Disabled by Default
This sensor is disabled by default. Enable it in the entity settings if you wish to track delays.
| State | Meaning |
|---|---|
| ON | At least one train is delayed (>0 minutes) |
| OFF | All trains are on time |
Attributes:
delayed_trains- List of delayed train detailsmax_delay- Highest delay in minutesdelayed_count- Number of delayed trains
Automation Example
Cancellation Sensor
Entity ID: binary_sensor.db_infoscreen_{station}_cancellation
Disabled by Default
This sensor is disabled by default. Enable it in the entity settings if you wish to track cancellations.
| State | Meaning |
|---|---|
| ON | At least one train is cancelled |
| OFF | No cancellations |
Attributes:
cancelled_trains- List of cancelled train detailscancelled_count- Number of cancelled trains
API Connection Sensor (Diagnostic)
Entity ID: binary_sensor.db_infoscreen_{station}_api_connection
Disabled by Default
This sensor is disabled by default. Enable it in the entity settings if you need to monitor API health.
| State | Meaning |
|---|---|
| ON | API connection is healthy |
| OFF | Connection issues detected |
Attributes:
last_successful_update- Timestamp of last successful data fetchconsecutive_errors- Number of consecutive API failures
Accessibility Sensor (Elevator)
Entity ID: binary_sensor.db_infoscreen_{station}_elevator_{platform} or _general_
Disabled by Default
This sensor is disabled by default. Enable it in the entity settings if you require accessibility information.
| State | Meaning |
|---|---|
| ON | Elevator or escalator issue detected |
| OFF | No reported issues |
Attributes:
issues- List of specific issue messages (e.g. "Aufzug zu Gleis 1 defekt")issue_count- Number of active issues
π Calendar Entity
Entity ID: calendar.db_infoscreen_{station}_departures
Disabled by Default
The calendar entity is disabled by default. Enable it in the entity settings when you want to visualize departures on a calendar view.
The calendar entity converts each departure into a calendar event, perfect for:
- Visual dashboard calendars
- Lovelace calendar cards
- Integration with other calendar tools
Event Format
| Property | Example |
|---|---|
| Summary | ICE 578 β Berlin Hbf (+5min) |
| Start | Scheduled departure time |
| Duration | 5 minutes (represents boarding window) |
| Location | Platform 12, MΓΌnchen Hbf |
| Description | Line, destination, platform, delay, route details |
Special Indicators in Summary:
(+Xmin)- Delay indicatorβ οΈ CANCELLED- Cancellation warning
Calendar Card
Add a calendar card to your dashboard:
π§ Repair Support
The integration automatically monitors for issues and creates repair entries in Settings β System β Repairs.
Issue Types
| Issue | Description | Auto-Resolves? |
|---|---|---|
| Stale Data | No successful data update for 24+ hours | β On next success |
| API Error | 3+ consecutive API failures | β On next success |
| Station Unsupported | 10+ failures, station may be invalid | β Manual action |
| Connection Error | Temporary network issue | β On next success |
Self-Healing Actions
When you view a repair issue, you can choose:
- Retry - Attempt to fetch data again
- Change Data Source - Switch to a different backend
- Remove Station - Delete the problematic configuration
ποΈ Device Grouping
All entities for a station are grouped under a single device:
| Property | Value |
|---|---|
| Name | DB Infoscreen |
| Manufacturer | Deutsche Bahn |
| Model | Departure Board |
This allows you to:
- View all entities in one place
- Add the device to areas
- Use device triggers in automations