python library for accessing the openHAB REST API
Project description
python library for accessing the openHAB REST API
This library allows for easily accessing the openHAB REST API. A number of features are implemented but not all, this is work in progress.
Requirements
python 2.7.x / 3.5
python :: dateutil
python :: requests
Note on openHAB1:
Make sure to use the 1.x branch for openHAB1.x!
Installation
Install the latest version using pip:
pip install python-openhab
Example
Example usage of the library:
from openhab import openHAB
base_url = 'http://localhost:8080/rest'
openhab = openHAB(base_url)
# fetch all items
items = openhab.fetch_all_items()
sunset = items.get('Sunset')
print(sunset.state)
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
python-openhab-2.1.tar.gz
(5.7 kB
view details)
Built Distribution
File details
Details for the file python-openhab-2.1.tar.gz
.
File metadata
- Download URL: python-openhab-2.1.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f69f7aa52a7ab2c818019ff9ea89de1925ab54c4b31357afd86662e36bb9fe3c |
|
MD5 | 8625adcf58055e46658bcd54f3f565bc |
|
BLAKE2b-256 | 7de7c7885028b93417b6ea8d23fd41fd4aab44613a9b7a18cf45992d080f1194 |
File details
Details for the file python_openhab-2.1-py2.py3-none-any.whl
.
File metadata
- Download URL: python_openhab-2.1-py2.py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0ab7f5992827449f46a973f3165dc98e06b490f31fc7a49deb4d9181e56a387 |
|
MD5 | 3f78821003d2e46458fd1e0f80668995 |
|
BLAKE2b-256 | 7e9b0b1b79ce89466ca1dcbc7d810e961b1c58d2526e29a2ea5bd352537f361e |