Battery Level
Starts when the battery level crosses a threshold (polls in the background).
A trigger in the Power & Battery group.
Its type is trigger.battery_level.
Declared ports
Section titled “Declared ports”| Port | Label | Flow | Type |
|---|---|---|---|
out |
out | execution out | — |
state |
State | data out | Object{isCharging: Boolean, level: Int, plugged: String or Nothing, event: String, timestamp: DateTime} |
Configuration
Section titled “Configuration”| Field | Key | Default | Notes |
|---|---|---|---|
| Direction | direction |
BELOW |
BELOW, ABOVE |
| Threshold (0-100) | level |
20 |
— |
| Poll interval | intervalMinutes |
15 |
minutes, minimum 15 |