Skip to main content

Automate Home Assistant with C#

NetDaemon is a modern C# automation platform for Home Assistant. Powerful. Developer-friendly. Open source.

C#
using System;using System.Reactive.Linq;using NetDaemon.AppModel;using NetDaemon.HassModel;using HomeAssistantGenerated;[NetDaemonApp]public class ExampleAppHaContext{    public ExampleAppHaContext(IHaContext ha)    {        var entities = new Entities(ha);        entities.BinarySensor.OfficeMotion            .StateChanges()            .Where(e => e.New.IsOn())            .Subscribe(_ => entities.Light.Office.TurnOn());    }}
Home Assistant
</>

Built for C# developers

Write automations in C# with a rich API, modern .NET patterns, and tooling that feels familiar from the first project.

Deep Home Assistant integration

Use real-time events, entities, services, and state through fast websocket integration.

Developer experience first

Strong typing, IntelliSense, templates, and rapid local iteration help keep automations easy to maintain.

Open source on GitHub

Join the community, contribute, and help make NetDaemon even better.

View on GitHub
299Stars
80Forks
48Contributors

Join the NetDaemon Discord

Get help, share automations, discuss ideas, and follow what the community is building.

Join Discord