Built against Home Assistant 2026.11.3

Home Assistant, typed, in Go.

Control Home Assistant over REST, WebSocket or MQTT, and serve your own devices through MQTT discovery. One package per entity domain, generated from Home Assistant's own code.

$ go get github.com/taumatix/homeassistant-go
47domain packages
45with typed control
30you can serve over MQTT
2026.11.3Home Assistant release

Two directions, one set of types

The same climate package drives a thermostat Home Assistant already has, and creates one that Home Assistant discovers.

Control an entity

thermostat := climate.Get(client, "living_room")

state, err := thermostat.State(ctx)
err = thermostat.SetHVACMode(ctx, climate.HVACModeHeat)
err = thermostat.SetTemperature(ctx, 21.5)

Serve a device

device, err := climate.NewDevice(ctx, mqttClient, "hvac",
    climate.WithName("Living Room HVAC"),
)
device.OnTemperatureCommand(func(ctx context.Context, t float64) error {
    return device.ReportTargetTemperature(ctx, t)
})

Guides

The code in them is compiled and run by the test suite.

Read, command and watch entities over HTTP or MQTT with the same calls.

What the client reads, which topics it needs, and its limits.

How the reference stays true

The entity pages are built from the generated Go code on every change.

1

From Home Assistant's code

The packages are generated from what Home Assistant core declares, at one pinned release. A nightly job reports where the newest release differs.

2

Nothing left off

The build fails if an exported name is missing from its page. Each page also lists the services that have no method, with the reason.

3

Official pages linked

Home Assistant's documentation is linked, not copied. A check fetches those links on every change.