Skip to main content

Home Center API Python Library - forked version

Project description

Please note: this is a fork of pbalogh77/fiblary which I’m maintaining since the upstream repo has been inactive for some time.

The main aim of the fork is to re-enable working tests and maintain basic hygiene for use by the Home Assistant component, not to add lots of new features.

- @graham33

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

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

fiblary3-fork-0.1.10.tar.gz (37.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fiblary3_fork-0.1.10-py3-none-any.whl (68.8 kB view details)

Uploaded Python 3

File details

Details for the file fiblary3-fork-0.1.10.tar.gz.

File metadata

  • Download URL: fiblary3-fork-0.1.10.tar.gz
  • Upload date:
  • Size: 37.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for fiblary3-fork-0.1.10.tar.gz
Algorithm Hash digest
SHA256 329469028d41d972ad18bd51c0ba9809b7fd195e0d51fc4486fe340d9e1d1f5a
MD5 8ede5284a93d5851680068466bb5294d
BLAKE2b-256 a20dc223514b5493d315e38010f38c8f9a3c7e1b0635614640e4bdbaefc70a4a

See more details on using hashes here.

File details

Details for the file fiblary3_fork-0.1.10-py3-none-any.whl.

File metadata

  • Download URL: fiblary3_fork-0.1.10-py3-none-any.whl
  • Upload date:
  • Size: 68.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for fiblary3_fork-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 fbfc9f78d312340f5807aa1f63e1fb6357b70498b61c3dbb6ed9597433d4a8e3
MD5 a99fd9fff451fb24d15614f8ea100828
BLAKE2b-256 5658941bc1d47cad5051a8d5774b55bdfd78b7d075117f0b249a6f630c126e17

See more details on using hashes here.

Supported by

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