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!
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-3.0.3.post5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c582bbf96dbcd846dab3d48ccfe586785157fb021f3190c5cfdd1d1275d4bc52 |
|
MD5 | 4414ced868a58f75734a3cd621a939d8 |
|
BLAKE2b-256 | a28f301047f52753fdc7969e1e69d5b3267c87c73ecc11271d367e937f6d3163 |
Close
Hashes for HomeAssistant_API-3.0.3.post5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b1718d0de1cacf677934e4965a979017c0147e796098abc7a089d22dab26932 |
|
MD5 | 98cb81ee9f6f715927d6b421480bf27e |
|
BLAKE2b-256 | 360cd02bfd98ddbe079471b85e1fd04bd129633a94cd02334c9d7779ed21ed17 |