Logo van Home Assistant Manager

Home Assistant Manager

Community
komal-SkyNET
home-assistant-manager

Beheer Home Assistant-configuraties veilig en snel: bewerk en implementeer YAML (automatiseringen, blueprints, scripts, scènes, templates, MQTT), valideer met ha core check, implementeer via git of rapid scp, kies correct tussen herladen en herstarten, controleer wijzigingen aan de hand van logs, traces en entiteitsstatus en bouw Lovelace-dashboards. Gebruik dit voor alle Home Assistant-configuratie, automatiseringen, templates of dashboards via SSH/hass-cli/MCP.

Overzicht

Uitgeverkomal-SkyNET
Repositoryclaude-skill-homeassistant
Skillnaamhome-assistant-manager
Sterren
967
Forks
59
Meegeleverde bestanden
3
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Meegeleverde bestanden: 3

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. De bestanden kunnen alleen worden gelezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door komal-SkyNET op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Home Assistant Manager in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/komal-SkyNET/claude-skill-homeassistant/tree/main/skills/home-assistant-manager
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/komal-SkyNET/claude-skill-homeassistant.git /tmp/claude-skill-homeassistant
mkdir -p .claude/skills
cp -r /tmp/claude-skill-homeassistant/skills/home-assistant-manager .claude/skills/home-assistant-manager
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Home Assistant Manager in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Home Assistant Manager automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Home Assistant Manager niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Home Assistant Manager

Operate a remote Home Assistant instance precisely: make a change, get it live, prove it worked. Optimize for the fewest safe round-trips.

Assumptions

  • The repo you're editing is the HA /config dir, git-connected to the instance. Edits aren't live until pulled on the instance.
  • root@homeassistant.local in examples is a placeholder. Resolve the real user/host once (project CLAUDE.md, ~/.ssh/config, or ask) and if it isn't recorded in the project CLAUDE.md yet, add it so future sessions skip this step.
  • Access via one or more of: hass-cli (REST), SSH ha, or an MCP server (see below).
  • Only edit .yaml/.yml/.md. Never read/write .env or secrets.yaml; use !secret.

Remote access — pick the right tool

  • SSH ha — always works, needs no local env. Use for ha core check|restart|logs|info.
  • hass-cli (REST) — state/service calls, but needs HASS_SERVER/HASS_TOKEN in the shell before the session starts. If they're unset, hass-cli falls back to the wrong host (localhost) and errors — don't retry, check [ -n "$HASS_TOKEN" ] once, then use SSH or MCP instead.
  • MCP (preferred when available) — first-class tools for live state/control, no env juggling. Official mcp_server integration (HA core ≥2025.2) or community ha-mcp (richer, 80+ tools). Use it instead of shelling out when present.

The deploy pipeline (the one canonical flow)

Changes are not live until step 4.

  1. Edit YAML locally.
  2. Validate: ssh root@homeassistant.local "ha core check" (slow, ~30-60s — see "when to skip" below).
  3. Commit + push: git add … && git commit -m "…" && git push.
  4. Make it live: ssh root@homeassistant.local "cd /config && git pull".
  5. Apply: reload if possible, else restart (table below).
  6. Verify (next section).

Rapid iteration: skip git and scp straight to the instance, then reload — good for dashboards and tight test loops. Commit to git only once stable. scp automations.yaml root@homeassistant.local:/config/ → reload.

When to skip ha core check: it parses the whole config and is slow. For an isolated YAML edit you're confident in, a domain reload surfaces errors faster and the logs tell you immediately. Always run it before a restart or for configuration.yaml changes.

Reload vs restart

ChangeAction
automations, scripts, scenes, groups, template entities, themesreload the domain (hass-cli service call automation.reload, etc.)
configuration.yaml core, new integrations, platform sensors (min/max), MQTT sensor/binary_sensor platforms, dashboard registry (lovelace_dashboards)restart (ssh … "ha core restart", ~30s)

Prefer reload. Never restart without a passing ha core check. Before risky changes (core configuration.yaml surgery, removing an integration), snapshot first — it's cheap: ssh root@homeassistant.local "ha backups new --name pre-<change>".

Verify — don't assume it worked

  1. Reload/restart the right domain.
  2. For automations, trigger manually for instant feedback: hass-cli service call automation.trigger --arguments entity_id=automation.<id> (or call the service via MCP). This bypasses conditions by default — it proves the actions, not the gate. To test conditions too, pass skip_condition: false or exercise the real trigger, then read the automation's trace in the UI.
  3. Read the logs filtered to your change: ssh root@homeassistant.local "ha core logs | grep -iE '<name>|error' | tail -20". Good: Running automation actions, Executing step …. Bad: Invalid data for call_service, TypeError, Template variable warning, Error executing script.
  4. Confirm the real outcome: device/sensor state (hass-cli state get <entity>), or ask the user for notification-type actions.
  5. On error: fix → re-pull/scp → reload → re-check. Loop until clean.

Automations — write modern syntax

HA 2024.10 renamed the keys; legacy syntax still works but don't emit it in new code: top-level triggers:/conditions:/actions: (plural), trigger: not platform: inside a trigger, action: not service: for calls. Every automation gets a stable id: (traces and UI editing need it) plus an alias.

Full automation reference (syntax table, mode: behavior, blueprints, trace debugging, pitfalls) → read reference/automations.md when writing or debugging automations.

Templates — the precision rules

  • Always coerce types before comparing: states('sensor.x') | int(0) < 7. Bare states are strings; '5' < 7 raises TypeError. Provide a default (int(0)) so startup None doesn't error.
  • Test in Developer Tools → Template before committing.
  • state_attr(...) returns None if the entity/attr is missing — guard it.

Conventions

  • Surgical edits; preserve comments; 2-space indent.
  • Validate before restart; prefer reload; verify from logs.
  • Use context7 MCP for current HA docs before non-trivial or unfamiliar config.

Dashboards

Lovelace dashboards live in .storage/lovelace.* (JSON). UI edits show on a browser refresh; direct file edits (scp/git) may not appear until a ha core restart — HA caches the lovelace store in memory. Adding a new dashboard to .storage/lovelace_dashboards also needs a restart. scp + refresh is the fast loop; validate JSON first: python3 -m json.tool .storage/lovelace.x > /dev/null. After deploying, validate the UI visually in the browser (see the reference) — logs/state won't catch a broken card or a mis-sorted popup.

Full dashboard reference (view types, card catalog, template cards, tablet layout, pitfalls, debugging) → read reference/dashboards.md when doing UI work. Modern HA: native sections view (drag-drop grid, badges, heading cards) and feature-rich tile cards now cover most needs without custom cards; reach for Mushroom only when you want its specific look.

Quick reference

bash
# Validate / apply
ssh root@homeassistant.local "ha core check"
ssh root@homeassistant.local "ha core restart"
ssh root@homeassistant.local "cd /config && git pull"     # make pushed changes live

# Logs
ssh root@homeassistant.local "ha core logs | grep -iE 'error|<name>' | tail -20"

# State / services (needs env loaded, or use MCP)
hass-cli state get <entity>
hass-cli service call <domain>.reload
hass-cli service call automation.trigger --arguments entity_id=automation.<id>

# Rapid deploy
scp <file>.yaml root@homeassistant.local:/config/ && hass-cli service call automation.reload

Meegeleverde bestanden

Zolang de skill geladen is, leest het model deze bestanden als dat nodig is. Het model kan ze alleen lezen; ze worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-skill Home Assistant Manager?

Beheer Home Assistant-configuraties veilig en snel: bewerk en implementeer YAML (automatiseringen, blueprints, scripts, scènes, templates, MQTT), valideer met ha core check, implementeer via git of rapid scp, kies correct tussen herladen en herstarten, controleer wijzigingen aan de hand van logs, traces en entiteitsstatus en bouw Lovelace-dashboards. Gebruik dit voor alle Home Assistant-configuratie, automatiseringen, templates of dashboards via SSH/hass-cli/MCP.

Waarom Home Assistant Manager gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Home Assistant Manager bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Home Assistant Manager in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/komal-SkyNET/claude-skill-homeassistant/tree/main/skills/home-assistant-manager. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Home Assistant Manager gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Home Assistant Manager gebruiken?

Zoveel als je wilt. Je kunt Home Assistant Manager gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Home Assistant Manager gratis?

Ja. Deze skill is door komal-SkyNET op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇