Skip to content

Custom components for HomeAssistant to fetch grid-rent

Notifications You must be signed in to change notification settings

sindrebroch/ha-elvia

Repository files navigation

Elvia for HomeAssistant

GitHub release (latest by date) hacs_badge

"Buy Me A Coffee"

HomeAssistant-integration for Elvia

Requirements

  • Metering point id. (Målepunkt-ID, not Målernummer) Log into Elvia and find your ID.
  • API-key. Sign up for GridTariffAPI at Elvia developer portal and you will receive an API-key via email. See API-doc for more info.
  • Token. Read how

Installation

HACS (Recommended)
  1. Ensure that HACS 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.
  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