Simple API to access fibaro home center from any Python 3 script. Designed for Home Assistant (but not only)
Project description
pyfibaro
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
Getting started
- Fork this repository
- Enter the following link in your browser:
vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=<your github repository url>
- 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
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
Built Distribution
File details
Details for the file pyfibaro-0.8.0.tar.gz
.
File metadata
- Download URL: pyfibaro-0.8.0.tar.gz
- Upload date:
- Size: 16.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e89f6999c6738b471695f647dc0f6a9e172f5d895141009773d0608c70cbe6c |
|
MD5 | 3c64ae11254cac63f585c255d298749d |
|
BLAKE2b-256 | 181854f1a7c5dd05bdcdaf71c648e49bcd8ba7a5e20a4933a8f5f51cd21dff0e |
File details
Details for the file pyfibaro-0.8.0-py3-none-any.whl
.
File metadata
- Download URL: pyfibaro-0.8.0-py3-none-any.whl
- Upload date:
- Size: 14.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7847c41d2a92aa75af263cc5ae55869c780a8cb3714206451dccbd7d59a991f |
|
MD5 | 96593508e604ad1827d3ba12020df278 |
|
BLAKE2b-256 | 1dac77c1879a2335758693d76f603d9cfdc491547d98a78a0fef026bc757b461 |