Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
sadiq81 opened this issue Apr 20, 2023 · 14 comments
Assignees
Labels
documentation Improvements or additions to documentation Needs Feedback Something needs clarification or a response is expected

Comments

@sadiq81
Copy link

sadiq81 commented Apr 20, 2023

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

@sadiq81 sadiq81 added the bug Something isn't working label Apr 20, 2023
@DigiLive
Copy link
Collaborator

DigiLive commented Apr 20, 2023

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:

  • Using UI:
    Settings → Dashboards → More Options icon (3 dots) → Resources → Add Resource →
    Set Url to /hacsfiles/mushroom-strategy/mushroom-strategy.js
    Set Resourcetype to JavaScript-module.

    Note: If you do not see the Resources menu, you will need to enable Advanced Mode in your User Profile

  • Using YAML:
    Add following code to lovelace section.

    resources:
        - url: /hacsfiles/mushroom-strategy/mushroom-strategy.js
          type: module

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

Also clear the cache of you client.

@sadiq81
Copy link
Author

sadiq81 commented Apr 20, 2023

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

@sadiq81 sadiq81 closed this as completed Apr 20, 2023
@DigiLive
Copy link
Collaborator

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 ?

@DigiLive DigiLive added the documentation Improvements or additions to documentation label Apr 20, 2023
@AalianKhan
Copy link
Owner

AalianKhan commented Apr 20, 2023

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

@sadiq81
Copy link
Author

sadiq81 commented Apr 20, 2023

I don't think so.

@AalianKhan
Copy link
Owner

I see, did you try reinstalling it?

@DigiLive
Copy link
Collaborator

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.

@DigiLive DigiLive removed the bug Something isn't working label Apr 20, 2023
@RichardPar
Copy link

RichardPar commented Jun 7, 2023

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
Copy link
Collaborator

Any thoughts on this @AalianKhan ?

@DigiLive DigiLive reopened this Jun 14, 2023
@AalianKhan
Copy link
Owner

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
Copy link

RichardPar commented Jun 15, 2023 via email

@DigiLive
Copy link
Collaborator

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.

@DigiLive DigiLive added the Needs Feedback Something needs clarification or a response is expected label Jun 24, 2023
@RichardPar
Copy link

RichardPar commented Jun 24, 2023

Thanks!

This seems to work :D Now to play some more

image

@DigiLive
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation Needs Feedback Something needs clarification or a response is expected
Projects
None yet
Development

No branches or pull requests

4 participants