AgentSkillsCN

battery-skill

监控 Android 设备的电池状态、电量水平、充电状态、温度以及健康状况。

SKILL.md
--- frontmatter
name: battery-skill
description: Monitor Android device battery status, level, charging state, temperature, and health.
allowed-tools: battery_monitor
metadata:
  author: machina
  version: "1.0"
  category: android
  icon: "🔋"
  color: "#22C55E"

Battery Monitor Tool

Monitor Android device battery status and information.

How It Works

This skill provides instructions for the Battery Monitor tool node. Connect the Battery Monitor node to Zeenie's input-tools handle to enable battery monitoring.

battery Tool

Get battery status and information from the Android device.

Schema Fields

FieldTypeRequiredDescription
actionstringYes"status" - Get current battery information

Actions

ActionDescription
statusGet current battery level, charging state, health, temperature

Example

Get battery status:

json
{
  "action": "status"
}

Response Format

json
{
  "success": true,
  "service": "battery",
  "action": "status",
  "data": {
    "level": 85,
    "status": "charging",
    "health": "good",
    "temperature": 28.5,
    "voltage": 4200,
    "plugged": "ac",
    "technology": "Li-ion"
  }
}

Response Fields

FieldTypeDescription
levelintBattery percentage (0-100)
statusstring"charging", "discharging", "full", "not_charging"
healthstring"good", "overheat", "dead", "cold"
temperaturefloatTemperature in Celsius
voltageintVoltage in millivolts
pluggedstring"ac", "usb", "wireless", "none"
technologystringBattery technology (e.g., "Li-ion")

Error Response

json
{
  "error": "Failed to get battery status",
  "service": "battery",
  "action": "status"
}

Use Cases

Use CaseDescription
Low battery alertTrigger actions when battery is low
Charging monitorDetect when device starts/stops charging
Health checkMonitor battery health over time
Temperature warningAlert on overheating

Common Workflows

Low battery notification

  1. Check battery status
  2. If level < 20%, send notification
  3. Optionally enable power saving

Charging complete alert

  1. Periodically check battery status
  2. When status = "full", send notification
  3. Optionally suggest unplugging

Setup Requirements

  1. Connect the Battery Monitor node to Zeenie's input-tools handle
  2. Android device must be paired (green status indicator)
  3. Battery monitoring permission required on device