This is a Home Assistant custom component (sensor) that connects to the Greenchoice API to retrieve current usage data (daily meter data).
The sensor will check every hour if a new reading can be retrieved but Greenchoice practically only gives us one reading a day over this API. The reading is also delayed by 1 or 2 days (this seems to vary). The sensor will give you the date of the reading as an attribute.
- Place the 'greenchoice' folder in your 'custom_compontents' directory if it exists or create a new one under your config directory.
- Add your username and password to the secrets.yaml:
greenchoicepass: your_secret_password
greenchoiceuser: your@user.name
- Restart Home Assistant to make it load the integration.
- Finally add the component to your configuration.yaml, an example of a proper config entry:
sensor:
- platform: greenchoice
name: meterstanden
password: !secret greenchoicepass
username: !secret greenchoiceuser