lovelace-flower-card icon indicating copy to clipboard operation
lovelace-flower-card copied to clipboard

Cards are not showing sensors anymore

Open JeroenTuinstra opened this issue 10 months ago • 19 comments

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.

JeroenTuinstra avatar Apr 17 '24 10:04 JeroenTuinstra

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.

tbgoose avatar Apr 22 '24 05:04 tbgoose

Same for me..

SebaBosssU avatar May 06 '24 10:05 SebaBosssU

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

Olen avatar May 06 '24 13:05 Olen

Was already on 2024.4.1 but forcing update to 2024.4.0beta10 fixed it for me. Not sure if this is expected but I am happy

Cheers!

On Mon, May 6, 2024 at 11:04 PM Olen @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/Olen/lovelace-flower-card/issues/121#issuecomment-2095972096, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACYXYKKCNXWZSUWUL3SIOC3ZA55VFAVCNFSM6AAAAABGLBPTD2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJVHE3TEMBZGY . You are receiving this because you commented.Message ID: @.***>

tbgoose avatar May 06 '24 14:05 tbgoose

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

allesgutewarweg avatar Jun 20 '24 10:06 allesgutewarweg

Do they show data in the integrations page?

Olen avatar Jun 20 '24 11:06 Olen

Yes, all data is there:

Bildschirmfoto 2024-06-20 um 13 31 01

allesgutewarweg avatar Jun 20 '24 11:06 allesgutewarweg

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

Olen avatar Jun 20 '24 11:06 Olen

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. :/

allesgutewarweg avatar Jun 20 '24 12:06 allesgutewarweg

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?

Olen avatar Jun 20 '24 12:06 Olen

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!!!

allesgutewarweg avatar Jun 20 '24 12:06 allesgutewarweg

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.

Olen avatar Jun 20 '24 12:06 Olen

@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

hmmbob avatar Jun 27 '24 13:06 hmmbob

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

Olen avatar Jun 27 '24 13:06 Olen

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

magune avatar Jul 04 '24 13:07 magune

and the sensors do report data: image

magune avatar Jul 04 '24 13:07 magune

Did you update the plant component to the latest version?

hmmbob avatar Jul 04 '24 13:07 hmmbob

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 avatar Jul 04 '24 13:07 magune

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

magune avatar Jul 04 '24 13:07 magune