MichelMichels.DobissSharp 0.9.0-alpha

This is a prerelease version of MichelMichels.DobissSharp.
dotnet add package MichelMichels.DobissSharp --version 0.9.0-alpha                
NuGet\Install-Package MichelMichels.DobissSharp -Version 0.9.0-alpha                
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="MichelMichels.DobissSharp" Version="0.9.0-alpha" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MichelMichels.DobissSharp --version 0.9.0-alpha                
#r "nuget: MichelMichels.DobissSharp, 0.9.0-alpha"                
#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.
// Install MichelMichels.DobissSharp as a Cake Addin
#addin nuget:?package=MichelMichels.DobissSharp&version=0.9.0-alpha&prerelease

// Install MichelMichels.DobissSharp as a Cake Tool
#tool nuget:?package=MichelMichels.DobissSharp&version=0.9.0-alpha&prerelease                

DobissSharp 📦

DobissSharp is a C# .NET wrapper for the domotics system Dobiss NXT. It contains a REST api wrapper (MichelMichels.DobissSharp.Api) and an opiniated C# library which consumes previous wrapper (MichelMichels.DobissSharp).

<details> <summary>Table of Contents</summary>

</details>


Prerequisites

Installation

[!WARNING] Package MichelMichels.DobissSharp is in development and is subject to breaking changes. Use this at own risk.

Package name Version Description
MichelMichels.DobissSharp.Api NuGet Version Reference implementation of the REST API
MichelMichels.DobissSharp NuGet Version Opiniated C# class library

Get the NuGet packages from nuget.org or search for MichelMichels.DobissSharp in the GUI package manager in Visual Studio.

You can also use the cli of the package manager with following command:

Install-Package MichelMichels.DobissSharp.Api
Install-Package MichelMichels.DobissSharp

Usage

MichelMichels.DobissSharp.Api

Creating the API client:

DobissClientOptions options = new()
{
    BaseUrl = @"http://dobiss.local/",
    SecretKey = "your-secret-api-key",
};
DobissClient apiClient = new(options);

Calls:

// Discover
DiscoverResponse response = await apiClient.Discover();

// Status
StatusResponse response = await apiClient.Status();

// Action
ActionRequest body = new()
{
    AddressId = 0,
    ChannelId = 12,
    ActionId = ActionId.Toggle,
};
ActionResponse response = await apiClient.Action(body);

MichelMichels.DobissSharp

Creating the service:

// See previous code example for creating the API client
DobissService dobiss = new(apiClient);

See the interface IDobissService for more information. This is still in development and subject to breaking changes.

Documentation

Visit the API documentation page of Dobiss NXT for more in-depth information about the API.

Credits

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. 
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.9.0-alpha 47 5/2/2024

- Release 0.9.0-alpha