Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sindrebroch/ha-elvia

Custom components for HomeAssistant to fetch grid-rent
https://github.com/sindrebroch/ha-elvia

elvia hacs home-assistant

Last synced: about 2 months ago
JSON representation

Custom components for HomeAssistant to fetch grid-rent

Awesome Lists containing this project

README

        

# Elvia for HomeAssistant

![GitHub release (latest by date)](https://img.shields.io/github/v/release/sindrebroch/ha-elvia?style=flat-square)
[![hacs_badge](https://img.shields.io/badge/HACS-Custom-41BDF5.svg)](https://github.com/hacs/integration)

[!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/sindrebroch)

HomeAssistant-integration for Elvia

## Requirements

- Metering point id. (Målepunkt-ID, not Målernummer) Log into [Elvia](https://www.elvia.no/minside) and find your ID.
- API-key. Sign up for GridTariffAPI at [Elvia developer portal](https://elvia.portal.azure-api.net/) and you will receive an API-key via email. See [API-doc](https://assets.ctfassets.net/jbub5thfds15/1mF3J3xVf9400SDuwkChUC/a069a61a0257ba8c950432000bdefef3/Elvia_GridTariffAPI_for_smart_house_purposes_v1_1_20210212.doc.pdf) for more info.
- Token. [Read how](https://www.elvia.no/smart-forbruk/alt-om-din-strommaler/api-for-malerverdier-tilgjengelig-i-pilot-na/)

## Installation

HACS (Recommended)

1. Ensure that [HACS](https://hacs.xyz/) is installed.
2. Add this repository as a custom repository
3. Search for and install the "Elvia" integration.
4. Restart Home Assistant.
5. Add the `Elvia` integration to HA from the integration-page

Manual installation

1. Download the `Source code (zip)` file from the
[latest release](https://github.com/sindrebroch/ha-elvia/releases/latest).
2. Unpack the release and copy the `custom_components/elvia` directory
into the `custom_components` directory of your Home Assistant
installation.
3. Restart Home Assistant.
4. Add the `Elvia` integration to HA from the integration-page

## Sensors
- 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)

## Debugging
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
```

## API limitations
Limited to 200 calls/hour/user. The integration normally polls once every hour.

## Inspiration
https://github.com/uphillbattle/NettleieElvia