Blink

From HybridAIOne/hybridclaw · View interactive version

Blink is an AI agent skill from the GitHub repository HybridAIOne/hybridclaw. Read Blink camera and video-doorbell state, list motion clips, and prepare guarded home-security control requests without exposing Blink credentials.

How to use this skill

Skill file

Blink

Use this skill for Blink camera, video doorbell, network arm-state, motion

event, and clip-metadata workflows. Blink does not publish an official public

API; this skill follows the bounded community API surface used by BlinkPy,

BlinkMonitorProtocol, and Home Assistant. Treat endpoint behavior as

best-effort and stop on the first authentication or verification failure.

Core Contract

Setup

Set the initial secrets in this order:

  1. Browser admin: open the active HybridClaw admin URL ending in /admin/secrets and set

BLINK_EMAIL and BLINK_PASSWORD.

  1. Browser /chat or TUI fallback:
/secret set BLINK_EMAIL "<account email>"
/secret set BLINK_PASSWORD "<account password>"
  1. Local console fallback:
hybridclaw secret set BLINK_EMAIL "<account email>"
hybridclaw secret set BLINK_PASSWORD "<account password>"

BLINK_DEVICE_ID and BLINK_CLIENT_NAME are not secrets. The helper generates a stable OAuth hardware id automatically; BLINK_DEVICE_ID is only an optional advanced override. BLINK_CLIENT_NAME is retained as a non-secret compatibility label and is not sent to Blink OAuth v2.

node skills/blink/blink.cjs --format json run account-login

Successful OAuth v2 login captures:

BLINK_AUTH_TOKEN, BLINK_REFRESH_TOKEN, BLINK_TIER, BLINK_ACCOUNT_ID,

and BLINK_CLIENT_ID. Do not ask the operator to set these manually after

login; the gateway writes them to the secret store automatically.

If Blink marks the client as unverified, it sends an email/SMS PIN. Use F14

durable handover to receive that PIN from the operator, then run the

login helper with the PIN:

node skills/blink/blink.cjs --format json run account-login --pin "<code>"

The PIN can appear in helper arguments because it is a short-lived operator

handover code; the password and auth token must never appear there.

Helper Commands

Use this command surface directly:

node skills/blink/blink.cjs [--format json|pretty] http-request <operation> [flags]
node skills/blink/blink.cjs [--format json|pretty] run <operation> [flags]
node skills/blink/blink.cjs [--format json|pretty] plan <operation> [flags]

run account-login [--pin <code>]
run account-refresh
run devices-list

http-request account-login
http-request account-refresh
http-request pin-verify --pin <code>
http-request devices-list
http-request networks-list
http-request network-status-read --network <network-id>
http-request sync-modules-list --network <network-id>
http-request cameras-list --network <network-id>
http-request camera-config-read --network <network-id> --camera <camera-id>
http-request camera-signals-read --network <network-id> --camera <camera-id>
http-request doorbells-list --network <network-id>
http-request motion-events-list --network <network-id> --since 2026-05-26T00:00:00Z
http-request clips-list [--network <network-id>] --since 2026-05-26T00:00:00Z --page 0 --max 50
http-request clip-download --path /api/v2/accounts/<account-id>/media/clip/<file.mp4> [--filename clip.mp4]
http-request thumbnail-download --path /api/v3/media/accounts/<account-id>/networks/<network-id>/<camera-type>/<camera-id>/thumbnail/thumbnail.jpg?ts=<ts>&ext= [--filename camera.jpg]

plan network-arm --network <network-id>
plan network-disarm --network <network-id>
plan camera-motion-set --network <network-id> --camera <camera-id> --enable true
plan camera-thumbnail-refresh --network <network-id> --camera <camera-id> [--camera-type default|mini|doorbell] [--filename camera.jpg]
plan clip-watched-mark --clip <clip-id>
plan clip-delete --clip <clip-id>
plan camera-live-view-start --network <network-id> --camera <camera-id> [--camera-type default|mini|doorbell]

Blink clip listing uses the account-scoped media/changed API. clips-list --network <id> is accepted for the issue-contract command shape, but the helper still calls the account-scoped endpoint and marks the requested network in metadata; filter returned clip metadata by that network before summarizing or choosing a clip path for clip-download.

For a current still image, produce a camera-thumbnail-refresh plan and, after operator approval, run the plan's approvedHelperCommandText. Do not manually stitch together refresh, devices-list, and thumbnail-download; the approved live helper command owns that full workflow, polls Blink command status, downloads the thumbnail as a gateway artifact only after a successful command, and returns result.freshness plus result.display. Do not call the image fresh unless result.freshness.ok is true. Only display or link the image artifact when result.display.shouldDisplayArtifact is true. If result.freshness.reason is command-not-completed or command-failed, report the Blink command status fields and do not download, display, or link any thumbnail. If result.freshness.thumbnailPathChanged is false, result.freshness.sameAsPrevious is true, result.display.shouldDisplayArtifact is false, or a freshness warning is present, say Blink accepted the refresh command but returned the same thumbnail instead of calling it a fresh screenshot. Do not speculate about Wi-Fi, camera hardware, firmware, reachability, or Blink service state unless a separate live Blink response explicitly says so. Do not rewrite thumbnail paths or construct media URLs by hand; the helper routes authenticated requests and stores fresh images as artifacts instead of exposing bytes in model context.

When camera-thumbnail-refresh returns result.failureReportContract, follow

it exactly. In particular, do not write a "possible reasons" list for a stale

or failed thumbnail. Do not say the camera is offline unless the same successful

live Blink response marks that exact camera offline. Do not use homescreen

app_updates, code 105, or an account-level app-update warning as the cause

of a thumbnail failure unless the refresh or live-view request itself returned

HTTP 426. Do not treat camera status: "done", updated_at, or an unchanged

thumbnail timestamp as evidence that the camera has not responded since that

time. A failed thumbnail report should be limited to: camera name/id if known,

command id if known, command status fields, freshness/display guidance, and the

fact that no fresh image was verified.

If camera-thumbnail-refresh returns `result.freshness.reason:

"system-busy"`, say Blink returned a busy response before accepting the

thumbnail command and suggest retrying later. Do not describe this as Blink

server overload, rate limiting, repeated-snapshot throttling, or proof for or

against a camera problem unless the same response explicitly says so.

plan emits no live side effect. It returns approvalText,

approvedHelperCommandText, the exact target host/path/method, and the

bounded httpRequest shape. Stop after producing the plan. Only after the

operator confirms that exact network/camera/clip/action through F8/F14, run

the approved helper command exactly.

Read Workflow

  1. Use devices-list first for a compact account overview; it includes networks, sync modules, cameras, and doorbell-like devices on current Blink accounts.
  2. If devices-list returns blink-login-required or fails because BLINK_AUTH_TOKEN, BLINK_REFRESH_TOKEN, BLINK_TIER, or BLINK_ACCOUNT_ID is missing or stale, run node skills/blink/blink.cjs --format json run account-refresh once before account-login. Do not tell the operator all Blink credentials are missing just because token/tier/account session secrets are not set yet.
  3. If refresh cannot recover the session, run node skills/blink/blink.cjs --format json run account-login once.
  4. If login returns handover-required, ask for the Blink PIN via F14. When the operator provides the PIN, run exactly node skills/blink/blink.cjs --format json run account-login --pin <code>, then immediately run node skills/blink/blink.cjs --format json run devices-list if login succeeds. Do not read source, inspect secrets, call http_request, or try direct gateway/curl calls between those two helper commands.
  5. If login or the PIN resume fails, report the helper error and stop. Do not guess alternate endpoints, read tokens, or retry a fresh login unless the helper explicitly returns another handover-required.
  6. If login reports invalid credentials, app update, unsupported grant, or verification failure, stop immediately; do not try guessed API versions, OAuth password-grant, or User-Agent variants.
  7. Use the narrower list commands when the operator asks for a specific network or device class; use camera-config-read for motion/video/illuminator settings and camera-signals-read for camera battery, Wi-Fi/sync signal, and temperature telemetry when the homescreen response is not enough.
  8. For incident-card summaries, report concrete device ids/names, network ids, offline duration, low battery, poor signal, temperature, and motion bursts only from successful live Blink responses.

Guarded Writes

Network arm/disarm, per-camera motion detection, thumbnail snapshots,

clip-state changes, deletion, and live view all affect privacy or retention.

They are amber/red and require exact F8/F14 approval with the target network,

camera, clip, and action in the approval text.

The bounded Blink API surface used by this skill does not expose camera or sync

module reboot/restart commands. Do not claim a remote reboot is available and do

not probe for reboot, restart, reset, firmware, or maintenance endpoints.

Do not perform destructive maintenance, account changes, password changes,

notification setting changes, or firmware actions through this skill.

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.