AalianKhan / mushroom-strategy

A strategy to automatically generate a dashboard using mushroom cards
MIT License
396 stars 38 forks source link

Error: Timeout waiting for strategy element ll-strategy-mushroom-strategy to be registered #15

Closed sadiq81 closed 1 year ago

sadiq81 commented 1 year ago

Describe the bug No UI elements is presented, only an error message after a short loading period

To Reproduce Steps to reproduce the behavior:

  1. Install via HACS
  2. Restart
  3. Create dashboard
  4. Open dashboard

Expected behavior Dashboard is showing like in the video.

Screenshots &

Additional context N/A

DigiLive commented 1 year ago

Is the library added to Home Assistant as a dashboard resource?

Add reference to mushroom-strategy.js in Dashboard. There's two way to do that:

Use /local/mushroom-strategy.js as url if you followed the manual installation instructions.

Also clear the cache of you client.

sadiq81 commented 1 year ago

Thank you very much, I thought it was handled during installation.

DigiLive commented 1 year ago

Your welcome, I'm glad it worked out for you.

I'll have to admit these instructions in the readme aren't very clear at the moment since they are mentioned under manual installation.

@AalianKhan Can you update the readme in PR #7 ?

AalianKhan commented 1 year ago

@sadiq81 Did you happen to see a Not loaded header in HACS at all? example

sadiq81 commented 1 year ago

I don't think so.

AalianKhan commented 1 year ago

I see, did you try reinstalling it?

DigiLive commented 1 year ago

I did a check myself by uninstalling the repository and installing it again. The dashboard resources where updated both times.

Let's hope this was a one-time quirk of HACS. But we can still add it to the readme as a hint.

RichardPar commented 1 year ago

Also having the issue... It worked a few times. Cleared caches - installed from HACS too many times.. It worked briefly - when I hid entities so they are not shown, hell broke lose. Even restoring the entities didnt bring it back


    Error: Timeout waiting for strategy element ll-strategy-mushroom-strategy to be registered
strategy:
  type: custom:mushroom-strategy
views: []

image HACS shows its loaded

DigiLive commented 1 year ago

Any thoughts on this @AalianKhan ?

AalianKhan commented 1 year ago

This mainly happens when the resource isn't loaded. Instructions on how to explicitly declare the resource are here

@RichardPar Are you still having this issue?

RichardPar commented 1 year ago

yep...

I had it running once ... I have re-installed so many times I lost count. I disappointingly gave up

Richard

On Thu, 15 Jun 2023 at 01:11, Aalian Khan @.***> wrote:

This mainly happens when the resource isn't loaded. Instructions on how to explicitly declare the resource are here https://github.com/AalianKhan/mushroom-strategy/issues/15#issuecomment-1515864915

@RichardPar https://github.com/RichardPar Are you still having this issue?

— Reply to this email directly, view it on GitHub https://github.com/AalianKhan/mushroom-strategy/issues/15#issuecomment-1592149786, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI234PFIVAKWWLYZLTXEXTXLJHMDANCNFSM6AAAAAAXFAY57Q . You are receiving this because you were mentioned.Message ID: @.***>

DigiLive commented 1 year ago

I've created a pre-release which you could try. @RichardPar Any feedback would be appreciated.

Otherwise this issue will be closed for being fixed or stale.

RichardPar commented 1 year ago

Thanks!

This seems to work :D Now to play some more

image

DigiLive commented 1 year ago

Awesome. Keep in mind it's still an alpha release, so it's not fully tested. Closing this issue for now. Feel free to open any new issue when needed.