Skip to main content

Python Wrapper for Homeassistant's REST API

Project description

HomeassistantAPI

Code Coverage PyPI - Downloads GitHub commits since latest release (by date including pre-releases) Read the Docs (version) GitHub release (latest by date)

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

homeassistant_api-4.2.2.post2.tar.gz (26.4 kB view details)

Uploaded Source

Built Distribution

homeassistant_api-4.2.2.post2-py3-none-any.whl (33.7 kB view details)

Uploaded Python 3

File details

Details for the file homeassistant_api-4.2.2.post2.tar.gz.

File metadata

File hashes

Hashes for homeassistant_api-4.2.2.post2.tar.gz
Algorithm Hash digest
SHA256 8f819abfade0ed8c604c39a034e04506fe7ff329dc2691852e799b3806e5a774
MD5 8a4fb427d5234ccaedcf3a8c8bee0bee
BLAKE2b-256 c614fa63c3af82be6bf753b23bdaf5b0603ee2adcac40547360aadff09e7ecc7

See more details on using hashes here.

File details

Details for the file homeassistant_api-4.2.2.post2-py3-none-any.whl.

File metadata

File hashes

Hashes for homeassistant_api-4.2.2.post2-py3-none-any.whl
Algorithm Hash digest
SHA256 b3f5f63526389ca036dc16b933516321b9d53c8441fc78057df3c8329040cec1
MD5 3977f8ef2604fa1187de63902dc037af
BLAKE2b-256 0f0f4f19e44d56abea7865b5daaf97dacb8b1a89757d0e5cfdbf23e44791a586

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page