Releases: net-daemon/netdaemon
21.50.1
21.50.0
👀 Summary
✨ New features
- #544 Adds new version of HassClient to core project @helto4real
- #547 New HassModel.Integration project with RegisterServiceCallBack @FrankBakkerNl
- #553 Add SendEvent to HassModel @FrankBakkerNl
⚡ Enhancements
- #544 Adds new version of HassClient to core project @helto4real
- #545 Register Services from Dynamic compiled code @FrankBakkerNl
- #551 making constructors public to enable external unit testing @eugeneniemand
🐛 Bug Fixes
- #546 Fix InvalidCastException on StateChange.Entity @FrankBakkerNl
- #552 remove New HassClient from HassModel @FrankBakkerNl
- #554 fix incorrect JsonPropertyName for service parameter records @FrankBakkerNl
⬆️ Dependency Updates
- #538 Bump Roslynator.Analyzers from 3.2.2 to 3.3.0 @dependabot
- #550 Bump Microsoft.AspNetCore.Mvc.NewtonsoftJson from 6.0.0 to 6.0.1 @dependabot
- #549 Bump System.IO.Pipelines from 6.0.0 to 6.0.1 @dependabot
- #548 Bump Microsoft.AspNetCore.TestHost from 6.0.0 to 6.0.1 @dependabot
Links
21.49.3
👀 Summary
✨ New features
- #541 Add xml comments to the generated code based on HA matadata @FrankBakkerNl
- #542 Hass model areas @parkerman92
⚡ Enhancements
- #539 Draft NumericSensors @FrankBakkerNl
🐛 Bug Fixes
- #537 When releasing, remove publish PR automatically @helto4real
- #543 Use the generated class instead of anonymous type when calling servic… @FrankBakkerNl
Links
21.47.2
👀 Summary
Add first version of application context information to the new model.
✨ New features
- #536 Adds application context for apps @helto4real
Links
21.47.1
👀 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
- #485 Adding HassModel to NetDaemon API @FrankBakkerNl
- #517 Made State[All]Changes() Methods iso Properties @FrankBakkerNl
- #519 .net 6 @helto4real
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
- #485 Adding HassModel to NetDaemon API @FrankBakkerNl
- #495 Add code generator to nuget and dotnet CLI @helto4real
- #494 Events on ha context (#478) @FrankBakkerNl
- #498 Enumerable extensions @FrankBakkerNl
- #500 Scheduling extension support @helto4real
- #502 Exposes the schedulers time in scheduling API @helto4real
- #503 Publish dev images to ghcr @ludeeus
- #504 Add context name in default logging @helto4real
⚡ Enhancements
- #419 Fix the area feature @helto4real
- #430 add test support for dynamic binary_sensor, sensor and switch @Zorgino
- #433 add generic RxAppMock @Zorgino
- #457 fix camelCase confused with PascalCase @Zorgino
- #462 Integration test improvements @ludeeus
- #464 Use container logs instead of log file @ludeeus
- #472 Update admin version @ludeeus
- #485 Adding HassModel to NetDaemon API @FrankBakkerNl
- #493 Add HassModel NuGet package @helto4real
- #496 Fix port setting and help option @helto4real
- #497 Load settings for codegen from current folder cconfig @FrankBakkerNl
- #503 Publish dev images to ghcr @ludeeus
- #505 ServiceTarget.FromEntities support @helto4real
- #506 Adds GH container registry for release and manual release @helto4real
- #519 .net 6 @helto4real
- #525 Log correct app type on startup @FrankBakkerNl
- #531 Add JsonPropertyName Attributes to Event class of HassModel @FrankBakkerNl
- #532 Added Error when using [Focus] while not in development @FrankBakkerNl
- #535 Remove beta from nuget versioning @helto4real
🐛 Bug Fixes
- #419 Fix the area feature @helto4real
⬆️ Dependency Updates
- #424 Bump Microsoft.AspNetCore.Mvc.NewtonsoftJson from 5.0.8 to 5.0.9 @dependabot
- #425 Bump Microsoft.AspNetCore.TestHost from 5.0.8 to 5.0.9 @dependabot
- #426 Bump Microsoft.CodeAnalysis.CSharp from 3.10.0 to 3.11.0 @dependabot
- #427 Bump Microsoft.NET.Test.Sdk from 16.10.0 to 16.11.0 @dependabot
- #431 Bump Roslynator.Analyzers from 3.2.0 to 3.2.2 @dependabot
- #468 Bump Microsoft.AspNetCore.Mvc.NewtonsoftJson from 5.0.9 to 5.0.10 @dependabot
- #469 Bump Microsoft.AspNetCore.TestHost from 5.0.9 to 5.0.10 @dependabot
- #490 Bump JoySoftware.HassClient from 21.30.1-beta to 21.35.0-beta @dependabot
- #489 Bump FluentAssertions from 6.1.0 to 6.2.0 @dependabot
- #477 Bump Microsoft.AspNetCore.Mvc.NewtonsoftJson from 5.0.10 to 5.0.11 @dependabot
- #476 Bump Microsoft.AspNetCore.TestHost from 5.0.10 to 5.0.11 @dependabot
- #488 Bump Microsoft.NET.Test.Sdk from 16.11.0 to 17.0.0 @dependabot
- #507 chore: update highbyte/sonarscan-dotnet to v2.1.2 @BeeHiveJava
- #524 New HassClient using .NET 6 @helto4real
- #527 Fix reconnect bug @helto4real
- #533 Bump Serilog.Sinks.Console from 4.0.0 to 4.0.1 @dependabot
Links
21.29.1
👀 Summary
Fixes the bug where state always is a string
🐛 Bug Fixes
- #416 Update EntityStateMapper.cs @FrankBakkerNl
Links
21.29.0
👀 Summary
Hey NetDaemon users. New release with alot of goodies. We improved the yaml mapping of entities thanks to @Zorgino. The mapping now supports enums as well. We added support for setting state persistent for climate domain in the integration. You will need the latest integration for this. Did you ever think it was hard develop and debug just one app in your solution? Check out the new ‘[Focus]’ attribute that @FrankBakkerNl co tributes! He also fixed a performance problem that occurred in some cases. Thanks a lot all contributors and members of the community that helps out at our discord server!
✨ New features
- #397 add yaml multilevel mapping @Zorgino
- #396 add enum support to yaml @Zorgino
- #410 adding climate support using integration @helto4real
- #412 Implemented FocusAttribute @FrankBakkerNl
⚡ Enhancements
- #390 Devcontainer: Always latest focal release dotnet 5 git + tools @helto4real
- #395 Fix: switch on or off NetDeamon apps with array does not work @FrankBakkerNl
- #394 Handle HassClient HassState.State is now a string @FrankBakkerNl
- #400 Fix some warnings in tesproject @FrankBakkerNl
- #401 CI: Cleanup and move analysis on own step when pushing to dev and main @helto4real
- #402 Maintenance: Various code smell fixes @helto4real
- #415 Revert state manager @FrankBakkerNl
⬆️ Dependency Updates
- #398 Bump YamlDotNet from 11.1.1 to 11.2.1 @dependabot
- #393 Bump Roslynator.Analyzers from 3.1.0 to 3.2.0 @dependabot
- #392 Bump Microsoft.CodeAnalysis.CSharp from 3.9.0 to 3.10.0 @dependabot
- #408 Bump Microsoft.Extensions.DependencyInjection from 5.0.1 to 5.0.2 @dependabot
- #406 Bump Microsoft.AspNetCore.TestHost from 5.0.7 to 5.0.8 @dependabot
- #407 Bump Microsoft.AspNetCore.Mvc.NewtonsoftJson from 5.0.7 to 5.0.8 @dependabot
- #405 Bump Serilog.Sinks.Console from 4.0.0-dev-00839 to 4.0.0 @dependabot
- #414 Bump coverlet.collector from 3.0.3 to 3.1.0 @dependabot
- #413 Bump coverlet.msbuild from 3.0.3 to 3.1.0 @dependabot
Links
Release 21.23.0
👀 Summary
Another NetDaemon release. Alot of stuff under the hood this release but we got new features too. We now support webhook sensors!
✨ New features
- #364 push docker manual with tag @helto4real
- #369 Added webhook support @helto4real
⚡ Enhancements
- #360 make code generation logic injectable @Zorgino
- #363 release drafter use pr: breaking change @helto4real
- #370 Extracted Statemanagement from NetDaemonHost @FrankBakkerNl
- #371 ci: add sonar scanner to ci_build @BeeHiveJava
- #373 ci(sonar): analyze test results / coverage @BeeHiveJava
- #374 docs: add sonar quality gate to readme @BeeHiveJava
- #375 Cleanup part 1 @helto4real
- #376 Refactor state management @FrankBakkerNl
- #378 Added environment protection for sonar analysis @helto4real
- #379 More cleanup and fixing restart bug @helto4real
- #381 Adding integration matrix integration tests to real HA instance @helto4real
- #382 Remove annoying http client informational logging @helto4real
- #383 Clean channels @FrankBakkerNl
🐛 Bug Fixes
- #372 fix: stop duplicate ci runs @BeeHiveJava
- #385 Fix two corner-case bugs handling state @FrankBakkerNl
⬆️ Dependency Updates
- #366 Update HAS client @FrankBakkerNl
- #368 Bump Microsoft.AspNetCore.TestHost from 5.0.5 to 5.0.6 @dependabot
- #367 Bump Microsoft.AspNetCore.Mvc.NewtonsoftJson from 5.0.5 to 5.0.6 @dependabot
- #380 Bump Microsoft.NET.Test.Sdk from 16.9.4 to 16.10.0 @dependabot
- #387 Bump Microsoft.AspNetCore.TestHost from 5.0.6 to 5.0.7 @dependabot
- #388 Bump Microsoft.AspNetCore.Mvc.NewtonsoftJson from 5.0.6 to 5.0.7 @dependabot
- #389 Bump HassClient Version @helto4real
Links
Release 21.17.0
👀 Summary
Time for another NetDaemon release. Thank you all contributors for your contributions to NetDaemon. This release is mostly maintenance and some enhancements on tests. Please note that you will need to rename Netdaemon.Generated.Reactive
to NetDaemon.Generated.Reactive
when you start using generated code from this release. Just do a search and replace in files.
We are working hard on improving the generated code so stand by for new features and enhancements in this area.
💥 Breaking changes
⚡ Enhancements
- #356 match behaviors of mocked and real data repositories @Zorgino
- #355 Fixed codegen namespace to align with NetDaemon @mutzl
- #358 Add label-check action to pull requests @helto4real
- #361 Upgrade to GitHub-native Dependabot @dependabot-preview
- #362 CI fixes @helto4real
🐛 Bug Fixes
- #347 Fixed a bug. because the method CallServiceAsync was called with a dy… @FrankBakkerNl
⬆️ Dependency Updates
- #345 Bump Microsoft.NET.Test.Sdk from 16.9.1 to 16.9.4 @dependabot-preview
- #344 Bump YamlDotNet from 10.1.0 to 11.0.1 @dependabot-preview
- #350 Bump Microsoft.AspNetCore.TestHost from 5.0.4 to 5.0.5 @dependabot-preview
- #352 Bump YamlDotNet from 11.0.1 to 11.1.1 @dependabot-preview
- #349 Bump Microsoft.AspNetCore.Mvc.NewtonsoftJson from 5.0.4 to 5.0.5 @dependabot-preview
- #361 Upgrade to GitHub-native Dependabot @dependabot-preview
Links
Release 21.13.0
👀 Summary
A new NetDaemon release. This reslease is a pure maintainence release. @FrankBakkerNl fixed some bugs and has started together with @BeeHiveJava to make NetDaemon easier to maintain. Thank you for your effort. Also the bug that prevented the docker images to properly cleanded (addons) is fixed. You will have to manually delete the old NetDaemon docker images before this update.
Hopefully next version we are going to see some nice features. We are looking into the Enitity API to provide even more convenient API to work with. Stay tuned for updates.
⚡ Enhancements
- #327 Remove (incorrect) delete of old stete objects + small refactor @FrankBakkerNl
- #339 Refactor NetDaemonHost.HandleNewEvent @FrankBakkerNl
🐛 Bug Fixes
- #326 fix 325: Removed possible race condition when updating InternalState dictionary @FrankBakkerNl
- #334 Bugfix: Pass correct NetDeamonApp into Entities constructors @FrankBakkerNl
- #343 maintainence of hass client @helto4real
⬆️ Dependency Updates
- #324 Bump Microsoft.NET.Test.Sdk from 16.8.3 to 16.9.1 @dependabot-preview
- #323 Bump Moq from 4.16.0 to 4.16.1 @dependabot-preview
- #330 Bump Serilog.AspNetCore from 3.4.0 to 4.0.0 @dependabot-preview
- #329 Bump Microsoft.CodeAnalysis.CSharp from 3.8.0 to 3.9.0 @dependabot-preview
- #332 Bump Microsoft.AspNetCore.TestHost from 5.0.3 to 5.0.4 @dependabot-preview
- #331 Bump Microsoft.AspNetCore.Mvc.NewtonsoftJson from 5.0.3 to 5.0.4 @dependabot-preview
- #341 Bump Serilog.AspNetCore from 4.0.0 to 4.1.0 @dependabot-preview
- #340 Bump YamlDotNet from 9.1.4 to 10.0.0 @dependabot-preview
- #343 maintainence of hass client @helto4real
- #342 Bump YamlDotNet from 9.1.4 to 10.1.0 @dependabot-preview