{"id":51177022,"url":"https://github.com/fireball1725/talos-hass","last_synced_at":"2026-06-27T05:00:32.548Z","repository":{"id":367647347,"uuid":"1281736270","full_name":"FireBall1725/talos-hass","owner":"FireBall1725","description":"Home Assistant (HACS) integration for Talos Linux clusters: node versions, available upgrades, machine stage, etcd, per-node metrics, and schematic-aware OS upgrades over the Talos API.","archived":false,"fork":false,"pushed_at":"2026-06-27T00:07:33.000Z","size":113,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-27T00:27:29.186Z","etag":null,"topics":["hacs","home-assistant","homeassistant-integration","kubernetes","talos","talos-linux"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FireBall1725.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-26T21:43:59.000Z","updated_at":"2026-06-27T00:05:42.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/FireBall1725/talos-hass","commit_stats":null,"previous_names":["fireball1725/talos-hass"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/FireBall1725/talos-hass","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FireBall1725%2Ftalos-hass","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FireBall1725%2Ftalos-hass/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FireBall1725%2Ftalos-hass/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FireBall1725%2Ftalos-hass/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FireBall1725","download_url":"https://codeload.github.com/FireBall1725/talos-hass/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FireBall1725%2Ftalos-hass/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34841990,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-27T02:00:06.362Z","response_time":126,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacs","home-assistant","homeassistant-integration","kubernetes","talos","talos-linux"],"created_at":"2026-06-27T05:00:15.178Z","updated_at":"2026-06-27T05:00:32.543Z","avatar_url":"https://github.com/FireBall1725.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Talos Linux for Home Assistant\n\n[![HACS Custom](https://img.shields.io/badge/HACS-Custom-41BDF5.svg)](https://github.com/hacs/integration)\n[![Tests](https://github.com/fireball1725/talos-hass/actions/workflows/tests.yaml/badge.svg)](https://github.com/fireball1725/talos-hass/actions/workflows/tests.yaml)\n[![Hassfest](https://github.com/fireball1725/talos-hass/actions/workflows/hassfest.yaml/badge.svg)](https://github.com/fireball1725/talos-hass/actions/workflows/hassfest.yaml)\n\n[![Open your Home Assistant instance and open this repository inside the Home Assistant Community Store.](https://my.home-assistant.io/badges/hacs_repository.svg)](https://my.home-assistant.io/redirect/hacs_repository/?owner=fireball1725\u0026repository=talos-hass\u0026category=integration)\n\nA Home Assistant integration that surfaces Talos Linux cluster state: node OS versions, available upgrades, machine stage, system extensions, etcd health, and per-node metrics. It talks to the Talos API (`apid`) directly over mTLS, so it sees the Talos-native data that the generic `kubernetes` integration can't reach.\n\n\u003e **Status: pre-release (0.1.0), under active development.** Not yet published to the HACS default store. Expect breaking changes until 1.0.\n\n## Why this exists\n\nThe existing [`kubernetes`](https://github.com/tibuntu/homeassistant-kubernetes) integration reads nodes through the Kubernetes API. From there a Talos node looks like any other node: a version string, a kubelet version, a ready condition. Talos keeps the rest behind its own gRPC API on port 50000: the running Talos version, the machine stage, installed system extensions, the Image Factory schematic ID, etcd member health, and per-node disk, CPU, and memory. This integration reads that API.\n\nThe headline feature is a per-node `update` entity that knows each node's schematic and builds the exact upgrade installer image, so an upgrade started from Home Assistant keeps that node's extensions instead of stripping them.\n\n## Requirements\n\n- A Talos Linux cluster reachable on `apid` port 50000.\n- A `talosconfig` with at least the `os:reader` role. Write actions (reboot, upgrade, apply config, reset) need `os:operator` or `os:admin`.\n- 64-bit Home Assistant (amd64 or aarch64). The integration depends on `grpcio`, which ships prebuilt wheels for 64-bit glibc and musl. 32-bit ARM (armv7) has no wheel and is not supported.\n\n## Install (HACS custom repository)\n\nClick the **Open in HACS** button above, or add it manually:\n\n1. HACS → three-dot menu → Custom repositories.\n2. Add `https://github.com/fireball1725/talos-hass` as an Integration.\n3. Install **Talos Linux**, then restart Home Assistant.\n4. Settings → Devices \u0026 Services → Add Integration → **Talos Linux**, or use this button:\n\n[![Open your Home Assistant instance and start setting up a new integration.](https://my.home-assistant.io/badges/config_flow_start.svg)](https://my.home-assistant.io/redirect/config_flow_start/?domain=talos_linux)\n\n## Configuration\n\nThe config flow asks for one control-plane endpoint and your `talosconfig`. `apid` proxies from that endpoint to every node, so node discovery is automatic. The flow detects the cert's role and tells you which write actions are available.\n\nOptions (set after setup):\n\n- **Poll intervals** — node state (default 45s) and the upgrade-availability check (default hourly).\n- **Upgrade target** — track the latest stable Talos release, or pin a target version that matches your upgrade plan.\n- **Allow destructive operations** — off by default. Gates reboot, upgrade, and apply-config services.\n- **Allow node reset/wipe** — a separate toggle, off by default. Gates the one service that destroys a node.\n\n## Entities\n\nOne device per Talos node, plus a cluster device. Per node: Talos version, Kubernetes version, kernel version, machine stage, CPU/memory/disk usage, uptime, schematic ID, extension count, and an `update` entity. Binary sensors cover node ready, etcd member health, reboot pending, and Secure Boot. The cluster device carries version-spread, etcd quorum, node counts, and (planned) certificate expiry.\n\n## Services and safety\n\nWrite actions are gated three ways at once: the matching options toggle must be on, the cert role must allow it, and the call must pass a `confirm_node` field that string-matches the target node. A service whose tier is disabled is not registered at all.\n\n**Single node only.** There is no orchestration in this integration. It will not cordon, drain, or sequence anything for you. Upgrading or rebooting more than one control-plane node at a time breaks etcd quorum. Ordering across nodes is your job, in your own automation.\n\n## Development\n\nRun the same checks CI runs:\n\n```\npip install -r requirements_test.txt\nruff check custom_components/ tests/\nruff format --check custom_components/ tests/\nmypy custom_components/talos_linux\npytest tests/\n```\n\nThe gRPC stubs under `custom_components/talos_linux/proto/` are generated, not hand-edited. To regenerate them for a new Talos tag, run `scripts/generate_proto.sh`.\n\n## Credits\n\nBuilt by FireBall1725. Talos Linux is made by [Sidero Labs](https://www.siderolabs.com/).\n\n## License\n\nGNU Affero General Public License v3.0. Copyright © 2026 FireBall1725. See [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffireball1725%2Ftalos-hass","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffireball1725%2Ftalos-hass","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffireball1725%2Ftalos-hass/lists"}