N4S4 / hassapi

Home Assistant Python API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Home Assistant Web API Client for Python

PyPI - Downloads

Examples

from hassapi import Hass

hass = Hass(hassurl="http://IP_ADDRESS:8123/", token="YOUR_HASS_TOKEN")

hass.turn_on("light.bedroom_light")
hass.run_script("good_morning")

# If you want to bypass certificate verification. Default set to True
hass = Hass(hassurl="http://IP_ADDRESS:8123/", token="YOUR_HASS_TOKEN", verify=False)

Installation

pip install hassapi

About

Home Assistant Python API

License:MIT License


Languages

Language:Python 100.0%