Skip to main content

A Python3, async interface to the Hilo API

Project description

python-hilo

python-hilo (aka pyhilo) is a Python 3.9, asyncio-driven interface to the unofficial Hilo API from Hydro Quebec. This is meant to be integrated into Home Assistant.

Nothing is fully functional right now except for the PoC. Before this package, the Hilo API was returning all information via some REST calls. Since the end of 2021, Hilo has deprecated some of the endpoints including the ones that returns the status of the devices. This was replaced with a websocket system using Google Firebase.

Running the PoC

$ python -m virtualenv .venv
$ source .venv/bin/activate
$ pip install -r requirements.txt
$ cat << EOF > .env
export hilo_username="moi@gmail.com"
export hilo_password="secretpassword"
$ source .env
$ ./test.py

TODO

  • Creating device classes for each types and map similarly to HA
  • Light switches and dimmers
  • Gateway
  • Power Sensors
  • Hilo Challenge events
  • Type everything: almost done, got a few "type: ignore" to fix
  • Home Assistant component integration
  • Publish this package

Later?

  • Full docstrings and doc generation
  • Unit testing
  • Functional testing

If anyone wants to contribute, feel free to submit a PR. If you'd like to sync up first, you can fire me an email me@dvd.dev

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-hilo-2021.12.1.tar.gz (21.1 kB view hashes)

Uploaded Source

Built Distribution

python_hilo-2021.12.1-py3-none-any.whl (23.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page