DanteWinters / lux-power-distribution-card

Lovelace card for Home Assistant to replicate the power flow on the LuxpowerTek App and website.
MIT License
25 stars 6 forks source link

Get a entity is undefined error #35

Closed Richspr closed 1 year ago

Richspr commented 1 year ago

Hi I can't seem to get this new code working the code for the card is below: I have taken out the dongle number. I only have one inverter. In the previous card I didn't use the energy allocations so have not been including that code when setting up the new one. But still get the error the entity is undefined. Not an expert on code so any suggestion would be appreciated. Thanks Richard

type: custom:lux-power-distribution-card inverter_count: 1 battery_soc: entities:

DanteWinters commented 1 year ago

Hi @Richspr Can you please send a screenshot of the config? I just want make the formatting is correct as these configs are sensitive to indentation.

Unfortunately the new version of the card is sensitive to everything not being perfect, I'm working on a fix to be more description when it encounters an issue

Richspr commented 1 year ago

Hi DW, thanks for the reply, can I clarify which is the config you want my to send. R.

Richspr commented 1 year ago

HI DW attached should be a screen shot of the config

Luxcard config

DanteWinters commented 1 year ago

You said you weren't using the energy allocations, right? Then you need to remove the energy_allocations config and the entities. Remove lines 42 to 47. Let me know if the error still persists.

Richspr commented 1 year ago

Hi DW, I did that try that but will give it another go, and see if it solves the issue. Thanks R.

DanteWinters commented 1 year ago

Try removing it an clearing the browser cache? Hit F12 while the browser is open, right-click on the refresh button and it should open a menu where you can select clear cache and hard reload. If you right-click on the refresh button but no options show up, just click on refresh once and try right-clicking again

Richspr commented 1 year ago

HI DW, thanks for the info, please to report that we are now seeing the card. Thanks again for your time Regards Richard