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 details)
Built Distribution
hassapi-0.2.1-py3-none-any.whl
(10.7 kB
view details)
File details
Details for the file hassapi-0.2.1.tar.gz
.
File metadata
- Download URL: hassapi-0.2.1.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d5b84bd872492c4bd8d1ef001d870c08b196a204e4b4ba854f2ccbde355a0fa |
|
MD5 | 6bdce084749daf23970b144b2a23b28f |
|
BLAKE2b-256 | 43b4d22041485eefd6079f0e95a5ebd8a3cf97920e176b053af88b85ad05a30c |
File details
Details for the file hassapi-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: hassapi-0.2.1-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9632e90940029faec360e801b21ce02adb3ca11a87066d62f24011d8fabc916f |
|
MD5 | ef15f231ec4fd7b551fa09bd07685fb3 |
|
BLAKE2b-256 | 5b860d83aed480fc562a0ef0eac74a95c429bbf252255e3c3cf9713cd64b0e58 |