pyfritzhome
Fritz!Box Smarthome Python Library
Decision gist · record as of 2026-08-14
Yes, if you own a Fritz!Box and need programmatic control or monitoring of its smart home devices. The library is actively maintained, has low install friction, carries a permissive MIT license, and supports modern Python versions. No known security vulnerabilities. The main prerequisite is having a Fritz!Box device and configuring a user account with smarthome rights.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a Fritz!Box device on the network and a user account configured in the device's web interface with smarthome access rights.
- Low install friction with only two runtime dependencies (requests and cryptography).
- Actively maintained as of 2026-02-22 with recent releases.
License · maintenance · safety
MIT (permissive) — MIT license permits free use, modification, and distribution with minimal restrictions—suitable for both personal and commercial projects.
last release 2026-02-22 (173 days) · last repo commit 2026-02-22 · 58 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 76,194 downloads/mo, #14,649 on PyPI
Alternatives
Verify before relying
pip install pyfritzhome
from pyfritzhome import FritzHome
fh = FritzHome(host='fritz.box', user='smarthome', password='smarthome')
fh.get_devices()- Whether the library supports all Fritz!Box models beyond those explicitly listed in the description.
- Current Python version support floor (requires_python field is unspecified in metadata).
- Whether the package includes async/await support for concurrent device operations.
What it is and what it does
pyfritzhome is a Python client library for controlling and monitoring AVM Fritz!Box home automation devices over HTTP. It wraps the Fritz!Box AHA HTTP interface to let you query and control smart home actors like thermostats, power switches, door/window sensors, and smart plugs connected to your Fritz!Box. The library handles authentication, device enumeration, and state queries, exposing device properties such as temperature, battery level, switch state, and power consumption.
You interact with it by creating a FritzHome connection object with your Fritz!Box hostname and credentials, then calling methods to list devices or read their state. It includes both a Python API and a command-line tool (fritzhome) for scripting or manual queries. The package depends on requests for HTTP communication and cryptography for secure credential handling.
Use it for
- Monitor room temperatures from multiple Comet DECT or FRITZ!DECT thermostats in a home automation dashboard.
- Automate heating schedules by querying thermostat state and adjusting comfort/eco targets programmatically.
- Track power consumption from FRITZ!DECT 200 switches and smart plugs for energy auditing.
- Build alerts when door/window sensors report open state or battery levels drop below a threshold.
- Script bulk operations on device groups (e.g., set all living room thermostats to a target temperature).
- Integrate Fritz!Box device data into a broader home automation or monitoring system via Python.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you own a Fritz!Box and need programmatic control or monitoring of its smart home devices.
The library is actively maintained, has low install friction, carries a permissive MIT license, and supports modern Python versions. No known security vulnerabilities. The main prerequisite is having a Fritz!Box device and configuring a user account with smarthome rights.
Install
pyfritzhome on PyPI
Before you install
Low install friction with only two runtime dependencies (requests and cryptography). Actively maintained as of 2026-02-22 with recent releases.
Requires a Fritz!Box device on the network and a user account configured in the device's web interface with smarthome access rights.
License in practice
MIT license permits free use, modification, and distribution with minimal restrictions—suitable for both personal and commercial projects.
Quickstart
pip install pyfritzhome
from pyfritzhome import FritzHome
fh = FritzHome(host='fritz.box', user='smarthome', password='smarthome')
fh.get_devices()
Verify before relying
- Whether the library supports all Fritz!Box models beyond those explicitly listed in the description.
- Current Python version support floor (requires_python field is unspecified in metadata).
- Whether the package includes async/await support for concurrent device operations.
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesrequestscryptography |
| Maintenance | Actively maintained 173 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 76,194 / month, #14,649 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPy |
Evidence: pyfritzhome-0.6.20-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “fritzbox smart home control”
- pyfritzhomeProvides Python access to AVM Fritz!Box home automation devices and…
- fritzconnectionCommunicate with AVM FRITZ!Box routers via TR-064 and HTTP…
- python-kasaControl TP-Link Kasa and Tapo smart home devices (plugs, switches,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Monitoring packages
Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.
Provides generated Python code for OpenTelemetry semantic conventions, enabling standardized attribute naming and constant definitions for instrumentation and telemetry collection.
Install it if you are using OpenTelemetry and want to follow semantic conventions correctly.
Provides the reference implementation of the OpenTelemetry API for collecting and exporting traces, metrics, and logs from Python applications.
Provides the abstract API and interfaces for OpenTelemetry instrumentation in Python, defining how to emit traces, metrics, and logs without tying code to a specific SDK implementation.
Exports OpenTelemetry observability data to an OpenTelemetry Collector using Protobuf-encoded messages over HTTP.
Install it if you are using OpenTelemetry in Python and need to send data to a Collector over HTTP.
Provides automatic instrumentation commands and programmatic APIs to inject distributed tracing into Python applications without code changes, detecting and instrumenting packages used by your program.
Install it if you need distributed tracing without code changes and have compatible instrumented packages in your environment.
See also fritzconnection · jaraco.abode · python-ecobee-api · maxcube-api · PyViCare · pyswitchbee · homematicip · boschshcpy · nexia · yalexs