A HomeAssistant Lovelace custom card which displays public transport using the HA-LTA sensors. This improves on a generic entity display making it easier to digest data.
Make sure you have an HA-LTA entities configured and running
- Download and copy
lta-card.jsinto your/config/www/directory. - Add a reference to
lta-card.jsinside yourManage resourceswhen editing dashboard
Add a manual card with the sample configuration
cards:
- type: "custom:lta-card"
header: "Burgundy Hill"
threshold: 4
group:
- name: "77"
entities:
- entity: sensor.lta_42319_77_1
- entity: sensor.lta_42319_77_2
- entity: sensor.lta_42319_77_3
- name: "106"
entities:
- entity: sensor.lta_42319_106_1
- entity: sensor.lta_42319_106_2
- entity: sensor.lta_42319_106_3| Name | Type | Requirement | Description | Default |
|---|---|---|---|---|
| type | string | Required | custom:lta-card |
|
| header | string | Optional | Card Title | Next Buses |
| threshold | integer | Optional | Orange text color to if state < threshold minute |
0 |
| group | object[] | Required | New row of same bus service | |
| - name | string | Optional | Bus service number to show on first column | none |
| - entities | string[] | Optional | List of lta-bus entities | none |
