2020-03-05 17:28:39 -08:00

1.5 KiB

title, description, logo, ha_category, ha_release, ha_iot_class, ha_codeowners, ha_domain
title description logo ha_category ha_release ha_iot_class ha_codeowners ha_domain
Transports Metropolitans de Barcelona Instructions on how to integrate TMB iBus sensor within Home Assistant. tmb.png
Transport
0.104 Local Polling
@alemuro
tmb

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 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.