diff --git a/10-systems/automations/smart-home-overview.md b/10-systems/automations/smart-home-overview.md index 93fc36c..2044f81 100644 --- a/10-systems/automations/smart-home-overview.md +++ b/10-systems/automations/smart-home-overview.md @@ -21,13 +21,13 @@ | Action Alias | Description | Target Device (Relay) | Channel | | --- | --- | --- | --- | -| `master_room_lamp_switcher` | Включить/выключить основной свет в спальне | `light_hub_1` | 1 | -| `hallway2_lamp_switcher` | Включить/выключить основной свет в холе, эт2 | `light_hub_1` | 2 | -| `bathroom2_lamp_switcher` | Включить/выключить основной свет в ванной 2 | `light_hub_1` | 3 | +| `master_room_lamp_switch` | Включить/выключить основной свет в спальне | `light_hub_1` | 1 | +| `hallway2_lamp_switch` | Включить/выключить основной свет в холе, эт2 | `light_hub_1` | 2 | +| `bathroom2_lamp_switch` | Включить/выключить основной свет в ванной 2 | `light_hub_1` | 3 | **Example Request:** ```bash curl -X POST http://192.168.1.101/api/v1/scripts/actions/run \ -H "Content-Type: application/json" \ - -d '{"alias": "master_room_lamp_switcher", "params": {}}' + -d '{"alias": "master_room_lamp_switch", "params": {}}' ``` diff --git a/90-maintenance/pending-changes/20260514210418-3b67bb0b.json b/90-maintenance/pending-changes/20260514210418-3b67bb0b.json new file mode 100644 index 0000000..0c210e2 --- /dev/null +++ b/90-maintenance/pending-changes/20260514210418-3b67bb0b.json @@ -0,0 +1,19 @@ +{ + "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": [] + } +}