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

Card is very sensitive to incorrect or unavailable states #34

Open
LilSlippinJimmy opened this issue Sep 6, 2023 · 3 comments
Open
Labels
bug Something isn't working

Comments

@LilSlippinJimmy
Copy link

LilSlippinJimmy commented Sep 6, 2023

I installed the card using the HACS method, and can see it's added the javascript module into the resources page. However,
when I copy and paste the example config into a manual card configuration, I get an error of 'Cannot read properties of undefined (reading 'state')' I've modified the lux_dongle id to match mine.
Is there something I'm doing wrong?

image

@DanteWinters
Copy link
Owner

Hi @Reddax. Unfortunately v1.0.0 is a little unstable when it comes to the states.
My guess is that it's struggling to read one of the entity states, or a state is unavailable (I'll add some measures so the card doesn't fall over the whole time). So you used the full example config except for the dongle? Do you have the 'energy_allocations' entities added?
If you can, please open HA on a PC browser and open the debug console (F12 on most windows browsers), and look for an error there. Should be one indicating which file is giving the issue, I can use that to trace back to where the error is

@LilSlippinJimmy
Copy link
Author

I just gave it another try and it worked right away. I'll keep an eye and if the errors pops back up i'll get the error from the browser debug console.

@DanteWinters
Copy link
Owner

Glad it's working. I'm keeping this issue open (going to rename though) to remind myself to add better check for these things.

@DanteWinters DanteWinters added the bug Something isn't working label Sep 6, 2023
@DanteWinters DanteWinters changed the title Cannot add card Card is very sensitive to incorrect or unavailable states Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants