home-assistant.io/source/_integrations/yandex_transport.markdown
c0ffeeca7 a4a68172c0
u-z integrations: apply sentence-style caps to categories (#29907)
* u-z integrations: apply sentence-style caps to categories

* Apply suggestions from code review

Co-authored-by: Joakim Sørensen <joasoe@gmail.com>

* Add references to glossary terms

* Update source/_integrations/universal.markdown

Co-authored-by: Joakim Sørensen <joasoe@gmail.com>

* Update source/_integrations/universal.markdown

Co-authored-by: Joakim Sørensen <joasoe@gmail.com>

* linter: change vizio to VIZIO

- as per product website https://www.vizio.com/en/smartcast

* remove term refs from YAML

* VIZIO: change spelling according to website

- https://www.vizio.com/en/t

* Update source/_integrations/vizio.markdown

* Update source/_integrations/universal.markdown

* Apply suggestions from code review

Co-authored-by: Joakim Sørensen <joasoe@gmail.com>

* Update source/_integrations/unifiprotect.markdown

Co-authored-by: Joakim Sørensen <joasoe@gmail.com>

* Apply suggestions from code review

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Apply suggestions from code review

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Fix some more to sentence-style caps

* Update source/_integrations/unifiprotect.markdown

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Update source/_integrations/unifiprotect.markdown

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Update source/_integrations/unifiprotect.markdown

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

---------

Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2023-11-19 14:43:27 +01:00

2.4 KiB

title, description, ha_category, ha_iot_class, ha_release, ha_codeowners, ha_domain, ha_platforms, ha_integration_type
title description ha_category ha_iot_class ha_release ha_codeowners ha_domain ha_platforms ha_integration_type
Yandex Transport Instructions on how to set up Yandex transport with Home Assistant.
Sensor
Transport
Cloud Polling 0.100
@rishatik92
@devbis
yandex_transport
sensor
integration

The yandex_tranport sensor platform uses Yandex Maps it will give you the time until the next departure time from a bus/tramway/etc stop.

The Yandex Maps website can help to determine the id of your bus stop. You can select a bus stop by clicking on the map, and look to the URL:

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:

# Example configuration.yaml entry
sensor:
  - platform: yandex_transport
    stop_id: YOUR_STOP_ID

{% configuration %} stop_id: description: The ID of the transport stop to get the information for. required: true type: string routes: description: "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." required: false type: list name: description: A friendly name for this sensor. required: false default: Yandex Transport type: string {% endconfiguration %}

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
title: Home Assistant
views:
    cards:
      - entities:
          - entity: sensor.yandex_transport
            format: relative
        type: entities
    path: default_view

Data provided by https://maps.yandex.ru