Difference between revisions of "Trigger: Battery Saver State"
| Line 1: | Line 1: | ||
| − | <pre class="header-style"> | + | <pre class="header-style">The Battery Saver State trigger fires when Android's battery saver mode is enabled or disabled. Battery saver is a system feature designed to minimize power usage by reducing background activity and visual effects when battery is low.</pre> |
| − | Battery saver is | ||
| − | + | ''' Options ''' | |
| − | |||
| − | |||
| − | ''' | ||
| − | |||
| − | |||
| − | |||
| − | + | * '''Enabled''' - Trigger fires when battery saver mode is turned on | |
| − | + | * '''Disabled''' - Trigger fires when battery saver mode is turned off | |
| − | |||
| − | |||
| − | Brightness 15% | + | ''' Examples ''' |
| − | Disable | + | |
| − | Disable | + | ''Example 1: Additional Power Saving When Battery Saver Activates'' |
| − | </pre> | + | <pre class="trigger-style">Triggers |
| + | |||
| + | Battery Saver State (Enabled)</pre> | ||
| + | <pre class="action-style">Actions | ||
| + | |||
| + | Set Screen Brightness: 15% | ||
| + | Disable Bluetooth | ||
| + | Disable Mobile Data</pre> | ||
| + | |||
| + | ''Example 2: Restore Settings When Battery Saver Disabled'' | ||
| + | <pre class="trigger-style">Triggers | ||
| + | |||
| + | Battery Saver State (Disabled)</pre> | ||
| + | <pre class="action-style">Actions | ||
| + | |||
| + | Set Screen Brightness: Auto | ||
| + | Enable Bluetooth | ||
| + | Enable Sync</pre> | ||
| + | |||
| + | ''' Notes ''' | ||
| + | |||
| + | * The trigger listens for the system broadcast ACTION_POWER_SAVE_MODE_CHANGED | ||
| + | * Battery saver typically activates automatically when the device is unplugged and battery drops below a threshold (default is 20%) | ||
| + | * Only one option can be selected per trigger instance - create separate triggers if you need to respond to both enabling and disabling | ||
| + | * This trigger works with the standard Android battery saver implementation and may not respond to custom battery saving modes on some manufacturer devices (such as Xiaomi) | ||
| + | |||
| + | ''' See Also ''' | ||
| + | |||
| + | * [[Action:_Battery_Saver|Battery Saver Action]] | ||
| + | * [[Constraint:_Battery_Saver_State|Battery Saver State Constraint]] | ||
| + | * [[Trigger:_Battery_Level|Battery Level Trigger]] | ||
Latest revision as of 21:42, 5 January 2026
The Battery Saver State trigger fires when Android's battery saver mode is enabled or disabled. Battery saver is a system feature designed to minimize power usage by reducing background activity and visual effects when battery is low.
Options
- Enabled - Trigger fires when battery saver mode is turned on
- Disabled - Trigger fires when battery saver mode is turned off
Examples
Example 1: Additional Power Saving When Battery Saver Activates
Triggers Battery Saver State (Enabled)
Actions Set Screen Brightness: 15% Disable Bluetooth Disable Mobile Data
Example 2: Restore Settings When Battery Saver Disabled
Triggers Battery Saver State (Disabled)
Actions Set Screen Brightness: Auto Enable Bluetooth Enable Sync
Notes
- The trigger listens for the system broadcast ACTION_POWER_SAVE_MODE_CHANGED
- Battery saver typically activates automatically when the device is unplugged and battery drops below a threshold (default is 20%)
- Only one option can be selected per trigger instance - create separate triggers if you need to respond to both enabling and disabling
- This trigger works with the standard Android battery saver implementation and may not respond to custom battery saving modes on some manufacturer devices (such as Xiaomi)
See Also