Skip to content

v4.0.0-beta.1

Pre-release
Pre-release

Choose a tag to compare

@delize delize released this 30 Nov 00:48
· 0 commits to master since this release
e3e9698

4.0.0-beta.1: Major architecture update with new SL APIs

This is a beta release for testing the major API migration.

Changes

  • Migrate to trafiklab-sl library (v2.1.1) for all SL API integration
  • Adopt DataUpdateCoordinator pattern (modern Home Assistant approach)
  • Create new sensors/ directory structure with modular sensor files
  • Create services/ directory with modular service implementations
  • Remove deprecated Vehicle Location sensor (api.sl.se discontinued)
  • Update config_flow with modern selectors
  • Simplify haslworker to minimal legacy support

API Changes

Old API New API Key Required
RI4 (departures) SL Transport API No
SI2/TL2 (deviations) SL Deviations API No (1 req/min limit)
RP3/PU1 (routing) SL Journey Planner v2 No
api.sl.se (vehicles) DISCONTINUED N/A
ResRobot ResRobot v2.1 Yes (unchanged)

New Sensor Types

  • departure_v2 - Uses trafiklab-sl TransportClient
  • status_v2 - Uses trafiklab-sl DeviationsClient (61s minimum scan interval)
  • route_v2 - Uses trafiklab-sl JourneyPlannerClient

Breaking Changes

  • Vehicle Location sensor type removed (API discontinued)
  • Sensor type names changed to *_v2 variants
  • Configuration schema version bumped to 5

Installation

Add this repository as a custom HACS repository or manually copy custom_components/hasl3 to your Home Assistant config directory.

Note: This is a pre-release. Please report any issues on GitHub.