SmartHome.SDK.Fibaro 0.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package SmartHome.SDK.Fibaro --version 0.1.0
                    
NuGet\Install-Package SmartHome.SDK.Fibaro -Version 0.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SmartHome.SDK.Fibaro" Version="0.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SmartHome.SDK.Fibaro" Version="0.1.0" />
                    
Directory.Packages.props
<PackageReference Include="SmartHome.SDK.Fibaro" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SmartHome.SDK.Fibaro --version 0.1.0
                    
#r "nuget: SmartHome.SDK.Fibaro, 0.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SmartHome.SDK.Fibaro@0.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SmartHome.SDK.Fibaro&version=0.1.0
                    
Install as a Cake Addin
#tool nuget:?package=SmartHome.SDK.Fibaro&version=0.1.0
                    
Install as a Cake Tool

SmartHome.SDK.Fibaro

A lightweight .NET client SDK for Fibaro/Home Center REST API.

Install

NuGet package name: SmartHome.SDK.Fibaro

Install-Package SmartHome.SDK.Fibaro

Quickstart

using Microsoft.Extensions.DependencyInjection;
using SmartHome.SDK.Fibaro.Interfaces;
using SmartHome.SDK.Fibaro.Services;

var services = new ServiceCollection();

// Option A: Bearer token
services.AddFibaroClient(o =>
{
    o.BaseAddress = new Uri("https://your-home-center/api/");
    o.AccessToken = "<token>";
});

// Option B: Basic auth
// services.AddFibaroClient(o =>
// {
//     o.BaseAddress = new Uri("https://your-home-center/api/");
//     o.Username = "apiuser";
//     o.Password = "apipass";
// });

var provider = services.BuildServiceProvider();
var client = provider.GetRequiredService<IFibaroClient>();

var devices = await client.GetDevicesAsync();
await client.ExecuteActionAsync(123, "turnOn");

Features

  • HttpClient-based, DI-friendly typed client
  • Authentication: Bearer token or Basic
  • Error handling with FibaroApiException (status code + payload)
  • Models mapped with System.Text.Json

API Surface

  • Task<IReadOnlyList<Device>> GetDevicesAsync(CancellationToken ct = default)
  • Task ExecuteActionAsync(int deviceId, string action, object? parameters = null, CancellationToken ct = default)

Testing

Project includes xUnit + Moq tests. To run:

# From repo root
Dotnet restore
Dotnet build -c Release
Dotnet test .\tests\SmartHome.SDK.Fibaro.Tests\SmartHome.SDK.Fibaro.Tests.csproj -c Release

Packaging

Pack the library (README and XML docs included):

Dotnet pack .\SmartHome.SDK.Fibaro.csproj -c Release

CI/CD

This repo includes a GitHub Actions workflow to build/test on push and publish on version tags. Configure the secret NUGET_API_KEY in your repository settings.

License

MIT

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.3.1 105 9/13/2025
0.3.0 100 9/13/2025
0.2.4 60 9/12/2025
0.2.3 129 9/9/2025
0.2.2 142 9/7/2025
0.2.1 137 9/7/2025
0.2.0 138 9/7/2025
0.1.0 140 9/7/2025