Appearance
Battery Indicator Widget
Overview
Battery Indicator Widget includes its own configuration fields in the widget configuration flow.
Configuration Fields
- Alias
- Devices
- Selected Device ID
- Title
- Show Title
- Key
- Charging Key
- Unit
- Decimals
- Value Mode
- Layout Mode
- Min Voltage
- Max Voltage
- Critical Threshold
- Low Threshold
- Medium Threshold
- Show Device Name
- Show Metric Name
- Show Timestamp
- Show Status Text
- Show Charging
- Compact
- Timestamp Mode
- Global Keys
- Loading Devices
- Loading Keys
- Device ID
- Device Ids
- Next Patch
- Metric
- Telemetry Keys
Defaults
- Alias — null
- Selected Device ID — config.deviceIds?.[0] || "").trim(
- Title — "Battery"
- Show Title — true
- Key — "level"
- Charging Key — ""
- Unit — "%"
- Decimals — 1
- Min Voltage — 3.0
- Max Voltage — 4.2
- Critical Threshold — 15
- Low Threshold — 30
- Medium Threshold — 60
- Show Device Name — true
- Show Metric Name — true
- Show Timestamp — true
- Show Status Text — true
- Show Charging — true
- Compact — true
Source
- File — BatteryIndicatorWidgetConfig.tsx
