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
| Field | Type | Required | Description |
|---|---|---|---|
| action | string | Yes | "status" - Get current battery information |
Actions
| Action | Description |
|---|---|
status | Get 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
| Field | Type | Description |
|---|---|---|
| level | int | Battery percentage (0-100) |
| status | string | "charging", "discharging", "full", "not_charging" |
| health | string | "good", "overheat", "dead", "cold" |
| temperature | float | Temperature in Celsius |
| voltage | int | Voltage in millivolts |
| plugged | string | "ac", "usb", "wireless", "none" |
| technology | string | Battery technology (e.g., "Li-ion") |
Error Response
json
{
"error": "Failed to get battery status",
"service": "battery",
"action": "status"
}
Use Cases
| Use Case | Description |
|---|---|
| Low battery alert | Trigger actions when battery is low |
| Charging monitor | Detect when device starts/stops charging |
| Health check | Monitor battery health over time |
| Temperature warning | Alert on overheating |
Common Workflows
Low battery notification
- •Check battery status
- •If level < 20%, send notification
- •Optionally enable power saving
Charging complete alert
- •Periodically check battery status
- •When status = "full", send notification
- •Optionally suggest unplugging
Setup Requirements
- •Connect the Battery Monitor node to Zeenie's
input-toolshandle - •Android device must be paired (green status indicator)
- •Battery monitoring permission required on device