HaKafkaNet 11.3.0

Prefix Reserved
dotnet add package HaKafkaNet --version 11.3.0
                    
NuGet\Install-Package HaKafkaNet -Version 11.3.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="HaKafkaNet" Version="11.3.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="HaKafkaNet" Version="11.3.0" />
                    
Directory.Packages.props
<PackageReference Include="HaKafkaNet" />
                    
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 HaKafkaNet --version 11.3.0
                    
#r "nuget: HaKafkaNet, 11.3.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 HaKafkaNet@11.3.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=HaKafkaNet&version=11.3.0
                    
Install as a Cake Addin
#tool nuget:?package=HaKafkaNet&version=11.3.0
                    
Install as a Cake Tool

HaKafkaNet

A framework for creating Home Assistant automations in .NET and C#.

Kafka ensures automations are durable and state is restored between restarts.

It was created with the following goals:

  • Create Home Assistant automations in .NET / C# with abilities to:
    • track/retrieve states of all entities in Home Assistant
    • respond to Home Assistant state changes
    • call Home Assistant RESTful services
  • Enable all automation code to be fully testable with automated tests

Why ha-kafka-net ?

Example

Example of multiple durable automations. See Tutorial for more examples.

registrar.TryRegister(
    _factory.SunRiseAutomation(
        cancelToken => _api.TurnOff("light.night_light", cancelToken)),
    _factory.SunSetAutomation(
        cancelToken => _api.TurnOn("light.night_light", cancelToken),
        TimeSpan.FromMinutes(-10))
);

See Documentation for full details.

Product Compatible and additional computed target framework versions.
.NET 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 was computed.  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 (1)

Showing the top 1 NuGet packages that depend on HaKafkaNet:

Package Downloads
HaKafkaNet.TestHarness

A library containing test helpers for HaKafkaNet.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.3.0 227 6/8/2025
11.2.0 107 5/3/2025
11.1.4 240 1/13/2025
11.1.3 236 1/4/2025
11.1.2 160 1/1/2025
11.1.1 129 12/31/2024
11.1.0 147 12/31/2024
11.0.0 161 12/27/2024
10.2.2 148 12/19/2024
10.2.1 185 12/7/2024
10.2.0 126 11/29/2024
10.1.1 123 11/21/2024
10.1.0 143 11/10/2024
10.0.2 140 10/27/2024
10.0.1 128 10/26/2024
10.0.0 146 10/25/2024
9.2.2 165 10/13/2024
9.2.1 146 10/12/2024
9.2.0 166 10/12/2024
9.1.0 147 10/5/2024
9.0.1 180 9/27/2024
9.0.0-beta 134 9/27/2024
8.1.1 156 9/7/2024
8.1.0 167 9/1/2024
8.0.0 142 8/10/2024
7.1.3 150 7/7/2024
7.1.2 153 6/22/2024
7.0.0 151 6/19/2024
6.1.2 169 6/8/2024
6.1.1 175 5/5/2024
6.1.0 187 4/17/2024
6.0.0 169 4/12/2024
5.5.5 141 4/10/2024
5.5.4 145 4/9/2024
5.5.3 131 4/9/2024
5.5.2 179 4/1/2024
5.5.1 162 3/29/2024
5.5.0 124 3/28/2024
5.4.0 125 3/26/2024
5.3.0 211 3/24/2024
5.2.0 144 3/22/2024
5.1.0 179 3/18/2024
5.1.0-prerelease 154 3/17/2024
5.0.0 143 3/12/2024
4.2.0 178 3/9/2024
4.1.5 157 3/1/2024
4.1.4 163 2/29/2024
4.1.3 145 2/28/2024
4.1.2 152 2/27/2024
4.1.1 150 2/27/2024
4.0.1 153 2/25/2024
4.0.0 157 2/23/2024
4.0.0-prerelease 130 2/20/2024
3.0.2 151 2/14/2024
3.0.1 135 2/12/2024
3.0.0 178 2/11/2024
3.0.0-prerelease 134 2/10/2024
2.1.3 179 2/5/2024
2.1.2 147 2/5/2024
2.1.1 171 2/4/2024
2.1.0 185 2/4/2024
2.0.0 194 1/31/2024
1.1.1-prerelease 169 1/31/2024
1.1.0 150 1/21/2024
1.0.0 139 1/19/2024
0.3.0 138 1/18/2024
0.2.0 149 1/15/2024
0.1.1 139 1/14/2024
0.1.0 133 1/13/2024
0.0.1 148 1/13/2024