Home Assistant Python API
Project description
Home Assistant Web API Client for Python
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
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
hassapi-0.2.1.tar.gz
(8.2 kB
view hashes)
Built Distribution
hassapi-0.2.1-py3-none-any.whl
(10.7 kB
view hashes)