A client for the HausMon monitoring service
A thin wrapper for the HausNet monitoring service, a.k.a HausMon, in Python. HausMon is a simple monitoring service for home automation networks, e.g. a home controlled by Home Assistant.
Install the package:
pip install hausmon_client
First, create an account at HausNet. Then, define a device to represent your home automation controller. Also, locate your authentication token from your account. You'll need the device name and the token to use the library.
The library provides access to a device's heartbeat monitor. I.e. it enables your home control system to, at a fixed interval, let the monitor know it is still alive. The heartbeat monitor should not be called more often than every 15 minutes.
from hausmon_client.client import HausMonClient API_URL = "[Hausmon API URL]" API_TOKEN = "[token from HausMon user account]" DEVICE_NAME = "[device name at HausMon]" client = HausMonClient(API_URL, API_TOKEN) heartbeat = self._client.get_heartbeat(DEVICE_NAME) client.send_heartbeat(heartbeat['id'])
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for hausmon_client-0.0.6-py3-none-any.whl