Skip to main content

HomGar API client

Project description

HomGar API client library

PyPI version

The purpose of this library is to programmatically control, and retrieve the layout and current values of devices in the HomGar app.

The current primary focus of this project is to retrieve sensor values of RainPoint Smart+ devices so they can be integrated into HomeAssistant.

Current state of the project

Proof-of-concept: you can retrieve the layout of devices in your homes and their current values

Supported devices

  • RainPoint Smart+ Irrigation Display Hub (HWS019WRF-V2)
  • RainPoint Smart+ 2-Zone Water Timer (HTV213FRF)
  • RainPoint Smart+ Soil&Moisture Sensor (HCS021FRF)
  • RainPoint Smart+ High Precision Rain Sensor (HCS012ARF)
  • RainPoint Smart+ Outdoor Air Humidity Sensor (HCS014ARF)

How to use

This library is not meant to be used by itself; rather it is meant to be integrated in projects like HomeAssistant.

However, if you really want to, you can run it commandline to see that it works. To do so:

  1. Install:
pip install homgarapi
  1. Create a file config.yml containing:
email: "<your HomGar login address>"
password: "<your HomGar password>"
  1. Run it:
python -m homgarapi config.yml

This commandline tool will cache your access token in a file cache.pickle in a platform-specific user cache directory.

Caveats

Logging in via this API will log you out in the app. It is advisable to create a separate API account from the app:

  1. Log out from your main account
  2. Create a new account
  3. Log out and back into your main account
  4. Invite your new account from 'Me' → 'Home management' → your home → 'Members'
  5. Log out and back into your new account
  6. Accept the invite

To-do

  1. Support token renewal such that we don't have to store the password. I haven't been able to trigger token renewal in the app so I can sniff which endpoint it uses.
  2. Create a HomeAssistant integration that uses this library
  3. Support all RainPoint Smart+ devices. I only have a select few to test with (see "Supported devices").
  4. Investigate the meaning of currently unknown status values
  5. Add support for controlling devices via the API

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

homgarapi-0.0.3.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

homgarapi-0.0.3-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file homgarapi-0.0.3.tar.gz.

File metadata

  • Download URL: homgarapi-0.0.3.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for homgarapi-0.0.3.tar.gz
Algorithm Hash digest
SHA256 e5779507f5d7d8db8e2e49030e768e6eea6aba66e8fdba49aa55ab6477938715
MD5 b5229ce75fe1d82c2da4f9493d765055
BLAKE2b-256 868c4cdb5ed543aaa19d59ce3eb51527d259bca3b4cc54f3e2759df482317ec6

See more details on using hashes here.

File details

Details for the file homgarapi-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: homgarapi-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for homgarapi-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 29d883588796e7cbd931154eb3dde93e9ae8736ddd0ff494e555bb973f5c3339
MD5 2d3db4e0930a581f3bca683c31679f22
BLAKE2b-256 f42c4991d62a92cf2aa0a38b79ce93f990baeca823548c85efe87d466adb4712

See more details on using hashes here.

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