Skip to main content

Home Assistant Python API

Project description

Home Assistant Web API Client for Python

PyPI - Downloads

Examples

from hassapi import Hass

hass = Hass(hassurl="http://IP_ADDRESS:8123/", token="YOUR_HASS_TOKEN")

hass.turn_on("light.bedroom_light")
hass.run_script("good_morning")

# If you want to bypass certificate verification. Default set to True
hass = Hass(hassurl="http://IP_ADDRESS:8123/", token="YOUR_HASS_TOKEN", verify=False)

Installation

pip install hassapi

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

hassapi-0.2.1.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

hassapi-0.2.1-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file hassapi-0.2.1.tar.gz.

File metadata

  • Download URL: hassapi-0.2.1.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for hassapi-0.2.1.tar.gz
Algorithm Hash digest
SHA256 4d5b84bd872492c4bd8d1ef001d870c08b196a204e4b4ba854f2ccbde355a0fa
MD5 6bdce084749daf23970b144b2a23b28f
BLAKE2b-256 43b4d22041485eefd6079f0e95a5ebd8a3cf97920e176b053af88b85ad05a30c

See more details on using hashes here.

File details

Details for the file hassapi-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: hassapi-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for hassapi-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9632e90940029faec360e801b21ce02adb3ca11a87066d62f24011d8fabc916f
MD5 ef15f231ec4fd7b551fa09bd07685fb3
BLAKE2b-256 5b860d83aed480fc562a0ef0eac74a95c429bbf252255e3c3cf9713cd64b0e58

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