Python Wrapper for Homeassistant's REST API
Project description
HomeassistantAPI
Python wrapper for Homeassistant's REST API
Here is a quick example.
from homeassistant_api import Client
with Client(
'<API Server URL>',
'<Your Long Lived Access-Token>'
) as client:
light = client.get_domain("light")
light.turn_on(entity_id="light.living_room_lamp")
All the methods also support async!
Just prefix the method with async_
(i.e. await light.async_turn_on(...)
).
Documentation
All documentation, API reference, contribution guidelines and pretty much everything else you'd want to know is on our readthedocs site here
If there is something missing, open an issue and let us know! Thanks!
Go make some cool stuff! Maybe come back and tell us about it in a discussion? We'd love to hear about how you use our library!!
License
This project is under the GNU GPLv3 license, as defined by the Free Software Foundation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file homeassistant_api-4.2.2.post2.tar.gz
.
File metadata
- Download URL: homeassistant_api-4.2.2.post2.tar.gz
- Upload date:
- Size: 26.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f819abfade0ed8c604c39a034e04506fe7ff329dc2691852e799b3806e5a774 |
|
MD5 | 8a4fb427d5234ccaedcf3a8c8bee0bee |
|
BLAKE2b-256 | c614fa63c3af82be6bf753b23bdaf5b0603ee2adcac40547360aadff09e7ecc7 |
File details
Details for the file homeassistant_api-4.2.2.post2-py3-none-any.whl
.
File metadata
- Download URL: homeassistant_api-4.2.2.post2-py3-none-any.whl
- Upload date:
- Size: 33.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3f5f63526389ca036dc16b933516321b9d53c8441fc78057df3c8329040cec1 |
|
MD5 | 3977f8ef2604fa1187de63902dc037af |
|
BLAKE2b-256 | 0f0f4f19e44d56abea7865b5daaf97dacb8b1a89757d0e5cfdbf23e44791a586 |