Yandex Transport
The yandex_tranport
integration集成将 Home Assistant 与您的设备、服务等连接和集成。 [Learn more] uses Yandex Maps
The Yandex Maps
https://yandex.ru/maps/213/moscow/?ll=37.722565%2C55.806662&masstransit%5BstopId%5D=stop__9642962&mode=masstransit&z=16.52
Where stop id is: stop__9642962
If you want to track only specific routes, you can add them in the routes section.
Configuration
To activate Yandex Transport, add the following lines to your configuration.yaml
configuration.yaml 文件是 Home Assistant 的主要配置文件。它列出了要加载的集成及其特定配置。在某些情况下,需要直接在 configuration.yaml 文件中手动编辑配置。大多数集成可以在 UI 中配置。 [Learn more] file.
在更改了configuration.yaml
configuration.yaml 文件是 Home Assistant 的主要配置文件。它列出了要加载的集成及其特定配置。在某些情况下,需要直接在 configuration.yaml 文件中手动编辑配置。大多数集成可以在 UI 中配置。 [Learn more] 文件后,重启 Home Assistant 以应用更改。 该集成现在显示在集成页面的 设置 > 设备与服务 下。其实体在集成卡片上以及实体标签上列出。
# Example configuration.yaml entry
sensor:
- platform: yandex_transport
stop_id: YOUR_STOP_ID
Configuration Variables
A list of a specific bus, tramway, etc routes at the stop. This is the same as the bus number, e.g., 83
. If the routes with letters contain Cyrillic symbols, so write them to configuration.yaml
in Cyrillic.
Full configuration example
The configuration sample below shows how an entry can look like:
# Example configuration.yaml entry
sensor:
- platform: yandex_transport
name: Bus_to_subway
stop_id: stop__9639579
routes:
- 63
- 179
- 179к
- 154
- 591
- 677к
Options for entities
You can configure view information about the next bus using dashboard card.
To enable displaying the relative time in your default_view
add the following lines:
# Example default_view entry
views:
cards:
- entities:
- entity: sensor.yandex_transport
format: relative
type: entities
path: default_view
Data provided by https://maps.yandex.ru