tvandelagemaat / homeassistant-greenchoice

This is a Home Assistant custom component that connects to the Greenchoice API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Home Assistant Greenchoice Sensor

hacs_badge

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.

Install:

  1. Place the 'greenchoice' folder in your 'custom_compontents' directory if it exists or create a new one under your config directory.
  2. Add your username and password to the secrets.yaml:
greenchoicepass: your_secret_password
greenchoiceuser: your@user.name
  1. Restart Home Assistant to make it load the integration.
  2. 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

About

This is a Home Assistant custom component that connects to the Greenchoice API

License:MIT License


Languages

Language:Python 100.0%