-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
786c684
commit e91a302
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# SL Traffic Status Lovelace Card | ||
Present traffic status from HASL Combination sensors. | ||
|
||
![card](https://user-images.githubusercontent.com/1217994/57677754-e1773980-7627-11e9-81e7-4b991a6e4dc1.png) | ||
|
||
## Manual Installation | ||
Copy [`hasl-traffic-status-card.js`](https://github.com/hasl-platform/lovelace-hasl-traffic-status-card/blob/master/dist/hasl-traffic-status-card.js) to `<config>/www/hasl-traffic-status-card.js` | ||
|
||
Where `<config>` is your Home Assistant configuration directory. | ||
Then use the following in your ui-lovelace.yaml file: | ||
|
||
```yaml | ||
resources: | ||
- url: /local/hasl-traffic-status-card.js | ||
type: js | ||
``` | ||
and use the card through this example: | ||
```yaml | ||
cards: | ||
- type: custom:hasl-traffic-status-card | ||
name: Traffic Status | ||
language: en-EN | ||
show_time: false | ||
hide_events: false | ||
show_only_disturbances: false | ||
entities: | ||
- sensor.traffic_status | ||
``` | ||
## Configuration variables | ||
- **name** (*Optional*): If specified it will not render titles per entitiy in the card, but rather have this as the card name. If not speficied it will render each sensors name | ||
- **show_cardname**: Render card name, default `true` | ||
|
||
- **language** (*Optional*): The texts will be rendered in this language. Can be one of `sv-SE` or `en-EN` | ||
|
||
- **show_time** (*Optional*): Render the time beside the name of the card, default `false` | ||
|
||
- **hide_events** (*Optional*): Hide all events and renders just the headers, default `false` | ||
|
||
- **show_only_disturbances** (*Optional*): Renders just disturbances in the traffic, default `false` |