Newer
Older
gnexus-book / 10-systems / automations / smart-home-overview.md

owner: gmikcon status: active last_reviewed: 2026-05-10 review_interval: 90d confidence: high

source_of_truth: owner-described-and-ssh-host

Smart Home Overview

... (existing content) ...

Automation Actions (Quick Reference)

The following actions are available via the API to control lights in specific zones. These are implemented in ControlScripts/Scopes/LightHubScope.php.

Light Control via API

To toggle lights, use the POST /api/v1/scripts/actions/run endpoint with the corresponding alias.

Action Alias Description Target Device (Relay) Channel
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:

curl -X POST http://192.168.1.101/api/v1/scripts/actions/run \
     -H "Content-Type: application/json" \
     -d '{"alias": "master_room_lamp_switch", "params": {}}'