denysdovhan / vacuum-card

Vacuum cleaner card for Home Assistant Lovelace UI
https://denysdovhan.com/smart-home
MIT License
903 stars 529 forks source link

After updating to 2024.2.4 is the card empty #699

Closed anders3408 closed 6 months ago

anders3408 commented 6 months ago

Before submitting a bug

Describe the bug

After updating to 2024.2.4 is the card empty when adding it with the following yaml:

type: custom:vacuum-card
entity: vacuum.roomba

The model is a iRobot Roomba 980 and worked perfectly in version 2024.2.2 and in 2024.2.4 the iRobot works fine with other cards, but this looks much better :)

Steps to reproduce

  1. Go to '...'
  2. Click on '....'
  3. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem. For example, JavaScript errors are shown in the web inspector (if applicable).

Versions:

DeFlanko commented 6 months ago

I restarted HA, disabled the Roomba, and re-enabled it and then the card displayed the vacuum again.

Veldkornet commented 6 months ago

I restarted HA, disabled the Roomba, and re-enabled it and then the card displayed the vacuum again.

Yes, this worked for me too

diveschumi commented 6 months ago

This worked for me only for one time. The next time the card was not displayed again.

DeFlanko commented 6 months ago

This morning looks like i too now have this same issue -- the restart and disable and re-enable did not stick.

On Tue, Feb 27, 2024 at 6:34 AM diveschumi @.***> wrote:

This worked for me only for one time. The next time the card was not displayed again.

— Reply to this email directly, view it on GitHub https://github.com/denysdovhan/vacuum-card/issues/699#issuecomment-1966688127, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABH52MJL7QQ3XN346JORCB3YVXVHTAVCNFSM6AAAAABD3A2AJWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRWGY4DQMJSG4 . You are receiving this because you commented.Message ID: @.***>

-- Thanks, James

anders3408 commented 6 months ago

I restarted HA, disabled the Roomba, and re-enabled it and then the card displayed the vacuum again.

Doesn't change anything here sadly.

Veldkornet commented 6 months ago

I restarted HA, disabled the Roomba, and re-enabled it and then the card displayed the vacuum again.

Doesn't change anything here sadly.

Yeah, it has disappeared for me again

ethemcemozkan commented 6 months ago

For me the cards are only visible when vacuums are disabled(showing as unavailable), then after reenabling the vacuums cards are not visible

frontside76 commented 6 months ago

Same problem here. The card is empty since the 2024.2.4 Update.

RamonM77 commented 6 months ago

Same here after updating to 2024.2.4. After disabling/reenabling the integration the card is available, but after een brief period the card is empty again.

sebPomme commented 6 months ago

Just to say, same problem here 2024.2.4

JBenson74 commented 6 months ago

I'm having the same problem with ONE of two vacuums:

1) An iRobot Roomba 980, the same as the OP.
This machine does not show up in custom:vacuum-card since 2024.2.4 It appears like this in Developer Tools:

vacuum.roomba (State: docked)
battery_level: 30
battery_icon: mdi:battery-charging-20
software_version: v2.4.17-138
status: null
position: (208, -35, 8)
bin_present: true
bin_full: false
friendly_name: Roomba
supported_features: 13148

2) A Eufy G30 Hybrid: Provided by a custom integration.
This machine DOES still work with custom:vacuum-card:

vacuum.robovac
State: docked
fan_speed_list: Standard, Turbo, Max, Boost IQ
friendly_name: RoboVac
supported_features: 16252
battery_level: 100
battery_icon: mdi:battery-charging-100
cleaning_area: 43
cleaning_time: 5280
mode: Nosweep
friendly_name: RoboVac
supported_features: 16252
DeFlanko commented 6 months ago

@denysdovhan is what happening over in this issue/hotfix affecting this card? https://github.com/home-assistant/core/issues/111210

frontside76 commented 6 months ago

@denysdovhan is what happening over in this issue/hotfix affecting this card? home-assistant/core#111210

After last update 2024.2.4 Roomba and his entities are working again, but not the vaccuum card. The card is empty now.

MasterDevwi commented 6 months ago

+1, I'm unable to get the restart/disable/enable fix to work, but I've already restarted HA a few times.

DjRicko commented 6 months ago

Disable/Enable fixes it if you're quick to open the effected dashboard while it's still unavailable, then it'll show card untill you refresh dashboard again. Something broke in this update.

ristomatti commented 6 months ago

Can someone confirm if my changes on #702 will fix the issues to you as well? You can do that by temporarily using my fork ristomatti/vacuum-card by adding it to custom repositories. Just remember to change it back if/when the issue gets fixed here. :slightly_smiling_face:

tom3q commented 6 months ago

Can someone confirm if my changes on #702 will fix the issues to you as well? You can do that by temporarily using my fork ristomatti/vacuum-card by adding it to custom repositories. Just remember to change it back if/when the issue gets fixed here. 🙂

Worked for me. Thanks for the fix!

PetrP2B commented 6 months ago

Great job, thanks.

RamonM77 commented 6 months ago

That did the trick! Thanks 👍

kbarnes3 commented 6 months ago

This didn't work for me. My methodology was:

Are there any steps I'm missing?

ristomatti commented 6 months ago

@kbarnes3 Is the official vacuum card also loaded perhaps? Do you see any error on the devtools console? In my case it was pretty obvious:

    Uncaught (in promise) TypeError: Cannot read properties of null (reading 'toLowerCase')
        at qr.renderStatus (vacuum-card.js?hacstag=261291295280:4:14674)
        at qr.render (vacuum-card.js?hacstag=261291295280:4:17680)
        at qr.update (vacuum-card.js?hacstag=261291295280:1:15173)
        at qr.performUpdate (vacuum-card.js?hacstag=261291295280:1:6493)
        at qr.scheduleUpdate (vacuum-card.js?hacstag=261291295280:1:6140)
        at qr._$Ej (vacuum-card.js?hacstag=261291295280:1:6048)

I didn't try installing it manually, just went straight on creating a custom repo to see if the change worked. :grin:

kbarnes3 commented 6 months ago

@ristomatti You are right, it looks like I had some weird caching going on. I updated the cache-busting number at the end of the Dashboard Resources settings and now I'm getting the new version and things look good again!

Zackptg5 commented 6 months ago

I was having issues adding custom repo too. I just removed the original vacuum card and manually downloaded the one from the fork, working fine now

Ziris85 commented 6 months ago

Came looking for this very issue. Tried and confirmed that @ristomatti 's fork seems to resolve my issue (Roomba card empty, Shark card functional). Thank you! I see the Ukraine banner on this github project and notice that the original author doesn't appear to have been active for quite some time. Hopefully they're OK.

DeFlanko commented 6 months ago

Can someone confirm if my changes on #702 will fix the issues to you as well? You can do that by temporarily using my fork ristomatti/vacuum-card by adding it to custom repositories. Just remember to change it back if/when the issue gets fixed here. 🙂

Got it back Thanks Coach!

image

ristomatti commented 5 months ago

FYI @RamonM77 @petrepa @tom3q @Zackptg5 @DeFlanko @Ziris85 @kbarnes3, I can confirm this is now fixed with vacuum-card v2.8.1, please remove the custom repository. I'll keep it available for some time but eventually I'll delete it. Thank you for testing!