Introduction
Fiblary is a Python module wrapping Fibaro Home Center REST API. This allows Python programs to make calls directly to Home Center and control the Z-wave devices and run scenes managed by HC. It also provides access and methods to variables, users, room and sections defined on Home Center.
Installation
Current fiblary module is provided as PyPi package. To install on a unix based system use pip:
pip install fiblary
Basic usage
The main client object contains several managers controlling a basic functions of HC:
Sections,
Rooms,
Info,
Weather,
Variables,
Scenes,
Devices,
Events
and more.
It’s easiest to to get some basic information about the Home Center:
from fiblary.client import Client
# Connect to Home Center
hc = Client('v3', 'http://192.168.1.1/api/', 'admin', 'admin')
# Retrieve the basic info as returned by /api/info
info = hc.info.get()
print(info)
will produce the similar output as below:
{u'batteryLowNotification': True, u'temperatureUnit': u'C', u'updateStableAvailable': False, u'sunsetHour': u'16:29',
u'softVersion': u'3.580', u'newestBetaVersion': u'3.581', u'serialNumber': u'HC2-000666', u'sunriseHour': u'07:24',
u'beta': False, u'defaultLanguage': u'pl', u'mac': u'38:60:77:92:bf:a5', u'serverStatus': 1390148753, u'hotelMode': True,
u'updateBetaAvailable': True, u'zwaveVersion': u'3.42'}
The returned info behaves like a dictionary:
print info['softVersion']
but also like a property:
print info.softVersion
Easy, eh?
For the managers that Client supports the full set of options is implemented.
Please refer to the example code attached to the project.
License
Copyright (c) 2014 Klaudiusz Staniek
Apache License Version 2.0 http://www.apache.org/licenses/LICENSE-2.0
Metadata
Release files for fiblary3 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| fiblary3-0.1.8.tar.gz | 35.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fiblary3-0.1.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 103.6 kB
Release files / fiblary3-0.1.8.tar.gz
| Download URL | fiblary3-0.1.8.tar.gz |
|---|---|
| Size | 35.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ab666088d1996e1cc510ff91c9ff00ac14c7304d327d478ad948b3ea0c27668e
|
|
BLAKE2b-256 checksum How to use checksums |
344e2973cdc798927c647d0cda82451232a1141a988eadaa93e7e99dc2b9b375
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.6
|
Release files / fiblary3-0.1.8-py3-none-any.whl
| Download URL | fiblary3-0.1.8-py3-none-any.whl |
|---|---|
| Size | 68.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0363cf2d82edacdcf1103d88db96141649c98e027d4c4cad3bd36021e50e6a92
|
|
BLAKE2b-256 checksum How to use checksums |
00b9d87f26946a88316aca963883a85f41f5d370d15aa4539ce3b4fdf9554efd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.6
|
Security for fiblary3 0.1.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.