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
Close
Hashes for homeassistant_api-4.2.2.post1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2234c2d6774f38451d000b6c63edc0b7b7693c7d766fe527198c20a1d6e30ee5 |
|
MD5 | 08fb4c926168c06dc8480a381c33b383 |
|
BLAKE2b-256 | 40bedcb66f705ad136aac75e671e8f36d25f88e4a93e96c7b48df91c9b6b2c92 |
Close
Hashes for homeassistant_api-4.2.2.post1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0bfb9c53788f5932dbf961785ceb4cebfca0073872553a2890b611f734f5a82a |
|
MD5 | 73087036540af72f5e4af3d5d3141703 |
|
BLAKE2b-256 | 2e305e70b67214614a42d3d77378a1f79444e3e11852eeee1c90d897f3064b32 |