Custom Integration for integrating Electricity Meter that use HAN / API.
The readings are approximately 2 minutes old when looking in Home Assistant.
For the moment there is only support for the Norwegian OSS-device used by Å Strøm.
(More updates will arrive)
Per time (temporary): the "token" and "meter id" needs to be extracted out after authenticated through the https://api.services.oss.no/swagger/index.html
(and yes, you need to have a registered email address from OSS that you are getting the authsecret on, that you need to use)
- "Authentication step 1: Start authentication procedure"
- "Authentication step 2: Complete authentication procedure"
- authid is result from step 1, and authSecret is coming to your email
- Now you need to "Authorize" with the token you got in step 2.
authorize is own button up to right above the list of commands
4: "Authentication step 3: Creates a new Public API token for this account"
- Suggesting to set "expires" to one year ahead.
- Suggesting to set "friendlyName" to "HomeAssistant"
- Take care of this encodedToken, you need it for the HomeAssistant as token. If you loose it, you have to create a new one
- Now you need to logout "Authorize". And ReAuthorize with the token you got in step 4.
- authorize is own button up to right above the list of commands
- "Get meters for an account"
- Read out the meterNumber from the result, you need it for the HomeAssistant.