lovelace-battery-entity icon indicating copy to clipboard operation
lovelace-battery-entity copied to clipboard

Home Assistant 0.106 breaks battery card

Open stalakerob opened this issue 5 years ago • 26 comments
trafficstars

Battery card not working under HASS 0.106

stalakerob avatar Feb 27 '20 08:02 stalakerob

Yes. I have the same problem after upgraded to Hass 0.106. The card disappeared. Hic.

teddythanh avatar Feb 27 '20 15:02 teddythanh

Same problem here. After upgraded to 0.106 the card disappeared.

jhbcosta avatar Feb 27 '20 16:02 jhbcosta

Yes, not working under HA 0.106

Andrey1One avatar Feb 28 '20 09:02 Andrey1One

Есть такая проблема

ostap414 avatar Feb 28 '20 11:02 ostap414

Same here, but shares a view with another card and it took it out as well. The entire view is now blank.

mattlward avatar Feb 28 '20 23:02 mattlward

The problem was fixed by the mini-chart developer which seemed to suffer the same issue: https://github.com/kalkih/mini-graph-card/tree/0.106.x-compatibility

borland502 avatar Feb 29 '20 18:02 borland502

Change line 64 from this._config = config; to this._config = JSON.parse(JSON.stringify(config));

jarnose avatar Mar 01 '20 14:03 jarnose

created pull request: https://github.com/cbulock/lovelace-battery-entity/pull/15

liri avatar Mar 01 '20 14:03 liri

Change line 64 from this._config = config; to this._config = JSON.parse(JSON.stringify(config));

It didn't help.The card doesn't work.

ostap414 avatar Mar 01 '20 16:03 ostap414

Change line 64 This don't help me too

Andrey1One avatar Mar 01 '20 16:03 Andrey1One

It did solve the problem on my instance..

liri avatar Mar 01 '20 19:03 liri

Change line 64 This don't help me too

It didn't work for me also.

teddythanh avatar Mar 02 '20 03:03 teddythanh

Did you try cleaning your cache or change the js file version in the url you have inside lovelace.yaml?

liri avatar Mar 02 '20 04:03 liri

The cache is cleaned. The version is 0.1.Not change.

ostap414 avatar Mar 02 '20 06:03 ostap414

01 The Configurator doesn't like this line 110

ostap414 avatar Mar 02 '20 06:03 ostap414

Yes, not working under HA 0.106

runnerfanspb avatar Mar 02 '20 07:03 runnerfanspb

Change line 64 from this._config = config; to this._config = JSON.parse(JSON.stringify(config));

This fixed it for me.

thehijacker avatar Mar 02 '20 13:03 thehijacker

Re-recorded again.Everything worked.

ostap414 avatar Mar 02 '20 17:03 ostap414

Re-recorded again.Everything worked.

Sorry but what you mean "re-recorded"? :) How you fixed it? Thank you :)

teddythanh avatar Mar 03 '20 02:03 teddythanh

Deleted and created the card again

Re-recorded again.Everything worked.

Sorry but what you mean "re-recorded"? :) How you fixed it? Thank you :)

Deleted and created the card again

ostap414 avatar Mar 03 '20 04:03 ostap414

Finally I fixed it. Beside changing the code of line 64, we need to move the file battery-entity.js into www/community folder. Then change the yaml code in your ui-lovelace.yaml as below and it will work again.

resources:
   - url: /community_plugin/battery-entity.js?v=0.2
     type: module

teddythanh avatar Mar 04 '20 09:03 teddythanh

Finally I fixed it. Beside changing the code of line 64, we need to move the file battery-entity.js into www/community folder. Then change the yaml code in your ui-lovelace.yaml as below and it will work again.

resources:
   - url: /community_plugin/battery-entity.js?v=0.2
     type: module

After updating 106.5 ,the card does not work

ostap414 avatar Mar 04 '20 18:03 ostap414

I just installed it using HACS and I'm getting this error:

Custom element doesn't exist: battery-entity.
type: 'custom:battery-entity'
entity: sensor.side_door_battery_level

chilicheech avatar Mar 09 '20 03:03 chilicheech

The card seems to break the complete page when multiple entities are included. A single entity however doesn't break the page, but does show a part of the problem. The border is missing when a single entity is shown. Hope this helps you to find a solution for this issue.

Example: battery-card

RamonM77 avatar Mar 10 '20 13:03 RamonM77

Agreed, I am unable to add a secondary sensor as well. Also, install does not place the correct entry in the lovelace config.

mattlward avatar Mar 10 '20 15:03 mattlward

I've also tried this on Home Assistant 0.106.6, and the resource didn't get added to lovelace when clicking this:

2020-03-12 14_11_07-Home Assistant

I have had to manually add this:

  - type: module
    url: /hacsfiles/lovelace-battery-entity/battery-entity.js

and once I did, it all worked!

richard-scott avatar Mar 12 '20 14:03 richard-scott