Forked from sindrebroch/ha-elvia, go buy them a coffee if you want to.
HomeAssistant-integration for Elvia
Firstly, the name of the integration has changed. There is a different Elvia integration available, so to avoid shadowing its name I've chosen to call this one "Elvia Grid Tariff".
Secondly, I tentatively have not much interest in improving this integration beyond small fixes to keep it working through Home Assistant-upgrades; which was the initial spark to fork this to begin with. I'm happy to receive help through PRs and issues to improve the integration though, and maybe that'll motivate me to improve it too. Ideally, sindrebroch returns at some point to merge the changes proposed already, then I'll probably delete this fork.
If others want to contribute to this, I could also transfer this to a GitHub organization to more easily manage maintainers and such, but we'll cross that bridge if we get there.
- Metering point id. (Målepunkt-ID, not Målernummer) Log into Elvia and find your ID.
- API-key. Sign up for GridTariffAPI at the Elvia developer portal. You may retreive the API key in your profile (the primary key should be sufficient).
- Token. Read how.
- The short of it is: log into Elvia, under "Andre tjenester" select "Tilganger".
- From there, select "Opprett token for målerverdier i API".
- Ensure that HACS is installed.
- Add this repository as a custom repository
- Search for and install the "Elvia Grid Tariff" integration.
- Restart Home Assistant.
- Add the
Elvia Grid Tariff
integration to Home Assistant from the Integrations page
- Download the
Source code (zip)
file from the latest release. - Unpack the release and copy the
custom_components/elvia_grid_tariff
directory into thecustom_components
directory of your Home Assistant installation. - Restart Home Assistant.
- Add the
Elvia Grid Tariff
integration to HA from the integration-page
- Energy price
- Daily tariff (array of hourly values for the day)
- Fixed price hourly
- Fixed price level
- Fixed price monthly
- Average max
- Current month
- Previous month
- Max hours [1, 2, 3]
- Current month
- StartTime (attribute)
- EndTime (attribute)
- Previous month
- StartTime (attribute)
- EndTime (attribute)
- Current month
If something is not working properly, logs might help with debugging. To turn on debug-logging add this to your configuration.yaml
logger:
default: info
logs:
custom_components.elvia: debug
Limited to 200 calls/hour/user. The integration normally polls once every hour.