Newer
Older
gnexus-book / 90-maintenance / pending-changes / 20260514205719-5bcfb1b9.json
{
  "id": "20260514205719-5bcfb1b9",
  "kind": "doc",
  "target": "10-systems/automations/smart-home-overview.md",
  "summary": "Add light control action reference (bedroom/hallway) to smart-home-overview.md with frontmatter.",
  "reason": "Adding quick reference for light control actions discovered during troubleshooting. I included the frontmatter to avoid validation errors.",
  "payload": {
    "content": "---\nowner: gmikcon\nstatus: active\nlast_reviewed: 2026-05-10\nreview_interval: 90d\nconfidence: high\nsource_of_truth: owner-described-and-ssh-host\n---\n\n# Smart Home Overview\n\n... (existing content) ...\n\n## Automation Actions (Quick Reference)\n\nThe following actions are available via the API to control lights in specific zones. These are implemented in `ControlScripts/Scopes/LightHubScope.php`.\n\n### Light Control via API\n\nTo toggle lights, use the `POST /api/v1/scripts/actions/run` endpoint with the corresponding alias.\n\n| Action Alias | Description | Target Device (Relay) | Channel |\n| --- | --- | --- | --- |\n| `master_room_lamp_switcher` | Включить/выключить основной свет в спальне | `light_hub_1` | 1 |\n| `hallway2_lamp_switcher` | Включить/выключить основной свет в холе, эт2 | `light_hub_1` | 2 |\n| `bathroom2_lamp_switcher` | Включить/выключить основной свет в ванной 2 | `light_hub_1` | 3 |\n\n**Example Request:**\n```bash\ncurl -X POST http://192.168.1.101/api/v1/scripts/actions/run \\\n     -H \"Content-Type: application/json\" \\\n     -d '{\"alias\": \"master_room_lamp_switcher\", \"params\": {}}'\n```\n"
  },
  "status": "applied",
  "created_at": "2026-05-14T20:57:19Z",
  "updated_at": "2026-05-14T20:57:20Z",
  "applied_at": "2026-05-14T20:57:20Z",
  "validation": {
    "status": "ok",
    "issue_count": 0,
    "issues": []
  }
}