Device Battery #load #charge Plugin

Demo to preview the settings

Introduction

Monitor and display your device's battery status directly within your Bubble app. Real-time battery level and charging state detection. Device Battery #load #charge Plugin allows seamless integration of battery information, enriching user experience by keeping them informed about their device's power status.
Utilize the Device Battery element to showcase battery details effortlessly. The plugin actions and states return critical information such as the current battery level and whether the device is charging. On battery status change, the plugin can trigger workflows, enabling dynamic responses within your application.
The plugin also provides states that detail the battery's charging status and level, ensuring users are always aware of their device's energy state. Implement workflows based on battery condition, enhancing app functionality and user engagement by responding to power-related events.
Image without caption

How to setup

  1. Install plugin Device Battery #load #charge
Image without caption
  1. Place the Device Battery element on the page
Image without caption

Plugin Element Properties

Image without caption
Title
Description
Type
Trigger the events on load
Disables to ignore the first batch of events.
Yes/No, Required

Exposed states

Title
Description
Type
is charging
Indicates wether the device is charging or not
Yes/No
level (%)
Indicates the battery level of a device
Number
time before fully charged (s)
Indicates the time till battery is fully charged
Number
time before empty (s)
Indicates the time till battery will be completely dead
Number
is available
Indicates wether the device battery is accessible or not
Yes/No

Element events

Title
Description
A Device Battery Has stopped charging
Triggers when a device has stopped charging
A Device Battery Has resumed charging
Triggers when a device has resumed charging
A Device Battery Battery level has changed
Triggers when a device battery level has changed
A Device Battery Time before fully charged has changed
Triggers when a device battery time before fully charged has changed
A Device Battery Time before empty has changed
Triggers when a device battery time before completely dead has changed
A Device Battery is not available on this device
Triggers a device battery is not available on this device
A Device Battery is available on this device
Triggers a device battery is available on this device
Image without caption

Changelogs