github net-daemon/netdaemon 21.47.1

latest releases: 24.43.0, 24.42.0, 24.37.1...
2 years ago

👀 Summary

We are proud to announce the new release of NetDaemon. NetDaemon is a platform for creating applications or automations for Home Assistant in .Net 6 with C#10.

The brand new HassModel API

This new release includes a preview version of a whole new API that we call HassModel. HassModel is a .Net API that makes it easier than ever to interact with Home Assistant from .Net. It allows you to do things like responding to state changes of entities and calling Home Assistant sevices. You get strong typed interfaces that are generated based on the entities in your own Home Assistant, their attributes and all available services and their parameters. Because the code is generated from your own home assistant you can use intellisense to discover all your entities or services with their input parameters.
The V2 API will be supported while we get the new API feature complete plus a fair amount of time to move to the new API.
A big shout out to @FrankBakkerNl for making this API and for @doug and @mightymouse for helping out trying early drops of this new API. Helps a lot!

Single .NET class app

Besides the new API we also made it easier to create apps in NetDaemon. A NetDaemon app can now consist of just a single .Net class that is decorated with a [NetdaemonApp] attribute. Your apps will be loaded when NetDaemon starts. Typically using the Netdaemon docker container that you can install as a Home Assistant addon. This means that you do not have to use yaml to instance apps in NetDaemon. The yaml option will always be available too.

.NET 6 and C# 10!

With this release we are moving to .NET 6 and C# 10! You will need to update your project files. Easiest is to use the new version of the template project https://github.com/net-daemon/netdaemon-app-template as a base for your automations and copy old automation files to the new project.
This release also contains various bug fixes and enhancements. We are now also publish docker images on GitHub image registry.
The dev team hope you will enjoy this new release!

💥 Breaking changes

We are as of this release remove support for very old V1 API Home Assistant add-on. You can use the version 21.05.0 docker container and nuget packages to use it.

✨ New features

⚡ Enhancements

🐛 Bug Fixes

⬆️ Dependency Updates

Links

Don't miss a new netdaemon release

NewReleases is sending notifications on new releases.