Location IDs
To get data about a specific stop for depatures or other sensors you will need to have a Location ID. Location IDs are NOT interchangeable between SL and ResRobot so depending on your api you will need to lookup locations via api.
SL API
The IDs you get here is only for use with the SL sensors.
Go to Find Location IDs via SL Platsuppslag
Resrobot API
The IDs you get here is only for use with the Resrobot sensors.
- Start a browser window and go to the Developer Tools in Home Assistant
- Navigate to the Events tab
- Start listeningen to
hasl3
events - Start another browser window and go to the Developer Tools in Home Assistant
- Navigate to the Services tab
- Select the
rr_find_location
service, enter your API keys for “ResRobot v2.1” and a search string. Click Call Service. - Switch to the first browser window and see the response code and get the id for your location. Currently addresses are NOT supported.
SL API (alternative method)
The IDs you get here is only for use with the SL sensors. This is a bit harder than the first approach but is available to be common with Resrobot.
- Start a browser window and go to the Developer Tools in Home Assistant
- Navigate to the Events tab
- Start listeningen to
hasl3
events - Start another browser window and go to the Developer Tools in Home Assistant
- Navigate to the Services tab
- Select the
sl_find_location
service, enter your API keys for “SL Platsuppslag” and a search string. Click Call Service. - Switch to the first browser window and see the response code and get the id for your location.