Olen / lovelace-flower-card

Lovelace Flower Card to match the custom plant integration
https://github.com/Olen/homeassistant-plant/
177 stars 29 forks source link

Cards are not showing sensors anymore #121

Open JeroenTuinstra opened 5 months ago

JeroenTuinstra commented 5 months ago

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 commented 5 months ago

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 commented 5 months ago

Same for me..

Olen commented 5 months ago

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

tbgoose commented 5 months ago

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: @.***>

allesgutewarweg commented 3 months ago

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 commented 3 months ago

Do they show data in the integrations page?

allesgutewarweg commented 3 months ago

Yes, all data is there:

Bildschirmfoto 2024-06-20 um 13 31 01
Olen commented 3 months ago

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

allesgutewarweg commented 3 months ago

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 commented 3 months ago

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 commented 3 months ago

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 commented 3 months ago

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 commented 3 months ago

@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 commented 3 months ago

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

magune commented 3 months ago

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

image
magune commented 3 months ago

and the sensors do report data:

image
hmmbob commented 3 months ago

Did you update the plant component to the latest version?

magune commented 3 months ago

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 commented 3 months ago

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