Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 1.55 KB

File metadata and controls

44 lines (31 loc) · 1.55 KB

SL Traffic Status Lovelace Card

Present traffic status from HASL Combination sensors.

card

Manual Installation

Copy 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:

resources:
  - url: /local/hasl-traffic-status-card.js
    type: js

and use the card through this example:

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, en-EN or fr-FR

  • 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