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

Feature Request: Support for HACS

Open carldebilly opened this issue 5 years ago • 14 comments

It would be nice to be able to install this lovelace extension through HACS...

carldebilly avatar Sep 10 '19 01:09 carldebilly

More info here

royto avatar Sep 23 '19 11:09 royto

@royto 404

carldebilly avatar Nov 01 '19 13:11 carldebilly

The URL has changed. Here the right one : https://hacs.netlify.com/docs/publish/start

royto avatar Nov 01 '19 14:11 royto

+1

marine1988 avatar Nov 04 '19 22:11 marine1988

+1

VooZ2 avatar Dec 26 '19 20:12 VooZ2

+1

janjbrand avatar Jan 10 '20 21:01 janjbrand

100%

johntdyer avatar Feb 03 '20 01:02 johntdyer

+1

fortepc avatar Feb 26 '20 22:02 fortepc

yes, please

jasonwilk avatar Mar 02 '20 14:03 jasonwilk

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

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

This is how I defined the card:

entities:
  - type: 'custom:battery-entity'
    entity: sensor.side_door_battery_level
  - type: 'custom:battery-entity'
    entity: sensor.kids_battery_level
  - type: 'custom:battery-entity'
    entity: sensor.master_battery_level
show_header_toggle: false
title: batteries
type: entities

chilicheech avatar Mar 09 '20 03:03 chilicheech

Try this header:

resources:
  - type: module
    url: /community_plugin/lovelace-battery-entity/battery-entity.js

And like this for the card:

type: vertical-stack
title: Battery Levels
cards:
  - type: 'custom:battery-entity'
    entity: sensor.back_yard_door_7_battery_level   
  - type: 'custom:battery-entity'
     entity: sensor.basement_door_123_battery_level

jhanson999 avatar Mar 09 '20 14:03 jhanson999

Where do I put the header? I'm configuring via the UI... I don't have a yml config file for it...

chilicheech avatar Mar 09 '20 14:03 chilicheech

Where do I put the header? I'm configuring via the UI... I don't have a yml config file for it...

When editing lovelace. click the three dots in the corner again and you should see "Raw configuration editor" which takes you to a "virtual" yaml, put it in here and click save.

jhanson999 avatar Mar 09 '20 15:03 jhanson999

Ah cool, that worked. But, shouldn't just installing the plugin do this for me automatically? I installed the airvisual plugin and it seems like it added the resource automatically...

chilicheech avatar Mar 09 '20 23:03 chilicheech