{
  "schemaVersion": "1.0",
  "item": {
    "slug": "home-assistant-control",
    "name": "Home Assistant Control",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/Hogar23/home-assistant-control",
    "canonicalUrl": "https://clawhub.ai/Hogar23/home-assistant-control",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/home-assistant-control",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=home-assistant-control",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "references/entities.md",
      "references/naming-context.md",
      "scripts/examples.sh",
      "scripts/fill_entities_md.sh"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/home-assistant-control"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/home-assistant-control",
    "agentPageUrl": "https://openagent3.xyz/skills/home-assistant-control/agent",
    "manifestUrl": "https://openagent3.xyz/skills/home-assistant-control/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/home-assistant-control/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Home Assistant Control",
        "body": "Use Home Assistant REST API with a long-lived access token."
      },
      {
        "title": "For skill users (runtime)",
        "body": "bash\ncurl\njq\nHome Assistant long-lived token (HA_TOKEN)\nHome Assistant public base URL (HA_URL_PUBLIC)"
      },
      {
        "title": "For skill maintainers (packaging/validation)",
        "body": "python3\npyyaml (required by skill-creator validator/packager scripts)"
      },
      {
        "title": "Required environment variables",
        "body": "HA_TOKEN (required)\nHA_URL_PUBLIC (required; canonical target and fallback)\nOptional URL behavior:\n\nif HA_URL_LOCAL is set (and no HA_URL override), local is tried first, then fallback to HA_URL_PUBLIC\nHA_URL is an explicit override (if set, used directly)"
      },
      {
        "title": "Secrets handling (publish-safe)",
        "body": "Keep keys/URLs in an external file, not in the skill folder.\nSet HA_ENV_FILE=/absolute/path/to/file.env when you want file-based secret loading.\nIf HA_ENV_FILE is not set, scripts only use environment variables already present in the shell.\nscripts/ha_call.sh and scripts/self_check.sh load env file only when HA_ENV_FILE is provided."
      },
      {
        "title": "Core workflow",
        "body": "Parse the user request into target entity/service + desired action.\nCheck references/naming-context.md for manual alias mappings first.\nVerify entity exists before changing state.\nExecute service call.\nRe-check state and report outcome clearly."
      },
      {
        "title": "Useful endpoints",
        "body": "List states: GET /api/states\nSingle state: GET /api/states/{entity_id}\nCall service: POST /api/services/{domain}/{service}\n\nHeaders:\n\nAuthorization: Bearer $HA_TOKEN\nContent-Type: application/json"
      },
      {
        "title": "Scripts",
        "body": "scripts/ha_env.sh — loads env file only when HA_ENV_FILE is explicitly set, using safe KEY=VALUE parsing (no source/eval).\nscripts/ha_call.sh — generic API caller for Home Assistant.\nscripts/fill_entities_md.sh — generate references/entities.md from GET /api/states.\n\nFull map: ./scripts/fill_entities_md.sh\nFilter domains: ./scripts/fill_entities_md.sh --domains light,switch,climate,sensor\n\n\nscripts/save_naming_context.sh — refresh references/naming-context.md for user-specific naming.\n\n./scripts/save_naming_context.sh\n\n\nscripts/ha_entity_find.sh — search entities by partial entity id or friendly name.\n\n./scripts/ha_entity_find.sh kitchen\n./scripts/ha_entity_find.sh temp --domains sensor,climate --limit 30\n\n\nscripts/ha_safe_action.sh — execute service actions with safety checks and risk confirmation.\n\n./scripts/ha_safe_action.sh light turn_on light.kitchen '{\"brightness_pct\":60}'\n./scripts/ha_safe_action.sh lock unlock lock.front_door --dry-run\nAdd --yes to bypass interactive confirmation for risky domains.\n\n\nscripts/self_check.sh — verify prerequisites and API connectivity/auth before running actions.\n\n./scripts/self_check.sh"
      },
      {
        "title": "Safety",
        "body": "Confirm before high-impact actions (locks, alarms, garage/doors, heating shutdown).\nDo not print raw token values.\nIf target entity is ambiguous, ask a follow-up question.\nKeep API paths scoped to Home Assistant endpoints only (/api/...).\nUse only HTTP(S) Home Assistant base URLs (HA_URL*), prefer HTTPS for public access.\nAvoid code execution when loading env files: parse key/value pairs, do not use source on untrusted paths."
      },
      {
        "title": "Reference files",
        "body": "references/entities.md — entity inventory\nreferences/naming-context.md — user alias memory for natural names (e.g. \"living room light\")"
      },
      {
        "title": "Publishing notes",
        "body": "Keep examples generic (example_* IDs), no personal hostnames/tokens.\nDo not commit .env or any private env file with real tokens.\nKeep the skill focused: API workflow + reusable scripts + entity reference."
      }
    ],
    "body": "Home Assistant Control\n\nUse Home Assistant REST API with a long-lived access token.\n\nRequirements\nFor skill users (runtime)\nbash\ncurl\njq\nHome Assistant long-lived token (HA_TOKEN)\nHome Assistant public base URL (HA_URL_PUBLIC)\nFor skill maintainers (packaging/validation)\npython3\npyyaml (required by skill-creator validator/packager scripts)\nRequired environment variables\nHA_TOKEN (required)\nHA_URL_PUBLIC (required; canonical target and fallback)\nOptional URL behavior:\nif HA_URL_LOCAL is set (and no HA_URL override), local is tried first, then fallback to HA_URL_PUBLIC\nHA_URL is an explicit override (if set, used directly)\nSecrets handling (publish-safe)\nKeep keys/URLs in an external file, not in the skill folder.\nSet HA_ENV_FILE=/absolute/path/to/file.env when you want file-based secret loading.\nIf HA_ENV_FILE is not set, scripts only use environment variables already present in the shell.\nscripts/ha_call.sh and scripts/self_check.sh load env file only when HA_ENV_FILE is provided.\nCore workflow\nParse the user request into target entity/service + desired action.\nCheck references/naming-context.md for manual alias mappings first.\nVerify entity exists before changing state.\nExecute service call.\nRe-check state and report outcome clearly.\nUseful endpoints\nList states: GET /api/states\nSingle state: GET /api/states/{entity_id}\nCall service: POST /api/services/{domain}/{service}\n\nHeaders:\n\nAuthorization: Bearer $HA_TOKEN\nContent-Type: application/json\nScripts\nscripts/ha_env.sh — loads env file only when HA_ENV_FILE is explicitly set, using safe KEY=VALUE parsing (no source/eval).\nscripts/ha_call.sh — generic API caller for Home Assistant.\nscripts/fill_entities_md.sh — generate references/entities.md from GET /api/states.\nFull map: ./scripts/fill_entities_md.sh\nFilter domains: ./scripts/fill_entities_md.sh --domains light,switch,climate,sensor\nscripts/save_naming_context.sh — refresh references/naming-context.md for user-specific naming.\n./scripts/save_naming_context.sh\nscripts/ha_entity_find.sh — search entities by partial entity id or friendly name.\n./scripts/ha_entity_find.sh kitchen\n./scripts/ha_entity_find.sh temp --domains sensor,climate --limit 30\nscripts/ha_safe_action.sh — execute service actions with safety checks and risk confirmation.\n./scripts/ha_safe_action.sh light turn_on light.kitchen '{\"brightness_pct\":60}'\n./scripts/ha_safe_action.sh lock unlock lock.front_door --dry-run\nAdd --yes to bypass interactive confirmation for risky domains.\nscripts/self_check.sh — verify prerequisites and API connectivity/auth before running actions.\n./scripts/self_check.sh\nSafety\nConfirm before high-impact actions (locks, alarms, garage/doors, heating shutdown).\nDo not print raw token values.\nIf target entity is ambiguous, ask a follow-up question.\nKeep API paths scoped to Home Assistant endpoints only (/api/...).\nUse only HTTP(S) Home Assistant base URLs (HA_URL*), prefer HTTPS for public access.\nAvoid code execution when loading env files: parse key/value pairs, do not use source on untrusted paths.\nReference files\nreferences/entities.md — entity inventory\nreferences/naming-context.md — user alias memory for natural names (e.g. \"living room light\")\nPublishing notes\nKeep examples generic (example_* IDs), no personal hostnames/tokens.\nDo not commit .env or any private env file with real tokens.\nKeep the skill focused: API workflow + reusable scripts + entity reference."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/Hogar23/home-assistant-control",
    "publisherUrl": "https://clawhub.ai/Hogar23/home-assistant-control",
    "owner": "Hogar23",
    "version": "1.0.3",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/home-assistant-control",
    "downloadUrl": "https://openagent3.xyz/downloads/home-assistant-control",
    "agentUrl": "https://openagent3.xyz/skills/home-assistant-control/agent",
    "manifestUrl": "https://openagent3.xyz/skills/home-assistant-control/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/home-assistant-control/agent.md"
  }
}