{
"id": "20260514210418-3b67bb0b",
"kind": "doc",
"target": "10-systems/automations/smart-home-overview.md",
"summary": "Add light control action reference (bedroom/hallway) to smart-home-overview.md",
"reason": "The user wants to document the control mechanism to avoid re-discovering it. I am adding the specific action aliases and a curl template.",
"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_switch` | Включить/выключить основной свет в спальне | `light_hub_1` | 1 |\n| `hallway2_lamp_switch` | Включить/выключить основной свет в холе, эт2 | `light_hub_1` | 2 |\n| `bathroom2_lamp_switch` | Включить/выключить основной свет в ванной 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_switch\", \"params\": {}}'\n```\n"
},
"status": "applied",
"created_at": "2026-05-14T21:04:18Z",
"updated_at": "2026-05-14T21:04:19Z",
"applied_at": "2026-05-14T21:04:19Z",
"validation": {
"status": "ok",
"issue_count": 0,
"issues": []
}
}