Skip to content

Integrations

PC Restarter provides a REST API for control and status queries.

Base URL: http://pc-restarter.local/api

EndpointFunction
GET /api/statusRead device status
POST /api/power/onPower on PC
POST /api/power/offPower off PC
POST /api/power/resetRestart PC
GET /api/infoRead device information

Example:

Terminal window
curl -X POST http://pc-restarter.local/api/power/on

MQTT is supported for smart-home and automation platforms.

TopicContent
pc-restarter/statusDevice status (JSON)
pc-restarter/power/commandCommands: on, off, reset
pc-restarter/power/stateCurrent power state

Configuration: web interface under Settings -> MQTT.

The device can be integrated with Home Assistant directly. A detailed step-by-step guide can be provided through the project website.

Metrics endpoint:

http://pc-restarter.local/metrics

Typical metrics:

  • pc_restarter_uptime_seconds
  • pc_restarter_power_state
  • pc_restarter_wifi_rssi
  • pc_restarter_temperature_celsius

For dashboards, configure Prometheus as a Grafana data source.

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