Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pollen card for Tomorrow.io integration #646

Merged
merged 1 commit into from
May 11, 2022

Conversation

Wesleyl89
Copy link
Contributor

No description provided.

@basbruss basbruss merged commit 2970bbd into UI-Lovelace-Minimalist:main May 11, 2022
@sjoshua270
Copy link

I am having trouble getting this to work.
This is what I have in my welcome-header.yaml:

- type: "custom:button-card"
  template: custom_card_wsly_pollen
  variables:
    custom_card_wsly_pollen_tree: sensor.tomorrow_io_home_tree_pollen_index
    custom_card_wsly_pollen_grass: sensor.tomorrow_io_home_grass_pollen_index
    custom_card_wsly_pollen_weed: sensor.tomorrow_io_home_weed_pollen_index
    custom_card_wsly_pollen_tree_icon: mdi:tree
    custom_card_wsly_pollen_grass_icon: mdi:grass
    custom_card_wsly_pollen_weed_icon: mdi:flower-pollen

I was getting errors about missing icons, so I included the icons manually. Now, my error is:

TypeError: Cannot read properties of undefined (reading 'state') in 
'let pollen_state_label = variables.custom_card_wsly_pollen_none;
  if (entity.state == "very_low")...'

I copy-pasted the custom_card_wsly_pollen folder from GitHub, so I am fairly sure I'm not missing any code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants