Works with the AI Agents you already use

    Home Assistant Tiered Local LLM & Vision Architect

    by Sam3gp8

    1

    Architect tiered local LLM routing, embeddings, and camera/vision pipelines for Home Assistant across GPUs and edge accelerators — fast paths for voice, heavy models for reasoning, no event-loop stalls.

    $6.99

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    What it does

    • Sorts AI tasks by how fast they need to happen and which model fits best
    • Sets limits on camera snapshots to prevent your home system from freezing
    • Plans how images move from your cameras to your private AI models
    • Creates fallback rules for when the AI is too slow or unavailable
    • Audits your setup for hidden bottlenecks that cause lag in your smart home

    Who it's for

    Home automation enthusiasts using local servers

    Set up a smart home that can see and think without sending your data to the cloud.

    Try asking: “Plan a local vision system for my driveway camera.”

    Privacy focused homeowners with multiple cameras

    Organize how your cameras talk to your AI so your system stays fast and never crashes.

    Try asking: “How do I stop my AI cameras from slowing down my home server?”

    Technically minded DIYers with home labs

    Build a smart home system that uses the right AI model for the right job automatically.

    Try asking: “Design a tiered model setup for my Home Assistant.”

    Home Assistant Tiered Local LLM & Vision Architect

    Home Assistant Tiered Local LLM & Vision Architect

    Example session with this skill installed

    Suggest a tiered setup for my Home Assistant. I have a doorbell camera for people and a backyard camera for summaries. I use a local Ollama server.

    • Read your context and instructions
    • Compiled the home assistant tiered

    Tiered Inference & Backpressure Plan (Local Ollama)

    Tier & WorkloadLatency & Concurrency BudgetRouting & Fallback Rule
    Tier 1: Real-Time (camera.front_doorbell person check)< 2.5s timeout, max 1 in-flight, 10s per-camera cooldownFast edge detector or small VLM pinned in VRAM (keep_alive: "30m"); on timeout/busy, fire standard motion alert immediately
    Tier 2: Batch (camera.backyard hourly summary)25s timeout, max 1 background slot, 300s minimum intervalLarger local reasoning/vision model (keep_alive: "2m" to release VRAM); defer or skip if Tier 1 queue is active
    Tier 0: Fallback (Ollama offline or saturated)0ms LLM wait (deterministic HA native path)Emit raw snapshot notification + log inference_degraded without blocking automations or lights

    Non-Blocking Bounded Inference Router (vision_router.py)

    import asyncio
    import base64
    import time
    import aiohttp
    
    OLLAMA_HOST = "127.0.0.1:11434"
    OLLAMA_URL = f"http://{OLLAMA_HOST}/api/generate"
    
    class TieredVisionRouter:
        def __init__(self, max_concurrent: int = 2, cooldown_sec: float = 10.0) -> None:
            self._sem = asyncio.Semaphore(max_concurrent)
            self._cooldown_sec = cooldown_sec
            self._last_run: dict[str, float] = {}
    
        def _encode_snapshot_sync(self, path: str) -> str:
            # Executor-offloaded: never run disk I/O or base64 encoding on HA's event loop
            with open(path, "rb") as fh:
                return base64.b64encode(fh.read()).decode("ascii")
    
        async def analyze_camera(
            self, hass, session: aiohttp.ClientSession, camera_id: str, snapshot_path: str, tier: str
        ) -> dict:
            now = time.monotonic()
            if tier == "realtime" and (now - self._last_run.get(camera_id, 0.0)) < self._cooldown_sec:
                return {"status": "skipped_cooldown", "fallback": True}
    
            if self._sem.locked() and tier == "batch":
                return {"status": "dropped_backpressure", "fallback": True}
    
            self._last_run[camera_id] = now
            model, timeout_s, keep_alive = (
                ("fast-vlm:latest", 3.0, "30m") if tier == "realtime" else ("heavy-vlm:latest", 25.0, "2m")
            )
    
            async with self._sem:
                img_b64 = await hass.async_add_executor_job(self._encode_snapshot_sync, snapshot_path)
                payload = {
                    "model": model,
                    "prompt": "Identify person/package in 1 sentence." if tier == "realtime" else "Summarize backyard activity.",
                    "images": [img_b64],
                    "stream": False,
                    "keep_alive": keep_alive,
                }
                try:
                    async with session.post(OLLAMA_URL, json=payload, timeout=aiohttp.ClientTimeout(total=timeout_s)) as resp:
                        resp.raise_for_status()
                        data = await resp.json()
                        return {"status": "ok", "summary": data.get("response", "").strip(), "fallback": False}
                except (asyncio.TimeoutError, aiohttp.ClientError):
                    return {"status": "timeout_fallback", "summary": "Motion detected (AI unavailable)", "fallback": True}
    

    Stability & VRAM Verification Checklist

    • Pin only the Tier 1 model in VRAM (keep_alive: "30m") so Tier 2 batch runs don't trigger constant model-swap thrashing
    • Enforce per-camera cooldown (10s doorbell, 300s backyard) before capturing or encoding snapshots
    • Keep all image reads/resizes inside hass.async_add_executor_job() so Home Assistant lights and switches never stall
    • Test with Ollama stopped to confirm Tier 0 deterministic motion alerts still deliver under 500ms

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Turns your agent into an architect for multi-tier local LLM inference and camera/vision pipelines in Home Assistant.

    • Match model tier to latency budget — keep interactive voice and real-time triggers on fast/light paths; reserve heavy reasoning for background/periodic tasks.
    • Bound concurrency & frame rates — rate-limit camera triggers and cap concurrent inference so bursts don't starve HA or saturate GPU/NPU memory.
    • Keep the event loop non-blocking — async network calls, executor-offloaded file reads and image prep.
    • Deterministic fallbacks — defined timeout budgets and non-LLM behavior when inference is slow or offline.

    Instruction-only architecture/audit guidance; adapt to your own models, endpoints, and cameras.

    This skill provides design plans and logic only. It does not include pre-written scripts or automated software installation.

    Built for Claude Code, Cursor, ChatGPT, and MCP-compatible coding agents targeting Home Assistant 2024.10+ with local inference endpoints (Ollama, vLLM, llama.cpp) and edge accelerators (Hailo, Coral, Jetson, or discrete GPUs). Architecture patterns enforced: • Latency-tiered routing — Separates sub-second real-time paths (voice Assist, doorbell person checks) from asynchronous background reasoning (camera summaries, daily digests) with explicit VRAM/keep_alive budgeting. • Bounded concurrency & frame capping — Applies per-camera cooldown windows and asyncio.Semaphore queue caps with drop-oldest/drop-new backpressure so motion storms never OOM the GPU or stall Home Assistant. • Non-blocking event-loop hygiene — Offloads snapshot disk reads, image resizing, and base64 encoding to executor threads while keeping HTTP inference calls strictly async. • Deterministic fallbacks — Enforces hard per-tier timeout budgets that degrade gracefully to standard Home Assistant motion alerts whenever local inference is slow, saturated, or offline.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 2 days ago

    Software
    Home Assistant 2024.10+Local LLM endpoint (e.g. Ollama)

    Permissions

    No special permissions declared or detected

    Listed2 days ago
    Updatedtoday

    What's inside

    Frequently Asked Questions

    Architect tiered local LLM routing, embeddings, and camera/vision pipelines for Home Assistant across GPUs and edge accelerators — fast paths for voice, heavy models for reasoning, no event-loop stalls.

    This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

    Connect your AI agent to Agensi through MCP, then ask it to use Home Assistant Tiered Local LLM & Vision Architect on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

    New in LLM Ops

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.