A simple energy entity card for Home Assistant that connects with energy-date-selection
.
Use with other energy components to create your own bespoke energy dashboards.
Ensure the energy-date-selection
is added to the page. This can be added as a "Manual" card from the add card menu with the content type: energy-date-selection
.
You can then add as many custom:energy-entity-card
's to the page as your would like.
While designed for the energy dashboard, this card also works with any other entities that use home assistants long time history.
Your card config should look something like the below. Only the entity
and type
are required.
type: custom:energy-entity-card
name: Energy used
entity: sensor.grid_energy_used
unit: 'kWh'
- Navigate to your home assistants HACS tab and open the "Frontend" section
- Click the 3 dot menu in the top right hand corner.
- Select "Custom repositories"
- Enter
thybag/ha-energy-entity-card
as the repository, and lovelace as the category. - Press "Add"
- The
energy-entity-card
should now be available in HACS when you search for it. Install it and your done.
See the HACS Custom Repository page for fuill details.
- Copy
ha-energy-entity-card.js
to your/var/lib/hass/www
folder. - Click on
Edit Dashboard
,Manage resources
add/local/ha-energy-entity-card.js
asJavaScript Module
.