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

Cards are not showing sensors anymore #121

Open
JeroenTuinstra opened this issue Apr 17, 2024 · 19 comments
Open

Cards are not showing sensors anymore #121

JeroenTuinstra opened this issue Apr 17, 2024 · 19 comments

Comments

@JeroenTuinstra
Copy link

Suddenly all cards are only showing the plant picture, name and battery status, but no sensors. No errors in the logs.

Home Assistant Core 2024.4.3
Hom Assistant Plant 2024.1.0
OpenPlantbook 1.2.0
Flower Card 2024.1.1

image

image

image

If you can help what is going on, it used to work fine.

@tbgoose
Copy link

tbgoose commented Apr 22, 2024

Same issue for me, been like this a while but in the past it has been due to Dwains Dashboard (or at least only occurs there). Now it is like this on Lovelace as well.

@SebaBosssU
Copy link

Same for me..

@Olen
Copy link
Owner

Olen commented May 6, 2024

Please upgrade both the flower card and the main plant integration to 2024.4.1 or a newer beta.

@tbgoose
Copy link

tbgoose commented May 6, 2024 via email

@allesgutewarweg
Copy link

I have configured 4 plants. 2 of them are fine the other 2 won't show the sensor data.

Upgrade / Downgrade, Restart and Reboot doesn't fix that issue.

Home Assistant Core 2024.6.3
Home Assistant Plant 2024.6.0
OpenPlantbook 1.2.0
Flower Card 2024.4.1

@Olen
Copy link
Owner

Olen commented Jun 20, 2024

Do they show data in the integrations page?

@allesgutewarweg
Copy link

Yes, all data is there:

Bildschirmfoto 2024-06-20 um 13 31 01

@Olen
Copy link
Owner

Olen commented Jun 20, 2024

Any error-messages, either in the browser developer console or the home-assistant log?

@allesgutewarweg
Copy link

I hope that i've checked the correct logs. Here's what i've found:

flower-card.js?hacstag=297423025:320 The main 'lit-element' module entrypoint is deprecated. Please update your imports to use the 'lit' package: 'lit' and 'lit/decorators.ts' or import from 'lit-element/lit-element.ts'. See https://lit.dev/msg/deprecated-import-path for more information.
--
  | 969 | @ | flower-card.js?hacstag=297423025:100
  | i | @ | flower-card.js?hacstag=297423025:320
  | (anonymous) | @ | flower-card.js?hacstag=297423025:320
  | (anonymous) | @ | flower-card.js?hacstag=297423025:320
compute_state_display.ts:31 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'entity_id')
    at p (compute_state_display.ts:31:38)
    at Object.formatEntityState (entity-state.ts:39:7)
    at e.renderAttributes (flower-card.js?hacstag=297423025:305:349)
    at h.render (flower-card.js?hacstag=297423025:114:37)
    at h.update (flower-card.js?hacstag=297423025:320:14322)
    at h.performUpdate (flower-card.js?hacstag=297423025:320:9166)
    at h.scheduleUpdate (flower-card.js?hacstag=297423025:320:8813)
    at h._$Ej (flower-card.js?hacstag=297423025:320:8721)

Sadly i'm not very good in debugging such things. :/

@Olen
Copy link
Owner

Olen commented Jun 20, 2024

Doesn't look like the card is configured correctly.
entity_id seem to be empty?

Try removing all the bars, and add them back one by one.
Could be an issue with one of the sensors?

@allesgutewarweg
Copy link

Whooop Whoop 🥳

This 2 plants don't have an humidity sensor. After removing that sensor the card is displayed fine. The issue occurs because changing the checkboxes in card editor doesn't save this change, i need to edit the YAML code to remove that sensor.

There's only one error left in console:

The main 'lit-element' module entrypoint is deprecated. Please update your imports to use the 'lit' package: 'lit' and 'lit/decorators.ts' or import from 'lit-element/lit-

Thank you very much!!!

@Olen
Copy link
Owner

Olen commented Jun 20, 2024

Thanks.
I should probably add some checking if the sensors exists.
The "lit-element"-error is just cosmetic for now, and there is another issue open to track that.

@hmmbob
Copy link

hmmbob commented Jun 27, 2024

@Olen This could be the same issue we just discussed - after all over there the integral sensor was not setup correctly (even if I did not show it on the plant-card in the first place) which was fixed by the PR in the component repository

@Olen
Copy link
Owner

Olen commented Jun 27, 2024

Yeah.
I just released a 2024.7-beta of the plant integration. Hopefully that fixes it.

@magune
Copy link

magune commented Jul 4, 2024

All my flower cards suddenly lost the graphs for moisture, conductivity etc.
image

@magune
Copy link

magune commented Jul 4, 2024

and the sensors do report data:
image

@hmmbob
Copy link

hmmbob commented Jul 4, 2024

Did you update the plant component to the latest version?

@magune
Copy link

magune commented Jul 4, 2024

i have updated everything in HACS and HA itself, but I haven't downloaded any JavaScript files manually etc if that is what is needed

@magune
Copy link

magune commented Jul 4, 2024

hmm seems the plant integration wasn't updated after all. I have updated it now, and now it works. thanks!

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

No branches or pull requests

7 participants