---
owner: gmikcon
status: active
last_reviewed: 2026-09-04
review_interval: 90d
confidence: medium
source_of_truth: owner-confirmed-and-ssh-host
---

# Smart Home Server

... (existing content) ...

## Access & Time (verified 2026-09-04)

- **SSH:** `shome@192.168.1.101`, port 22, password authentication (password stored in gnexus-creds secret `smart-home-server-creds`). User `shome` has sudo rights (password required, use `sudo -S`).
- **Timezone:** `Europe/Kyiv` (EEST, UTC+3). Fixed on 2026-09-04 — previously `Etc/UTC`, which made server local time lag 3 hours behind real Kyiv time. NTP service active, system clock synchronized: yes.
- **Quick time check without SSH:** the nginx `Date` response header on `http://192.168.1.101/` reflects server system time (UTC).

## API Usage: Triggering Actions

The smart-home platform allows triggering `ControlScripts` actions via HTTP POST. This is the preferred way for external automation or manual control without the web client.

### Endpoint: `POST /api/v1/scripts/actions/run`

**Request Body (JSON):**
```json
{
  "alias": "action_alias_here",
  "params": {}
}
```

**Example: Toggle Bedroom Light**
```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": {}}'
```

**Example: Toggle Hallway Light (2nd Floor)**
```bash
curl -X POST http://192.168.1.101/api/v1/scripts/actions/run \
     -H "Content-Type: application/json" \
     -d '{"alias": "hallway2_lamp_switcher", "params": {}}'
```

**Response Format:**
Returns a JSON object with `status: true` and the `return` value from the PHP script.
