A client for the HausMon monitoring service
Project description
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.
Installation
Install the package:
pip install hausmon_client
Configuration
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.
Use
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'])
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
Built Distribution
Hashes for hausmon_client-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe93fb17eabf2510d6c4d4cdf88bf7747639e83b2471ffc6be0aa91f95a1bba1 |
|
MD5 | 7742ffeee72203e024662bc7ee8daab3 |
|
BLAKE2b-256 | c7a2476250b6eaa843884ccc0766c0ef8f6b47720e49e81246f0151318ddf063 |