marcokreeft87/formulaone-card

Card doesn't exists in conditional card on Fully Kiosk Browser and phone

Closed this issue · 8 comments

Hi,

I had a good working custom:formulaone-card but I wanted to see the days till the next race changed with a Christmas countdown. The code below is working on my computer browser, but not on my phone or in Fully Kiosk browser (see screendumps). It's since I made a conditional card from it. What is going wrong?

type: custom:stack-in-card
parameters:
scrollbar:
hide: false
draggable: true
snapOnRelease: true
cards:

  • type: conditional
    conditions:
    • entity: input_boolean.f1_christmascountdown
      state: 'off'
      card:
      type: vertical-stack
      cards:
      • type: picture
        image: /local/images/f1.png
        tap_action:
        action: navigate
        navigation_path: /dashboard-tablet/f1
        card_mod:
        style: |
        ha-card {
        height: 20px;
        width: 75px;
        top: 35px;
        left: 0%;
        background: none;
        border: none;
        }
      • type: custom:formulaone-card
        card_type: countdown
        f1_font: true
        card_mod:
        style: |
        ha-card {
        height: 88px;
        width: 236px;
        font-size: 6px;
        left: 75px;
        top: -30px;
        }
        tap_action:
        action: navigate
        navigation_path: /tablet-living-room/f1-stats
  • type: conditional
    conditions:
  • initial_view: listWeek
    type: calendar
    entities:
    • calendar.feestdagen_in_nederland

IMG_3534
IMG_3533

Hmm weird. The logo is there so it is doing something. I don't have the time till tomorrow to check for you so hold on

Many thanks!

The iOS app looks okay now, it might did need a restart. But on the Fully Kiosk app, the problem is still there after deleting the cache and restarting the app several times. As you can see exactly the same dashboard is working on a Chrome browser. The code I am using is also working on the tablet without the conditions, so it just appears on the Fire Tablet with the full kiosk app when it comes into the condition template.

Scherm­afbeelding 2023-11-23 om 21 00 28

@larsvdmanden is your issue solved btw? Kinda forgot this issue xD

I don't know actually, it still says: Season is over. See you next year!

So it's working. Season over is another issue caused by the api

Now the api is working again and the countdown actually showing a countdown... the problem is back. On the pc it says 'error getting next race', whilst on the smartphone everything is fine. I really don't understand why it's behaving like this. It's exactly the same card/code on phone as on web. Do you have any idea?

Screenshot 2024-03-08 at 21 45 18

Now the api is working again and the countdown actually showing a countdown... the problem is back. On the pc it says 'error getting next race', whilst on the smartphone everything is fine. I really don't understand why it's behaving like this. It's exactly the same card/code on phone as on web. Do you have any idea?

Screenshot 2024-03-08 at 21 45 18

Because the card cached the data on the device. So it's different on each device

Oh, it's fully working now! I think it was a cache thing indeed. But the problem I had last year is solved as well lol. Happy!