Indogermane/FritzAPI
SmartHome API for AVM FRITZ!Boxes - written in C#
- C# 99.4%
- Dockerfile 0.6%
FRITZ!Box Smart Home API
Finally, a simple, intuitive C# wrapper implementing a RESTful API for the AVM FRITZ!Box Smart Home TR-064 interface. Control switches, thermostats and more from your applications.
Features
- Authenticate and retrieve SID
- Discover and list all Smart Home devices
- Query device states (e.g. power, temperature, on/off status)
- Toggle switches on/off
- Read and set thermostat temperatures and schedules
Requirements
- .NET Runtime 9 or later
- FritzBox with TR-064 (Smart Home) enabled
- Username and password for FritzBox web interface with permission to the Smart Home
Installation
# Clone the repository:
git clone https://codeberg.org/Indogermane/FritzAPI.git
cd FritzAPI
# Create appsettings.json from the example and adjust it for your needs
cp appsettings.example.json appsettings.json
# Build in Release mode:
dotnet build -c Release
# Run the application:
dotnet ./FritzAPI.dll