Formula One Card

A bit late, but next_race_delay: isn’t working for the countdown card.

I just updated to the latest version and tested it by setting it on 72. The function works for the next_race card.

Just let me know if i need to post this as an issue (or feature) on git.

Two identical configurations for two different card types. However, image_clickable only works on card_type:next_race and NOT on card_type: countdown. Is this a bug or can anyone point me to a coding mismatch.

type: custom:formulaone-card
card_type: next_race
f1_font: true
image_clickable: true
next_race_display: date
show_raceinfo: true
hide_tracklayout: false
date_locale: nl


type: custom:formulaone-card
card_type: countdown
f1_font: true
image_clickable: true
next_race_display: date
show_raceinfo: true
hide_tracklayout: false
date_locale: nl

O yeah! Sorry forgot about this. I will check it tomorrow when i come home from work

The next race delay is only ment to work on next_race card. Since the countdown is counting down to the next race its not logical to delay that…

1 Like

I’ve found it. In the countdown it is actively prevented. Not sure why tho so I removed that in the new version

It works now flawlessly with the countdown card!

1 Like

by chance I noticed that the local time is wrong, it indicates 1 hour ahead of what it will actually be (here in Italy it will be visible at 7 in the morning). I think the problem is related to daylight saving time, which will become effective from this Sunday. I expect that from Monday the problem will have disappeared, but I don’t know if it can be useful in evaluating the local time considering daylight saving time or solar time at the time of the event and not at the current time.
This message is just to report what I discovered, but I don’t consider it such a serious problem. It would have been if the time change occurred on the day of the grand prix. One year it happened to me and I woke up an hour late :slight_smile:

Hi i am having an issue on my tablet with fully kiosk browser with the race results. the trophy and timer buttons are visible but i can’t click on it. On my phone it is working normal. is this a known issue and how do i fix it? see image below

The position of the icons on the bottom tell me that you probably have a javascript error. Can you refresh you cache?

Hi thanks for the quick response, i tried to delete cache but still the same. I tried it on my laptop and pc with the HA app but same problem.
i found out on my laptop in chrome when i edit the card and press save it is working so thats pretty weird.

update:
i temporary made my tablet user administrator and pressed edit card in the fully kiosk browser and same thing happened. i will try and see for how long this fix will work

update2:
fix was not working very long. after a refresh same problem occured. So it looks like there is a bug somewere in the card

You are the only one with the bug so far, so dont think its the card. Can you open developer tools (F12) on your laptop and see if there are any errors?

Hi all,
I’ve just installed this card and its causing some big issues…

All dashboards show this error, I also now can’t get back into HACS to unload/remove.

Update: If I refresh my browser, the card shows for 1 second before the first image reappears. On a tablet, I need to clode the HA app and reload but all dashboards are effected.

Unloading the card stops this behavior and all is normal

HA: 2025.4.1

I think something else is causing it. Your supervisor cant start an addon. This card isnt an add on. Check the supervisor logs, there might be a hint there whats causing this. I am also on 2025.4.1 and its working fine.

As soon as I download the card, this happens:

2025-04-07 10:28:25.276 ERROR (MainThread) [frontend.js.modern.202504040] Uncaught error from Firefox 137.0 on Windows 10

Error: Failed to execute ‘define’ on ‘CustomElementRegistry’: the name “action-handler-formulaonecard” has already been used with this registry

72311/</O.prototype.define (src/scoped-custom-element-registry.ts:180:12)

22 (/hacsfiles/formulaone-card/formulaone-card.js:2:55383)

i (/hacsfiles/formulaone-card/formulaone-card.js:2:125098)

438 (/hacsfiles/formulaone-card/formulaone-card.js:2:69163)

i (/hacsfiles/formulaone-card/formulaone-card.js:2:125098)

148 (/hacsfiles/formulaone-card/formulaone-card.js:2:61756)

i (/hacsfiles/formulaone-card/formulaone-card.js:2:125098)

/hacsfiles/formulaone-card/formulaone-card.js:2:125459

/hacsfiles/formulaone-card/formulaone-card.js:2:125467

Thats very weird. The card does absolutely nothing with entities so the card cant be doing all that.

You say as soon as i download the card it does that. Am i right to asume you didnt put it on your dashboard yet?

But very weird, you are the first to report this. Still dont think its the card tho. Its not an integration and does nothing with entities, so it cant turn your entities off

I’ll keep trying to figure this out. Maybe something silly I’m doing. I’ll continue to monitor the logs to see if anything else might be playing up. But everything else works as expected

Tests: New dashboard with only Constructors. The card appears for 1 second before the Reload UI error msg appears.

I then see this in the .log

2025-04-07 20:32:20.007 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection] [547158301072] SnapdragonUser from 192.168.1.48 (Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:137.0) Gecko/20100101 Firefox/137.0): Disconnected: Received error message during command phase: Decompressed message size 4482132 exceeds limit 4194304

this repeats constantly for every second until I view a different dashboard

views:

  • type: masonry
    title: Test
    path: test
    cards:
    • type: custom:formulaone-card
      card_type: constructor_standings
      title: Constructor Standings
      standings:
      show_teamlogo: true

Can you add it on a dashboard without a custom theme?

The cards (except the countdown) dont auto refresh. And even the countdown only gets the data once.
The card caches the data its got for 72 hours for most cards so it shouldnt call the api every second.

Can you go to https://api.jolpi.ca/ergast/f1/current/constructorstandings.json on a laptop or pc? What do you see?

1 Like

Thank you. The issue is custom themes. As soon as I remove the theme from my User settings, it works. So sorry. didn’t think a theme would do that.
What would the reason for that be?

Not all of them, just the particular one, you used. :wink:

I also use custom themes (Caule Themes Pack 1 - by caulecriativo.com) , and no problems here…