/ha-frontend

Frontend for Home Assistant with custom energy dashboard ammortization calculation

Primary LanguageTypeScriptOtherNOASSERTION

Home Assistant Frontend

This is a fork of the the official Home Assistant frontend.
It adds (wip) additional information to the energy dashboard sources card (hui-energy-sources-table-card.ts source).

Potential amortization visualization:

HA_energy_amortization_sketch

Additional info highlighted:

HA_energy_amortization_sketch_hl

Calculations

Type Based on Calculation
Solar* import price (kWh consumed) * (import price)
consumed by the house not produced by the panels
(battery charged does not count as consumed)
Battery discharged import price (kWh discharged) * (import price)
Battery charged export price (kWh charged) * (export price)
From grid - Nothing is saved when buying from the grid
To grid export price cost * -1 or (kWh sold to grid) * (export price) * -1
Total amortization export and import Sum of the rows above
  • export:Profit per kWh when sold to the grid
  • import:Price per kWh when bought from grid

* Not sure yet if it's possible to calculate which solar source was consumed by what amount. If not, the total amortization will just be split proportionally according to the produced energy amounts.


Forked readme starts here

Development

  • Initial setup: script/setup
  • Development: Instructions
  • Production build: script/build_frontend
  • Gallery: cd gallery && script/develop_gallery
  • Supervisor: Instructions

Frontend development

Classic environment

A complete guide can be found at the following link. It describes a short guide for the build of project.

License

Home Assistant is open-source and Apache 2 licensed. Feel free to browse the repository, learn and reuse parts in your own projects.

We use BrowserStack to test Home Assistant on a large variety of devices.