custom-cards / bar-card

Customizable Animated Bar card for Home Assistant Lovelace
MIT License
378 stars 54 forks source link

Entities are shown as missing during loading #96

Closed chemelli74 closed 3 years ago

chemelli74 commented 4 years ago

Hi, please review this comment to make the card compliant with the new load system:

0.111.0 Brother says entity doesn't exist during lovelace loading

Simone

Gluwc commented 4 years ago

Are you sure the entities are actually available? I don't think this is related to this card.

chemelli74 commented 4 years ago

Are you sure the entities are actually available? I don't think this is related to this card.

Yes, after 1 minute from the restart, they works fine. If you review the comment above, a dev pointed out a specific line of your code to be updated for the new HA behavior.

Thx,

Simone

Gluwc commented 4 years ago

The line in the code just points to the error it displays. There's not much I can do if the entity doesn't exist in Home Assistant.

chemelli74 commented 4 years ago

The line in the code just points to the error it displays. There's not much I can do if the entity doesn't exist in Home Assistant.

I'll try to explain better.

Entities exists and works fine, once loading is complete.

During HA load since a few version, there is a new load mechanism that shows the message" Home Assitant is starting, not everything may be available yet" on all entities until the corresponding integration is loaded" (see Neato in the screenshot below).

image

Same happens on Brother if I put those in a entities built-in card.

Unfortunately the new mechanism is not handled by for bar-card and it shows that the entity is missing as you can see in the screenshot above.

An HA core dev pointed out that your code should be updated to the new behavior.

Hope I explained clearly now, if not feel free to ask for more details.

Simone

chemelli74 commented 4 years ago

Any news ?

chemelli74 commented 4 years ago

Did you get time to check this issue ?

Simone

Gluwc commented 4 years ago

I'm very sorry but I currently don't have time to work on this.

chemelli74 commented 3 years ago

@Gluwc, do you think you can take a look ? ;-)

Thx

Simone

chemelli74 commented 3 years ago

@Gluwc do you mind checking this line of code: https://github.com/custom-cards/bar-card/blob/3bf47962bf4e1985c90cffe5a0358d0592ce707b/src/bar-card.ts#L129

Seems a easy solution after all ;-)

Simone

chemelli74 commented 3 years ago

@Gluwc, are you still maintaining this card ?

Thx in advance for your feedback.

Simone

chemelli74 commented 3 years ago

Closing, not maintained. Repo should be marked as "archived".

Simone