Grocy Chores Card

Hi All,

Probably a total noob question here :laughing:. I’m having a problem getting the Grocy Chores Card to work. I’ve installed it together with card-tools via HACS, but when i try to add the card my dashboard it keeps on saying: “Cannot read property ‘setConfig’ of undefined”. Can anyone help me with this?

My code looks like this:

title: Chores
resources:
  - url: /local/community/lovelace-grocy-chores-card/grocy-chores-card.js
    type: js
views:
  title: View
  cards:
    - type: custom:grocy-chores-card
      entity: sensor.grocy_chores

Thanks!

It’s just a guess, but the resources-part should be in configuration.yaml and all other stuff in ui-lovelace.yaml.

I tried to put the resources part in the configuration.yaml, but when I do a config check it gives an error saying resources cannot be used. :frowning:

First off, please don’t describe an error message in your own words, rather post the exact error message. :slight_smile:

Did you read the documentation on how to use lovelace in yaml-mode and how to integrate it in configuration.yaml? Here you go:

And here is an example how resources should be put in configuration.yaml:

If you hadn’t changed the default setup, all other stuff will most likely go into ui-lovelace.yaml or wherever your views are defined.

:slight_smile:

Hi Paddy,

Thanks again and sorry for the noob questions. I’ve changed my config.yaml and created the ui-lovelace.yaml, however now one of my cards is broken and the one i’m trying to create won’t work.
The error for the the Grocy Chores Card is saying:

No card type configured.
title: Takenlijst
cards:

  • type: ‘custom:grocy-chores-card’
    entity: sensor.grocy_chores

and the other card is saying:

Custom element doesn’t exist: auto-entities.
type: ‘custom:auto-entities’
card:

  • type entities
    filter:
    include:
    • entity_id: sensor.track_package_
      options:
      secondary_info: last-changed

My config looks like this:

lovelace:
  mode: yaml
  
  resources:
    - url: /local/card-tools.js
      type: js
    - url: /local/auto-entities.js
      type: js
    - url: /local/grocy-chores-card.js
      type: js

What am I doing wrong?

You’re welcome and everyone started like this, ask why I know… :smiley: :smiley:

First, configuration.yaml:

lovelace:
  mode: yaml
  
  resources:
    - url: /local/card-tools.js
      type: module
    - url: /local/auto-entities.js
      type: module
    - url: /local/grocy-chores-card.js
      type: module

Note the module vs. js. But I’m not sure, if this gives an error. You said, you have installed the cards via HACS, than the folder is not correct. HACS normally has url: /hacsfiles/lovelace-card-tools/card-tools.js

Next thing, you have to note, how a card is set up in lovelace. Most cards have a few required things, one is type. So for your first example, the grocy-chores-card, there are a few options (look here). Two of them are required:

- type: 'custom:grocy-chores-card'
  entity: sensor.grocy_chores

But, let me say one thing inbetween. I’m getting the feeling, there are some more things you should learn first. As I can see, you are not very far, regarding your config, so may I suggest the following: Start fresh! :slight_smile: Not a new installation, but an overhaul of your config.

Post a few more information about your setup (how it is installed, which version, what addons/custom_components are installed and so on), so we can get you started. :slight_smile: Helpful would be, if you could also post a list of files and subfolders in your config folder, together with the content of your configuration.yaml.
Please be aware, that you delete all passwords and personal data like latitude, longitude and so on before posting.

Hi Paddy,

I have done what you told me; resources amended to show hacsfiles/. Added the required fields in the ui, still not working. Looked for solutions around the internet, but as you probably guessed: still no solution. So I kind of lost the will to look any further and have just removed everything and restored the dashboard as it was.

Sorry for wasting your time.

It’s never a waste of time. :wink: If you want to try again, feel free to ask, maybe it helps, if you don’t need to “start” alone. :slight_smile:

What was the original plan?

2 Likes

Hi there, I have it working (mostly, slow-ui?). I just installed it. I did have to mess with it abit.

I see you had to delete it, but I would like to keep this thread going because a)I Really wanted a chore card and b)I had a bit of problem get it going

So

  1. was grocy installed and correctly configured using the supervisor add-on?
  2. Did you logon to grocy and and add a chore?
  3. Did you install the Grocy custom component
  4. Is the Grocy custom component configured correctly?
  5. Are the sensors showing up in lovelace?
  6. Did you install the grocy-chore-card addon via HACS?
  7. Did you install the required card-tools?
  8. did you add the required lines to your entity that your using?
  - type: js
    url: /local/grocy-chores-card.js

to your frontend?
9. Finally, did you add the required:

          - entity: sensor.grocy_chores
            type: 'custom:grocy-chores-card'

Let us know. Lots of small steps.

Hi Prosonik,

I’ve tried to get it working again, but it seems that the moment i want to add the grocy custom component integration my home assistant crashes. So it’s better that I keep my hands off from this one as I just don’t have enough knowledge to keep the system from getting damaged.

Thanks again though.