HomeassistantAPI
Python Wrapper for Homeassistant's REST API
Installation
There are a variety of ways to install this wrapper.
Using pip from PYPI
$ pip install homeassistant_api
Using Source from GitHub
$ git clone https://github.com/GrandMoff100/HomeassistantAPI
$ cd HomeassistantAPI
$ python setup.py install
Usage
See example.py
import os
from homeassistant_api import Client
url = os.getenv('HOMEASSISTANT_API_ENDPOINT') # http://localhost:8123/api/
token = os.getenv('HOMEASSISTANT_TOKEN') # ey816najgfjassf...
client = Client(url, token)
servicedomains = client.get_services()
servicedomains.light.turn_off.trigger(entity_id='light.living_room') # Sends a request to turn off the living room light
Metadata
Release files for HomeAssistant-API 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| HomeAssistant API-0.0.2.tar.gz | 5.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| HomeAssistant_API-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.9 kB
Release files / HomeAssistant API-0.0.2.tar.gz
| Download URL | HomeAssistant API-0.0.2.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
85669ee48483256e0a8f44cab6b90604f8c07440a07d342bcb5299ddf57e8781
|
|
BLAKE2b-256 checksum How to use checksums |
52d4a74c3b703d3a3425e0e60f0aecdc123b58621fed8f31446c25b54f3c92c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.9.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.8.0 tqdm/4.59.0 CPython/3.8.8
|
Release files / HomeAssistant_API-0.0.2-py3-none-any.whl
| Download URL | HomeAssistant_API-0.0.2-py3-none-any.whl |
|---|---|
| Size | 11.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
652fc577c9b97910f771f5ce02d2377f34adb6345312b438f34b3e4170240ec7
|
|
BLAKE2b-256 checksum How to use checksums |
2f037f48e9bd7b1a2af1302d48e1c35efca88dd4464b31558e8a9dbb34e15aed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.9.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.8.0 tqdm/4.59.0 CPython/3.8.8
|