FormulaOne Card
Present the data of hass-formulaoneapi in a pretty way
Installation
Manually add formulaone-card.js to your <config>/www/
folder and add the following to the configuration.yaml
file:
lovelace:
resources:
- url: /local/formulaone-card.js
type: module
OR install using HACS and add this (if in YAML mode):
lovelace:
resources:
- url: /hacsfiles/formulaone-card/formulaone-card.js
type: module
The above configuration can be managed directly in the Configuration -> Lovelace Dashboards -> Resources panel when not using YAML mode, or added by clicking the "Add to lovelace" button on the HACS dashboard after installing the plugin.
Configuration
Name | Type | Default | Description |
---|---|---|---|
type | string | Required | custom:formulaonecard |
sensor | string | Required | Entity ID of the sensor (must be one of the sensors of hass-formulaoneapi |
card_type | string | Required | The type of card you want to display (driver_standings,constructor_standings,next_race,schedule,last_result) |
title | string | The header of the card ( hidden when null or empty) | |
date_locale | string | Override the locale used for the date and time formatting | |
image_clickable | boolean | false |
Click on image leads to wikipedia, or not |
show_carnumber | boolean | false |
Show the number of the car |
location_clickable | boolean | false |
Click on the location leads to wikipedia |
previous_race | enum | Hide/strikethrough or make the past races italic options are (hide, strikethrough or italic) |
type: custom:formulaone-card
card_type: next_race
sensor: sensor.formula_one_sensor_races
title: Next Race
date_locale: nl
image_clickable: false
type: custom:formulaone-card
card_type: constructor_standings
sensor: sensor.formula_one_sensor_constructors
title: Constructor Standings
type: custom:formulaone-card
card_type: driver_standings
sensor: sensor.formula_one_sensor_drivers
title: Driver Standings
type: custom:formulaone-card
card_type: schedule
sensor: sensor.formula_one_sensor_races
title: Schedule
date_locale: nl
type: custom:formulaone-card
card_type: last_result
sensor: sensor.formula_one_sensor_last_result
title: Last Result