Skip to content

davidrustingha/F1-Calendar-Card

Repository files navigation

F1-Calendar-Card

I'm currently working on a major update on the card including track images and better information. It will contain one template sensor and the use of the Formula One Sensor made by Delzear (https://github.com/delzear/hass-formulaoneapi). It might be finished in a couple of weeks, but it all depends on the time I have to make it.

A card for upcoming F1 events - Featuring support for Sprint Race weeks and normal race weeks


INSTALLATION

To get this card working there's a couple of components you need.


ORDER OF INSTALLING

To minimize errors in your log file install the components in the following order

  • Google Calendar Integration
  • Add F1 calendar to HA (use the entry in the google_calendar.yaml file)
  • Add template sensors to your config
  • Install Template Entity Row & Text Divider Row
  • Add card.yaml to dashboard
  • Enjoy!

WHERE TO PLACE TEMPLATE SENSORS

The card relies highly on the template sensors created in step 3 of the installation. People who use !include statements in their configuration.yaml file will be able to paste this directly inside their yaml file, or download the template_sensor.yaml file to their template sensor folder (If you want to learn more about this: https://www.home-assistant.io/docs/configuration/splitting_configuration/)

For people who want to put this inside the configuration.yaml file you need to do the following.

  • Add template sensor entry to the config file:
template:
  - sensor:
  • Copy the content inside template_sensor.yaml file and paste under the '- sensor:' entry
  • Select all of the code you just copied and hit tab to indent the code under the '- sensor:' entry (works if you use the file editor addon, and also if you use the VSCode addon)
  • Check config and reload template entities.

LANGUAGE

Want to use the card in a diffrect language? The following adjustments have to be made

  • Change the days and months in the template sensor
  • Change the text in the card

And you're done


EXAMPLE

alt text


BUGS OR FEATURE REQUESTS

It will probably happen that you run into some bugs. Please raise an issue for those, so I can get the card as perfect as possible. The same goes for feature requests. You can always add the and if/when I find the time and answer I will implement it!

About

A card for upcoming F1 events

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published