Theodicean.UnfoldedCircle.Server 0.0.19

There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Theodicean.UnfoldedCircle.Server --version 0.0.19
                    
NuGet\Install-Package Theodicean.UnfoldedCircle.Server -Version 0.0.19
                    
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="Theodicean.UnfoldedCircle.Server" Version="0.0.19" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Theodicean.UnfoldedCircle.Server" Version="0.0.19" />
                    
Directory.Packages.props
<PackageReference Include="Theodicean.UnfoldedCircle.Server" />
                    
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 Theodicean.UnfoldedCircle.Server --version 0.0.19
                    
#r "nuget: Theodicean.UnfoldedCircle.Server, 0.0.19"
                    
#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 Theodicean.UnfoldedCircle.Server@0.0.19
                    
#: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=Theodicean.UnfoldedCircle.Server&version=0.0.19
                    
Install as a Cake Addin
#tool nuget:?package=Theodicean.UnfoldedCircle.Server&version=0.0.19
                    
Install as a Cake Tool

Theodicean.UnfoldedCircle

Release CI Sonar Quality Gate Qodana Version

ASP.NET SDK for hosting integration drivers for the Unfolded Circle Remotes.

Features

  • mDNS broadcasting for discovery on remotes
  • Configuration handling
  • Event broadcasting
  • Multiple entities in the same instance
  • Climate Media Player, Remote, Select and Sensor entity support
  • Strongly typed models
  • NativeAOT and trimming friendly
  • Can be used for applications installed on a remote or on a server

Limitations

  • Button, Switch, Cover, Light, IR-Emitter and Voice Assistant are not yet supported

Requirements

  • dotnet 10 SDK

Install

  • Package (project using the generator):
    • Add a PackageReference to Theodicean.UnfoldedCircle.Server

    • Example csproj snippet:

      <ItemGroup>
        <PackageReference Include="Theodicean.UnfoldedCircle.Server" Version="x.y.z" />
      </ItemGroup>
      

Usage

Start by adding a driver.json file in the root of your server project. See here for documentation on the file format. You must make sure that the file is copied as part of the publishing process.

The integration requires that you implement a few abstract classes and register them in your Program.cs:

  • UnfoldedCircle.Server.Configuration.ConfigurationService<TGlobalConfiguration, TConfigurationItem> - Handles configuration for the integration.
  • UnfoldedCircle.Server.WebSocket.UnfoldedCircleWebSocketHandler<TMediaPlayerCommandId, TGlobalConfiguration, TConfigurationItem> - Handles requests and events from and to the remotes.

Implement the abstract methods to work with your entities and configuration. You can use unfoldedcircle-oppo as a reference implementation.

In your Program.cs, you can register the services like this:

builder.AddUnfoldedCircleServer<CustomWebSocketHandler, CustomConfigurationService, CustomGlobalConfiguration, CustomConfigurationItem>();

...
app.UseUnfoldedCircleServer<CustomWebSocketHandler, CustomGlobalConfiguration, CustomConfigurationItem>();

// Or if you want to use custom media player command ids (where CustomCommandId is an enum and must have the members defined in `MediaPlayerCommandId`):
builder.AddUnfoldedCircleServer<CustomWebSocketHandler, CustomCommandId, CustomConfigurationService, CustomGlobalConfiguration, CustomConfigurationItem>();

...
app.UseUnfoldedCircleServer<CustomWebSocketHandler, CustomCommandId, CustomGlobalConfiguration, CustomConfigurationItem>();

Customization

You can customize some of the behavior of the integration by using the configureOptions overload when registering via AddUnfoldedCircleServer.

builder.AddUnfoldedCircleServer<CustomWebSocketHandler, CustomConfigurationService, CustomGlobalConfiguration, CustomConfigurationItem>(options =>
{
    // Disable the prefixes for identifiers (e.g. "REMOTE:"). This is useful if you already have an integration driver and want to start using this SDK.
    DisableEntityIdPrefixing = true,

    // Override the default port (UC_INTEGRATION_HTTP_PORT environment variable takes precedence)
    ListeningPort = 4242,

    // Allows you to override the deserializer used for different message events.
    MessageEventDeserializeOverrides = new Dictionary<MessageEvent, JsonTypeInfo>
    {
        [MessageEvent.Connect] = CustomJsonSerializerContext.Default.ConnectEvent
    }
}

Note

If you're publishing with NativeAOT, you must add the following to your server's .csproj file to ensure the appsettings.json and driver.json are included in the output:

<PropertyGroup>
    <IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract>
    <ExcludeFromSingleFile>appsettings.json</ExcludeFromSingleFile>
    <ExcludeFromSingleFile>driver.json</ExcludeFromSingleFile>
</PropertyGroup>
Product Compatible and additional computed target framework versions.
.NET 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.0.20-pre009 283 10/29/2026
0.0.20-pre008 127 10/29/2026
0.0.20-pre007 199 10/26/2026
0.0.20-pre006 255 10/15/2026
0.0.20-pre005 160 10/14/2026
0.0.20-pre004 100 10/14/2026
0.0.20-pre003 89 10/14/2026
0.0.20-pre002 97 10/14/2026
0.0.20-pre001 215 10/7/2026
0.0.19 572 9/9/2026
0.0.18 262 8/31/2026
0.0.17-pre05 151 8/31/2026
0.0.17-pre04 136 8/31/2026
0.0.17-pre03 128 8/31/2026
0.0.17-pre02 185 8/30/2026
0.0.17-pre01 115 8/30/2026
0.0.16 503 8/11/2026
0.0.15 230 8/10/2026
0.0.14 228 8/7/2026
Loading failed