lovelace-flower-card
lovelace-flower-card copied to clipboard
Cards are not showing sensors anymore
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
If you can help what is going on, it used to work fine.
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.
Same for me..
Please upgrade both the flower card and the main plant integration to 2024.4.1 or a newer beta.
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: @.***>
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
Do they show data in the integrations page?
Yes, all data is there:
Any error-messages, either in the browser developer console or the home-assistant log?
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. :/
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?
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!!!
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 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
Yeah. I just released a 2024.7-beta of the plant integration. Hopefully that fixes it.
All my flower cards suddenly lost the graphs for moisture, conductivity etc.
and the sensors do report data:
Did you update the plant component to the latest version?
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
hmm seems the plant integration wasn't updated after all. I have updated it now, and now it works. thanks!