Skip to main content

Simple API to access fibaro home center from any Python 3 script. Designed for Home Assistant (but not only)

Project description

pyfibaro

license pypi package python version

This project has no relation to the fibaro company.

Simple API to access fibaro home center from Python 3. For more detailed information about the API see

Home center 2 / Home center lite

Home center 3 / Home center 3 lite / Yubii Home

The Zooz Z-Box Hub is powered as well by Software from Fibaro and supports currently the same API. This means that the pyfibaro library as well supports the Zooz Z-Box Hub (this support is untested as there is no public API documentation about the Zooz Z-Box Hub).

The pyfibaro library was created for integrating the fibaro home center with home assistant but can be used also in other projects.

Install

To install pyfibaro simply type

pip install pyfibaro

Authentication

All endpoints of the fibaro home center except info and login status needs an authenticated user. Just create a user in the fibaro home center with enough rights.

Development

Easiest way to start developing is to use Visual Studio Code + devcontainer.

Prerequisites

Docker

Visual Studio code

Getting started

  1. Fork this repository
  2. Enter the following link in your browser: vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=<your github repository url>
  3. When Visual Studio Code asks if you want to install the Remote extension, click "Install".

For additional information about Visual Studio Code + devcontainer learn more about devcontainers.

Testing

Run the script

script/test

This will run all unit tests with code coverage enabled.

Usage

client = FibaroClient("http://192.168.1.2/api/")
client.set_authentication("your_fibaro_username", "your_fibaro_password")
client.connect()

devices = client.read_devices()
for device in devices:
    print(f"Device {device.fibaro_id}: {device.name}")

devices[10].execute_action("turnOn")

See folder examples for additional examples.

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

pyfibaro-0.8.2.tar.gz (20.4 kB view details)

Uploaded Source

Built Distribution

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

pyfibaro-0.8.2-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

Details for the file pyfibaro-0.8.2.tar.gz.

File metadata

  • Download URL: pyfibaro-0.8.2.tar.gz
  • Upload date:
  • Size: 20.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for pyfibaro-0.8.2.tar.gz
Algorithm Hash digest
SHA256 96d73d0f7e3eb223ad47b757c7bc5e6c68815e7f59a9a46c9db1d0ef43031a6d
MD5 e87c27bea07871a4aab121ec5d0405f8
BLAKE2b-256 685179cf071bb6f785b8b8cd8195f07a39dea2361f6f7f53c81575e134502e73

See more details on using hashes here.

File details

Details for the file pyfibaro-0.8.2-py3-none-any.whl.

File metadata

  • Download URL: pyfibaro-0.8.2-py3-none-any.whl
  • Upload date:
  • Size: 18.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for pyfibaro-0.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5fabb68576c85f6080a67e120b79724dd7da07c455e90bc51ce834e550bbaaf6
MD5 ac48542d1d66e7e4f504911d321fa954
BLAKE2b-256 4b9f18d5a5504014fbfbeafdc8d47694940b20ef738040990829595c4efab673

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