Skip to content

Commit

Permalink
Updated info
Browse files Browse the repository at this point in the history
  • Loading branch information
dimmanramone committed Nov 9, 2019
1 parent 786c684 commit e91a302
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions info.md
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`

0 comments on commit e91a302

Please sign in to comment.