Integrations
REST API
Section titled “REST API”PC Restarter provides a REST API for control and status queries.
Base URL: http://pc-restarter.local/api
| Endpoint | Function |
|---|---|
GET /api/status | Read device status |
POST /api/power/on | Power on PC |
POST /api/power/off | Power off PC |
POST /api/power/reset | Restart PC |
GET /api/info | Read device information |
Example:
curl -X POST http://pc-restarter.local/api/power/onMQTT is supported for smart-home and automation platforms.
| Topic | Content |
|---|---|
pc-restarter/status | Device status (JSON) |
pc-restarter/power/command | Commands: on, off, reset |
pc-restarter/power/state | Current power state |
Configuration: web interface under Settings -> MQTT.
Home Assistant
Section titled “Home Assistant”The device can be integrated with Home Assistant directly. A detailed step-by-step guide can be provided through the project website.
Prometheus and Grafana
Section titled “Prometheus and Grafana”Metrics endpoint:
http://pc-restarter.local/metrics
Typical metrics:
pc_restarter_uptime_secondspc_restarter_power_statepc_restarter_wifi_rssipc_restarter_temperature_celsius
For dashboards, configure Prometheus as a Grafana data source.
Loki Logging
Section titled “Loki Logging”Optional log forwarding to Loki is supported.
- Configure in web interface under
Settings -> Logging - Log levels:
ERROR,WARN,INFO,DEBUG - Format: JSON logs with timestamp and level