Skip to main content

A library for interfacing with Hubitat via its Maker API

Project description


This library provides an async Python interface for Hubitat Elevation’s Maker API. It is primarily intended for use with Home Assistant.


The main public API in hubitatmaker is the Hub class. This class represents a Maker API instance on a Hubitat hub. When started, a Hub instance will determine the Hubitat hub's MAC address and and download a list of available devices and details about each device.

The Hub instance caches state information about each device. It relies on events posted from the Hubitat hub to update its internal state. Each Hub instance starts a new event listener server to receive events from the hub, and updates the Maker API instance with an accessible URL for this listener server.

Basic usage

import asyncio
from hubitatmaker import Hub

async def print_devices(host, app_id, token):
	hub = Hub(host, app_id, token)
	await hub.start()
	for device in hub.devices:
		print(f"{} ({})")

if __name__ == '__main__':
	host = ''
	app_id = '1234'
	token = '<apitoken>', app_id, token))

Project details

Download files

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

Files for hubitatmaker, version 0.2.5
Filename, size File type Python version Upload date Hashes
Filename, size hubitatmaker-0.2.5-py3-none-any.whl (11.7 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size hubitatmaker-0.2.5.tar.gz (9.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page