인증
모든 요청에 x-api-key 헤더로 키를 보내세요.
GET
/strips내 멀티탭 목록과 콘센트별 상태.GET
/strips/{mac}멀티탭 상세: 콘센트, 부하, 전압, 신호.POST
/strips/{mac}/switch켜기/끄기. 본문: {"port": 1-4 또는 "all", "on": true}예시: 2번 콘센트 켜기
curl -X POST https://<your-domain>/api/public/v1/strips/88D03902C4C4/switch \
-H "x-api-key: kh_xxxxxxxxxxxxxxxx" \
-H "content-type: application/json" \
-d '{"port": 2, "on": true}'
# => {"success": true, "results": [{"port": 2, "ok": true}]}Home Assistant
rest_command:
kahraba_on:
url: "https://<your-domain>/api/public/v1/strips/88D03902C4C4/switch"
method: POST
headers: { x-api-key: !secret kahraba_key }
payload: '{"port": {{ port }}, "on": true}'
content_type: application/json