본문으로 건너뛰기

일반 템플릿

빌드, 다운로드, 배포 등 오래 실행되는 모든 작업에 적합한 유연한 진행률 기반 템플릿입니다.

Live Activity 시연

Fields

FieldTypeDescription
templatestringRequired. Must be "generic"
progressfloatRequired. Value between 0.0 and 1.0
statestringShort status text (e.g. "Building...", "Complete")
iconstringSF Symbol name (e.g. "arrow.triangle.branch", "washer") or MDI icon with mdi: prefix (e.g. "mdi:washing-machine", "mdi:thermometer")
remaining_timeintegerRemaining time in seconds
subtitlestringSecondary text below the progress bar
accent_colorstringNamed color or hex (e.g. "cyan", "#00BCD4")
background_colorstringBackground color override
text_colorstringText color override
앱 버전 1.3.3에서 제공 예정

Example Payload

일반 activity 시작
{
  "state": "ongoing",
  "content": {
    "template": "generic",
    "progress": 0.65,
    "state": "Washing",
    "icon": "washer",
    "remaining_time": 1800,
    "subtitle": "Cycle 2 of 3",
    "accent_color": "blue"
  }
}

Live progress

앱 버전 1.3.3에서 제공 예정

이 섹션은 App Store 심사를 기다리고 있는 앱 업데이트의 기능을 설명합니다. 업데이트가 출시되면 여기에서 자동으로 잠금 해제됩니다.

Typical Flow

  1. Start (ended -> ongoing): Set progress: 0.0 with an initial status
  2. Update (ongoing -> ongoing): Increment progress, change status text
  3. End (ongoing -> ended): Set progress: 1.0 with a completion status

Buttons & tap targets

Renders url_action and secondary_url_action as buttons beneath the progress bar, and treats taps on the rest of the widget as tap_action. Buttons appear only when their action is present. See Tap actions for the action object shape.

💡

The progress percentage is displayed in the top-right corner of the Live Activity. Use remaining_time to show a countdown alongside the progress bar.

Integrations Using This Template

  • SABnzbd — tracks download progress with speed and ETA
  • Bambu Lab — tracks 3D print progress with layer counts and temperature
  • Home Assistant — default template for entity state tracking