Charging
Starts when the device starts or stops charging.
A trigger in the Power & Battery group.
Its type is trigger.charging.
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 |
|---|---|---|---|
| Event | event |
— | ``, CHARGING_STARTED, CHARGING_STOPPED |