isabellaalstrom / lovelace-pollenprognos-card

12 stars 7 forks source link

Error when trying to use the card #3

Closed jamiekris closed 2 years ago

jamiekris commented 3 years ago

Hi! Great work being done here, thanks first for that.

I have installed this card via HACS and find that the folder is available in 'www/community/lovelace-pollenprognos-card/'

When adding a new card on lovelace, I get this error 'Configuration errors detected: No type provided.'. I am using the exact example script on the readme, with the only change being to 'Norrköping'.

Can you please help :)

isabellaalstrom commented 2 years ago

There is probably a dash before type that shouldn't be there.

jamiekris commented 2 years ago

Hi! I tried to remove the dash and still keep the same indentation, it still complains the same error?

isabellaalstrom commented 2 years ago

You need to post what you are trying to do in code or at least screenshot for me to be able to help you. Also, are you in the gui or yaml files?

jamiekris commented 2 years ago

I'm using the exact lines as in the example in Readme in the yaml editor. See https://mega.nz/file/TOYkhTRT#azQ6FwWGWrPTtnw2YFx4pVjgdrFNCC81qpKGo0Y5wlc please.

isabellaalstrom commented 2 years ago

Sorry, the link isn't working for me. Why I want it is because it matters where you put the lines etc. The error message tells me it's most probably something to do with the config.

jamiekris commented 2 years ago
Screenshot 2022-01-27 090200

I hope this one works. I am using the exact same example code. Also tried to play with the dashes, but no luck really...

isabellaalstrom commented 2 years ago

Yeah, the example is for a whole view with the card in it.

Remove everything and paste this

type: 'custom:pollenprognos-card'
title: false
city: Stockholm
allergens:
  - Al
  - Alm
  - Ambrosia
  - Björk
  - Ek
  - Gråbo
  - Gräs
  - Hassel
  - Sälg / vide
jamiekris commented 2 years ago

oh I see :) Thanks so much. Works now!