A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/leosperry/ha-kafka-net below:

leosperry/ha-kafka-net: Integration that uses Home Assistant Kafka integration for creating home automations in .NET and C#

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

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

Version 11, is released and uses .NET 9. It also introduces integration testing. See special release statement for details.

Featured on an episode of On .NET Live !

It was created with the following goals:

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))
);

All in all, I'm really happy HaKafkaNet is a thing! It's a really ergonomic way of writing automations that make sense.

I converted the automations for 3 rooms from Home Assistant automations to C#, and those work good! So I'm really satisfied with the project.

This is an image of the dashboard from the example app. See UI for additional details.

I have made my personal repository public so that users can see working examples of some moderately complex automations.

If you have some examples you would like to share, please start a discussion. I'd be happy to link it here.

Happy Automating!


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4