HDFury API Client
An asynchronous Python client for communicating with HDFury devices via their HTTP API. This lightweight library provides methods for fetching device information, configuration, and issuing control commands such as reboot, hotplug, and mode changes.
Features
- Asynchronous communication using
aiohttp - Fetch device information and configuration
- Issue control commands (reboot, hotplug, relay, mute, etc.)
- Built-in error handling for connection and parsing failures
- Designed for easy integration into automation tools or async workflows
Requirements
- Python 3.11+
aiohttplibrary
Usage Example
import asyncio
from hdfury import HDFuryAPI, HDFuryError
async def main():
client = HDFuryAPI("192.168.1.100") # Replace with your device IP
try:
info = await client.get_info()
print("Device Info:", info)
board = await client.get_board()
print("Board Info:", board)
config = await client.get_config()
print("Configuration:", config)
# Example command: reboot the device
await client.issue_reboot()
print("Reboot command sent!")
except HDFuryError as err:
print(f"Error communicating with HDFury device: {err}")
finally:
await client.close()
asyncio.run(main())
API Reference
Class: HDFuryAPI
Initialization
HDFuryAPI(host: str, session: aiohttp.ClientSession | None = None)
- host – IP address or hostname of the HDFury device.
- session (optional) – existing
aiohttp.ClientSessionto reuse.
Fetch Methods
| Method | Description |
|---|---|
get_board() |
Get board information (/ssi/brdinfo.ssi) |
get_info() |
Get general device info (/ssi/infopage.ssi) |
get_config() |
Get configuration data (/ssi/confpage.ssi) and CEC data (if provided) (/ssi/cecpage.ssi) |
Command Methods
| Method | Description |
|---|---|
issue_reboot() |
Reboot the device |
issue_hotplug() |
Trigger HDMI hotplug |
set_operation_mode(mode) |
Set device operation mode |
set_port_selection(tx0, tx1) |
Set HDMI input routing for TX0/TX1 |
set_auto_switch_inputs(state) |
Toggle auto input switching |
set_htpc_mode_rx0(state) → set_htpc_mode_rx3(state) |
Enable/disable HTPC mode per input |
set_mute_tx0_audio(state) → set_mute_tx1_audio(state) |
Mute/unmute TX audio |
set_audio_unmute(value) |
Set SINK audio unmute delay (milliseconds) |
set_earc_unmute(value) |
Set eARC audio unmute delay (milliseconds) |
set_tx0_force_5v(state) → set_tx1_force_5v(state) |
Force +5V output on TX ports |
set_oled(state) |
Enable/disable OLED display |
set_oled_fade(value) |
Set OLED fade timeout (seconds) |
set_oled_page(value) |
Set OLED display page |
set_ir_active(state) |
Enable/disable IR receiver |
set_ir_code_set(value) |
Set IR code set |
set_relay(state) |
Enable/disable relay state |
set_cec(state) |
Enable/disable global CEC |
set_cec_rx0(state) → set_cec_rx3(state) |
Enable/disable CEC per input |
set_reboot_timer(value) |
Set reboot timer (hours) |
set_ip_interrupt(state) |
Enable/disable IP interrupt |
set_tcp_port(value) |
Set TCP port number |
Cleanup
await client.close()
Closes any open HTTP sessions.
Exception Handling
All exceptions inherit from HDFuryError.
| Exception | Description |
|---|---|
HDFuryError |
Base exception for the HDFury client |
HDFuryConnectionError |
Connection-related errors (timeouts, bad responses, etc.) |
HDFuryParseError |
Raised when JSON decoding fails |
Constants
OPERATION_MODES
Defined in const.py, this dictionary maps known operation mode identifiers to their human-readable descriptions.
from hdfury import OPERATION_MODES
for mode, description in OPERATION_MODES.items():
print(f"{mode}: {description}")
| Key | Description |
|---|---|
"0" |
Mode 0 - Splitter TX0/TX1 FRL5 VRR |
"1" |
Mode 1 - Splitter TX0/TX1 UPSCALE FRL5 |
"2" |
Mode 2 - Matrix TMDS |
"3" |
Mode 3 - Matrix FRL→TMDS |
"4" |
Mode 4 - Matrix DOWNSCALE |
"5" |
Mode 5 - Matrix RX0:FRL5 + RX1-3:TMDS |
These can be used to display or interpret the current operating mode returned by the device.
TX0_INPUT_PORTS
Maps available TX0 input port IDs to human-readable labels.
from hdfury import TX0_INPUT_PORTS
print(TX0_INPUT_PORTS["1"]) # Output: Input 1
| Key | Description |
|---|---|
"0" |
Input 0 |
"1" |
Input 1 |
"2" |
Input 2 |
"3" |
Input 3 |
"4" |
Copy TX1 |
TX1_INPUT_PORTS
Maps available TX1 input port IDs to human-readable labels.
from hdfury import TX1_INPUT_PORTS
print(TX1_INPUT_PORTS["3"]) # Output: Input 3
| Key | Description |
|---|---|
"0" |
Input 0 |
"1" |
Input 1 |
"2" |
Input 2 |
"3" |
Input 3 |
"4" |
Copy TX0 |
OLED_PAGES
Maps OLED page identifiers to their human-readable descriptions.
from hdfury import OLED_PAGES
print(OLED_PAGES["0"]) # Output: Info
| Key | Description |
|---|---|
"0" |
Info |
"1" |
IP |
"2" |
RX Info |
"3" |
HDR 1 |
"4" |
HDR 2 |
"5" |
IP Info |
License
MIT
Metadata
Release files for hdfury 1.7.0
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 | Actions |
|---|---|---|---|---|
| hdfury-1.7.0.tar.gz | 9.7 kB | With provenance | Details for hdfury-1.7.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hdfury-1.7.0-py3-none-any.whl | Python 3 | none | any | Details for hdfury-1.7.0-py3-none-any.whl |
Total release size: 16.7 kB
Release files / hdfury-1.7.0.tar.gz
| Download URL | hdfury-1.7.0.tar.gz |
|---|---|
| Size | 9.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
beed14167d13367c054226b9d2acc076605bc1e1f79b4546c7d284e5b3beb5e0
|
|
BLAKE2b-256 checksum How to use checksums |
b48afae6c1c9805ebd6794d507156dea4b69371965e8e5d23333c02c44e86614
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logRelease files / hdfury-1.7.0-py3-none-any.whl
| Download URL | hdfury-1.7.0-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2a949f7a9e21cce365772d3cbbc36cc85cdcb8d65685b406223502cbab98b265
|
|
BLAKE2b-256 checksum How to use checksums |
3d652cd8b65ec94a4c8228a82ffcbcef0545b09854b33583f4e1472c8018757b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logSecurity for hdfury 1.7.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for hdfury-1.7.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logA 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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.