2024-11-27 18:57:16 +01:00

1.6 KiB

title description ha_category ha_release ha_iot_class ha_codeowners ha_domain ha_platforms ha_integration_type ha_quality_scale
Transports Metropolitans de Barcelona Instructions on how to integrate TMB iBus sensor within Home Assistant.
Transport
0.104 Local Polling
@alemuro
tmb
sensor
integration legacy

This sensor will provide you the remaining time, in minutes, for the next bus in a specific stop by using the iBus service.

You must create an application on developer.tmb.cat to obtain the app_id and app_key values that you will need.

Add the data to your {% term "configuration.yaml" %} file as shown in the example:

# Example configuration.yaml entry
sensor:
- platform: tmb
  app_id: !secret tmb_app_id
  app_key: !secret tmb_app_key
  stops:
    - line: V25
      stop: 3258

{% configuration %} app_id: description: Your TMB APP identifier. required: true type: string app_key: description: Your TMB APP key. required: true type: string stops: description: List of bus stops to track. required: false type: list keys: line: description: Identifier of the line to track. required: true type: string stop: description: Stop identifier. required: true type: integer name: description: Name you want to use to identifier that stop. required: false type: string default: "LINE - STOP" {% endconfiguration %}

Data provided by TMB.