Command video guide
StateGet
StateGet reads current device information into typed variables for conditions, calculations and later commands. It does not change the settings it reads. This Overview tours all 27 groups without running the script. The Orientation Demo tab preserves the complete working StateGet → PromptMe example.
Enable only the groups needed. Give each enabled group at least one selected output, using its displayed Integer, Decimal, Boolean or String type and a distinct destination. Blank output fields are not requested. A group switched OFF does not request its retained fields. Each execution takes new readings; StateGet is not a background monitor.
Battery and Charge Time read charging information. Power and Advanced Power read power-saving and idle states; the two Thermal groups require their displayed Android versions. Display reads state, orientation, dimensions and refresh rate. Display Settings and Device Lock read existing settings and lock state without changing them. Audio reads volumes and audio state; Music Active is not proof that a particular media player is playing. Do Not Disturb reads the interruption mode.
Network and Network Conditions read connection information. Estimated connection speeds and Wi-Fi Link Rates are not measured traffic. Network Traffic reads sampled Integer receive/transmit rates in KiB/s. Naming RX or TX reveals Sample Time. Enter a valid literal 250–60000 ms; 1500 ms is one and a half seconds. The fresh editor field may be blank and is incomplete until configured. Selected RX/TX share one sample and the command waits for it before publishing the available results. The Overview entry i1 / 1500 is only an unsaved configuration draft, not a measured result.
Cellular Signal, NFC, Location Services and Airplane Mode read their current state. Location Services does not return coordinates. Memory and Storage sizes use MiB; Uptime uses seconds. Cellular Network and Call State depend on phone hardware/access. Bluetooth needs Nearby Devices access on Android 12+. Flashlight reads supported torch state; strength needs API 33+. No permission, radio, audio or torch setting is changed here.
Availability depends on Android version, hardware and access. An unavailable reading leaves its destination unchanged rather than writing zero or empty text. Initialize a fallback when needed. StateGet has no separate Success/Error outputs. Run Logs summarize selected keys and availability counts without recording returned values. This Overview closes its draft without saving and never presses Play.
All 27 state groups and output types
API numbers are Android platform levels. Availability also depends on hardware and access. Blank outputs are not requested. Use a unique, correctly typed destination for each selected output.
| Group | Outputs | Availability |
|---|---|---|
| Battery | Level (Integer, %); Charging (Boolean); Power Source (String); Status (String); Health (String); Temperature °C (Decimal); Voltage mV (Integer); Current mA (Decimal); Capacity mAh (Decimal); Energy Wh (Decimal) | API 26+. |
| Charge Time | Remaining Seconds (Integer); Is Charging (Boolean) | API 28+. |
| Power | Power Saver (Boolean); Device Idle (Boolean); Screen Interactive (Boolean) | API 26+. |
| Advanced Power | Light Idle (Boolean); Low Power Standby (Boolean) | API 33+. |
| Thermal Status | Level (Integer, 0–6) | API 29+. |
| Thermal Headroom | Headroom (Decimal) | API 30+. |
| Display | State (String); Orientation (String); Width (Integer); Height (Integer); Refresh Rate (Decimal, Hz) | API 26+. |
| Display Settings | Brightness (Integer, %); Adaptive (Boolean); Rotation Lock (Boolean); Timeout Milliseconds (Integer); Dark Mode (Boolean); Clock Format (String) | API 26+. |
| Device Lock | Locked (Boolean); Secure Lock Configured (Boolean) | API 26+. |
| Audio | Music Active (Boolean); Microphone Muted (Boolean); Ringer Mode (String); Output Route (String; API 33+); Call Volume (Integer, %); Media Volume (Integer, %); System Volume (Integer, %); Alert Volume (Integer, %); Message Volume (Integer, %) | API 26+. |
| Do Not Disturb | Current Mode (String) | API 26+. |
| Network | Connected (Boolean); Internet Validated (Boolean); Transport (String); Metered (Boolean); VPN Active (Boolean); Captive Portal (Boolean); Estimated Download KB/s (Integer); Estimated Upload KB/s (Integer); Data Saver (String) | API 26+. |
| Network Conditions | Roaming (Boolean); Congested (Boolean); Suspended (Boolean) | API 28+. |
| Network Traffic | RX KB/s (Integer); TX KB/s (Integer) | API 26+. |
| Wi-Fi | Enabled (Boolean); Connected (Boolean); Signal Level (Integer, 0–4); Link Speed Mbps (Integer) | API 26+. Wi-Fi hardware. |
| Wi-Fi Link Rates | RX Mbps (Integer); TX Mbps (Integer) | API 29+. Wi-Fi hardware. |
| Cellular Signal | Level (Integer, 0–4) | API 28+. Telephony radio support. |
| NFC | Enabled (Boolean) | API 26+. NFC hardware. |
| Location Services | Enabled (Boolean) | API 26+. |
| Airplane Mode | Enabled (Boolean) | API 26+. |
| Memory | Available MB (Integer, MiB); Total MB (Integer, MiB); Low Memory (Boolean) | API 26+. |
| Storage | Free MB (Integer, MiB); Total MB (Integer, MiB) | API 26+. |
| Uptime | Seconds (Integer) | API 26+. |
| Cellular Network | Generation (String) | API 26-32 / 33+ basic. Telephony radio support. Phone State on API 26–32; Basic Phone State on API 33+. |
| Call State | State (String) | API 26+. Phone-call support. Phone State access. |
| Bluetooth | Enabled (Boolean); Audio Connected (Boolean); Headset Connected (Boolean) | API 26+. Bluetooth hardware. Nearby Devices access on API 31+. |
| Flashlight | Enabled (Boolean); Strength (Integer; API 33+) | API 26+ / strength 33+. Camera flash hardware. |
Network Traffic RX/TX are sampled Integer KiB/s rates, sharing one 250–60000 ms interval (default 1500 ms). Network estimated speeds are connection estimates, not measured traffic. Memory/storage values use binary megabytes (MiB). Music Active is Android audio activity, not verified player state. Location Services reports enabled state, not coordinates.
Overview
Step-by-step guide
Step 01 StateGet reads current device information into variables, so later commands can make decisions using it. It does not change the device settings. This overview explains all twenty-seven groups and their selection controls, without running a demonstration.
Step 02 Drag StateGet from Device into the script, then open the new row. The number at the top is this device's Android A P I level, which helps explain unavailable options.
Step 03 Each group has its own switch. Turn a group on to reveal its output fields. Name only the outputs you need, using the indicated Integer, Decimal, Boolean or String type. Each enabled group needs at least one destination, and selected outputs need distinct destinations.
Step 04 Battery reads percentage, charging, power source, status and health, plus temperature and electrical information. Scroll within the form to find voltage, current, capacity and energy. These are readings into variables, not controls for charging the device.
Step 05 Charge Time reads the estimated charging time remaining in seconds, and whether charging is active. Power reads power-saving mode, device idle and whether the screen is interactive.
Step 06 Advanced Power adds light-idle and low-power standby readings on Android A P I thirty-three or later. Thermal Status reports a heating-status level, while Thermal Headroom reports a thermal-headroom estimate. Their Android requirements are shown here; this older emulator cannot enable those groups.
Step 07 Display reads the screen state, orientation, pixel width and height, and refresh rate. Enable it to choose the typed destinations. The separate Orientation Demo tab shows how to display one of these results with PromptMe.
Step 08 Display Settings reads brightness, adaptive brightness, rotation lock, screen timeout, dark mode and clock format. Device Lock reads whether the device is locked and whether a secure lock is configured. Neither group changes those settings or locks the device.
Step 09 Audio reads the five volume streams, ringer mode, microphone mute and Android music-audio activity. Music Active does not confirm that a particular player is playing. Output Route needs Android A P I thirty-three or later. Do Not Disturb reads the current interruption mode.
Step 10 Network reads connectivity, validated internet access, transport, metering, V P N, captive portal, data saver and estimated connection speeds. Those speeds are connection estimates, not measured traffic. Network Conditions adds roaming, congestion and suspension information.
Step 11 Network Traffic measures receive and transmit rates. Enable it and name a receive or transmit destination to reveal Sample Time. The R X and T X fields take Integer destinations. We are only viewing the setup, not measuring a result.
Step 12 Sample Time is a measurement interval from two hundred and fifty to sixty thousand milliseconds. Here, fifteen hundred milliseconds means one and a half seconds. Enter a valid value before Play; a blank field is incomplete. Both selected rates share one sample, and StateGet waits for it before publishing the available results.
Step 13 Wi-Fi reads enabled and connected states, signal level and link speed. Wi-Fi Link Rates adds receive and transmit link rates on supported Android versions. These describe the wireless link, not the actual traffic measured by Network Traffic.
Step 14 Cellular Signal reads a signal-strength level on supported phone hardware. N F C reads whether near-field communication is enabled. Neither option turns a radio on or off.
Step 15 Location Services reads whether location services are enabled; it does not return geographical coordinates. Airplane Mode reads whether airplane mode is enabled, without changing it.
Step 16 Memory reads available and total memory and the low-memory flag. Storage reads free and total space. Their size values use binary megabytes, also called mebibytes. Uptime reads elapsed seconds since the device started.
Step 17 Cellular Network reads the network generation. Call State reads the phone-call state. These depend on phone hardware and the required phone access. Set up any required permission before Play; this overview does not request or use phone information.
Step 18 Bluetooth reads enabled state, audio connection and headset connection. On Android twelve or later it needs Nearby Devices access. Flashlight reads whether a supported torch is enabled; strength additionally needs Android A P I thirty-three or later. StateGet never turns the torch on.
Step 19 Available readings depend on Android version, hardware and access. An unavailable reading leaves its destination unchanged; it does not automatically write zero or empty text. Initialize a fallback first when later commands need a known value. StateGet has no separate Success or Error outputs.
Step 20 Each time StateGet is reached, it takes a new reading; it is not a background monitor. This was only an options tour, so close the draft without saving it. Use the Orientation Demo tab for a complete script and a visible result.
StateGet reads current device information into variables for conditions, calculations and later commands. It does not change settings. Each execution takes a new reading; it is not a background monitor. This guide tours the available groups and builds the shortest orientation example: StateGet → PromptMe.
Create and name a new script. Manually drag StateGet from Device, then double-tap its script row. The top label shows the device's Android API level. Enable only the groups you need. Each enabled group needs at least one destination, using the displayed Integer, Decimal, Boolean or String type. Give each selected output its own destination; blank outputs are not requested.
For the example, enable Display and set Orientation → s1. Leave its other outputs blank and the other groups off. Battery i1 and Network Traffic RX → i2, TX → i3 are shown as setup examples and switched off again before saving; their retained fields are dormant.
Network Traffic measures Integer receive/transmit rates in KiB/s. Naming a traffic output reveals Sample Time. Both rates share one sample from 250–60000 ms, default 1500 ms. The command waits for the sample before publishing available results. Network's estimated connection speeds are not measured traffic.
Some outputs depend on Android version, hardware or access. Grant required access during setup, before Play. An unavailable reading leaves its destination unchanged: initialize a fallback first if later commands need a known value. StateGet has no separate Success or Error outputs. Run Logs summarize the selected keys and availability counts without recording returned values.
Save StateGet. Manually drag PromptMe below it, keep Standard, set Header → s1 and add Done → b1. Keep Toggles & Text off. PromptMe displays the stored String, not the literal token. Close the editor and use Play in the Main Overlay. The real result is portrait; choose Done to finish. Test on the actual target device, because available readings differ.
All 27 state groups and output types
API numbers are Android platform levels. Availability also depends on hardware and access. Blank outputs are not requested. Use a unique, correctly typed destination for each selected output.
| Group | Outputs | Availability |
|---|---|---|
| Battery | Level (Integer, %); Charging (Boolean); Power Source (String); Status (String); Health (String); Temperature °C (Decimal); Voltage mV (Integer); Current mA (Decimal); Capacity mAh (Decimal); Energy Wh (Decimal) | API 26+. |
| Charge Time | Remaining Seconds (Integer); Is Charging (Boolean) | API 28+. |
| Power | Power Saver (Boolean); Device Idle (Boolean); Screen Interactive (Boolean) | API 26+. |
| Advanced Power | Light Idle (Boolean); Low Power Standby (Boolean) | API 33+. |
| Thermal Status | Level (Integer, 0–6) | API 29+. |
| Thermal Headroom | Headroom (Decimal) | API 30+. |
| Display | State (String); Orientation (String); Width (Integer); Height (Integer); Refresh Rate (Decimal, Hz) | API 26+. |
| Display Settings | Brightness (Integer, %); Adaptive (Boolean); Rotation Lock (Boolean); Timeout Milliseconds (Integer); Dark Mode (Boolean); Clock Format (String) | API 26+. |
| Device Lock | Locked (Boolean); Secure Lock Configured (Boolean) | API 26+. |
| Audio | Music Active (Boolean); Microphone Muted (Boolean); Ringer Mode (String); Output Route (String; API 33+); Call Volume (Integer, %); Media Volume (Integer, %); System Volume (Integer, %); Alert Volume (Integer, %); Message Volume (Integer, %) | API 26+. |
| Do Not Disturb | Current Mode (String) | API 26+. |
| Network | Connected (Boolean); Internet Validated (Boolean); Transport (String); Metered (Boolean); VPN Active (Boolean); Captive Portal (Boolean); Estimated Download KB/s (Integer); Estimated Upload KB/s (Integer); Data Saver (String) | API 26+. |
| Network Conditions | Roaming (Boolean); Congested (Boolean); Suspended (Boolean) | API 28+. |
| Network Traffic | RX KB/s (Integer); TX KB/s (Integer) | API 26+. |
| Wi-Fi | Enabled (Boolean); Connected (Boolean); Signal Level (Integer, 0–4); Link Speed Mbps (Integer) | API 26+. Wi-Fi hardware. |
| Wi-Fi Link Rates | RX Mbps (Integer); TX Mbps (Integer) | API 29+. Wi-Fi hardware. |
| Cellular Signal | Level (Integer, 0–4) | API 28+. Telephony radio support. |
| NFC | Enabled (Boolean) | API 26+. NFC hardware. |
| Location Services | Enabled (Boolean) | API 26+. |
| Airplane Mode | Enabled (Boolean) | API 26+. |
| Memory | Available MB (Integer, MiB); Total MB (Integer, MiB); Low Memory (Boolean) | API 26+. |
| Storage | Free MB (Integer, MiB); Total MB (Integer, MiB) | API 26+. |
| Uptime | Seconds (Integer) | API 26+. |
| Cellular Network | Generation (String) | API 26-32 / 33+ basic. Telephony radio support. Phone State on API 26–32; Basic Phone State on API 33+. |
| Call State | State (String) | API 26+. Phone-call support. Phone State access. |
| Bluetooth | Enabled (Boolean); Audio Connected (Boolean); Headset Connected (Boolean) | API 26+. Bluetooth hardware. Nearby Devices access on API 31+. |
| Flashlight | Enabled (Boolean); Strength (Integer; API 33+) | API 26+ / strength 33+. Camera flash hardware. |
Network Traffic RX/TX are sampled Integer KiB/s rates, sharing one 250–60000 ms interval (default 1500 ms). Network estimated speeds are connection estimates, not measured traffic. Memory/storage values use binary megabytes (MiB). Music Active is Android audio activity, not verified player state. Location Services reports enabled state, not coordinates.
Device information and an orientation example
Step-by-step guide
Step 01 StateGet reads current device information into variables, so later commands can make decisions using it. For example, a script can check the battery or display orientation. It reads settings without changing them. We will read the current orientation and display the result with PromptMe.
Step 02 Open Scripts from the main menu and create a new blank script. Keep existing scripts unchanged.
Step 03 Find the newly created script, open its menu and choose Rename. A clear name makes it easier to identify the script you want to run.
Step 04 Give the example a name. We will use StateGet Demo. Save it, select the script and open the editor.
Step 05 In the editor, collapse the Main Overlay to keep the settings clear. Expand Device in the command palette.
Step 06 Drag StateGet into the script. Double-tap the new row to open its settings.
Step 07 The number at the top is this device's Android A P I level. Some readings need a newer Android version or particular hardware. Those requirements are shown beside the relevant group or output. Enable only the groups your script needs.
Step 08 Turn Battery on to see its outputs. These include percentage, charging, power source, health, temperature and electrical measurements. The hints show the required variable type: Integer, Boolean, String or Decimal. Each enabled group needs at least one destination; leave unwanted outputs blank.
Step 09 For example, i1 can receive the Integer battery percentage. Use a different destination for each selected output, with the type shown beside it. We will turn Battery off again because this example only needs orientation.
Step 10 Charge Time reads the estimated remaining charging time. Power reports power saving, idle and whether the screen is interactive. Advanced Power adds newer idle states. Thermal Status and Thermal Headroom report heating-related information on supported Android versions.
Step 11 Display reads the screen state, orientation, pixel dimensions and refresh rate. Turn Display on. Set Orientation to s1, a String destination. Leave the other fields empty so this command requests only orientation.
Step 12 Display Settings reads brightness, adaptive brightness, rotation lock, screen timeout, dark mode and clock format. Device Lock reports whether the device is locked and whether a secure lock is configured. These are readings, not switches that change the device.
Step 13 Audio reads volume levels, ringer mode, microphone mute and Android music-audio activity. Music active does not prove a particular media player is playing. Output-route availability depends on Android. Do Not Disturb reads the current interruption mode.
Step 14 Network reports connectivity, validated internet access, transport, metering and related connection information. Its estimated speeds describe the connection, not measured traffic. Network Conditions adds roaming, congestion and suspension information where supported.
Step 15 Network Traffic measures receive and transmit rates instead. Turn it on and assign Integer destinations, such as i2 for R X and i3 for T X. Selecting a traffic output reveals Sample Time. Both rates use the same sample.
Step 16 Enter 1500 milliseconds for a one-and-a-half-second sample. The supported range is 250 to 60000 milliseconds. StateGet waits for this measurement before publishing its available results. We will turn Network Traffic off again and keep the orientation-only demo.
Step 17 Wi-Fi reads its enabled and connected states, signal level and link speed. Wi-Fi Link Rates adds receive and transmit link rates on supported Android versions. Cellular Signal reads the signal level, and N F C reports whether it is enabled.
Step 18 Location Services and Airplane Mode read their enabled states. Memory reports available and total memory plus the low-memory flag. Storage reads free and total space, while Uptime reads elapsed seconds since the device started.
Step 19 Cellular Network reads the network generation, and Call State reads the phone-call state. Some phone information requires Phone State access. Bluetooth reads enabled and connection states; newer Android versions require Nearby Devices access. Grant any required access during setup, before Play.
Step 20 Flashlight reads whether the torch is enabled, and its strength where the device and Android version support that reading. StateGet never turns it on. All these groups follow the same pattern: enable a group, then name the typed outputs you need.
Step 21 An unavailable reading leaves that destination unchanged; it does not automatically write zero or an empty value. Initialize a variable first if later commands need a known fallback. StateGet has no separate Success or Error output. Run Logs summarize selected readings and availability counts without recording their returned values.
Step 22 Tap O K to save. Only Display is enabled in our example. The other groups stay off, even if their earlier field values were retained.
Step 23 Now drag PromptMe below StateGet. This supporting command will display the String that StateGet writes, so we can see the result clearly.
Step 24 Keep Standard. Set Header to s1, then add a Done button with b1 as its Boolean output and save. The header will use the stored String value, not the literal variable name.
Step 25 When the script is complete, simply use the Play button in the main overlay.
Step 26 The prompt shows portrait. StateGet read the current display orientation and wrote it to s1. PromptMe is only displaying that value. Choose Done to finish the script.
Step 27 Use StateGet before a condition, calculation or other command that needs current device information. Each time StateGet is reached, it takes a new reading; it is not a background monitor. Keep requests focused and test on the device where the script will run, because available readings can differ.
Network Traffic measures observed device-wide received and sent data during one sampling window. It is not a connection-speed test or a foreground-app-only measurement. See the Overview for all 27 StateGet groups and the Orientation Demo for a simple immediate reading.
Create a new Traffic Guide and manually drag three commands in this order: StateGet → SetVariable → PromptMe. In StateGet, enable only Network Traffic, name RX i1 and TX i2, then enter literal 1500 ms in the newly visible Sample Time field. Valid whole-number samples are 250–60,000 ms. Both requested rates share one sample; no extra Delay is needed.
The labels say KB/s; returned Integer rates use KiB/s, rounded to whole numbers. One KiB is 1024 bytes. RX means received and TX means transmitted. Zero can be a valid quiet-device result. An unavailable reading leaves its destination unchanged; initialize a fallback if needed. There are no separate StateGet Success/Error outputs.
In the supporting SetVariable command, choose Single → String, name it s1, keep This Script Only, and type RX=&i1 TX=&i2 KiB/s. Ampersand references insert the earlier Integer values. In Standard/Regular PromptMe, use header s1 and one Done button with Boolean output b1. That Boolean is only the prompt confirmation, not a traffic measurement.
Use MainOverlay Play. The recorded run sampled for 1504 ms and displayed RX=4 TX=124 KiB/s; these are real example readings, not expected constants. Other device activity contributes traffic, so later runs may differ. Tap Done for natural completion. Use the Integer outputs in later conditions/calculations when a script should react to network activity.
Network Traffic
Step-by-step guide
Step 01 StateGet reads device information into variables for later script commands. Network Traffic measures received and sent data over a sample period. We will display both results with a short String and PromptMe, so the readings are easy to see.
Step 02 Create a new script and give it a clear name. This example needs just three commands: StateGet, SetVariable to label the values, and PromptMe to display them.
Step 03 Open Device and drag StateGet into the live script. Then open the command you just placed. The Overview explains the other information groups; this guide focuses on Network Traffic.
Step 04 Scroll down to Network Traffic and turn that frame on. Leave the other groups off: StateGet reads only the outputs you request.
Step 05 RX is received data and TX is sent data. Enter i1 for RX and i2 for TX. Both destinations are Integer variables. These readings describe traffic across the device, not just the foreground app.
Step 06 The Sample Time field appears when a traffic destination is filled. Scroll to it and enter fifteen hundred milliseconds: one and a half seconds. RX and TX share this one sample, so selecting both does not double the wait. Enter a whole number from two hundred fifty to sixty thousand milliseconds.
Step 07 The screen labels the rates KB per second; the values use kibibytes per second, rounded to whole numbers. One kibibyte is one thousand twenty-four bytes. This measures observed traffic during the sample, not your connection's maximum speed. A quiet device can correctly return zero.
Step 08 Save StateGet. It waits for the sample to finish, then makes the available readings ready for the next command. If a reading is unavailable, its destination stays unchanged. StateGet does not have a separate Success or Error output.
Step 09 Drag SetVariable after StateGet. This supporting command is only for presentation: it turns our two numbers into a readable label without changing the traffic measurements.
Step 10 Choose String and name it s1. Keep This Script Only so the following prompt uses the result in this script.
Step 11 For the String value, type RX equals ampersand i1, then TX equals ampersand i2, followed by KiB slash s. Each ampersand inserts the earlier variable's value. Save the command.
Step 12 Drag PromptMe after the String. Keep Regular mode and enter s1 for Header. That shows the calculated text, rather than the variable's name.
Step 13 Add one button. Name its Boolean output b1 and give it the caption Done. This button simply closes our confirmation; b1 is not a traffic reading. Save PromptMe.
Step 14 StateGet measures the traffic, SetVariable labels the two values, and PromptMe displays the result. No extra Delay is needed: StateGet itself waits for its sampling period before continuing.
Step 15 When the script is complete, simply use the Play button in the main overlay. StateGet samples for one and a half seconds, then PromptMe displays the readings.
Step 16 These are the actual received and sent rates from this run. The values can change each time because other device activity also contributes traffic. Tap Done to close the prompt, and the script stops automatically.
Step 17 Use the Integer results in later conditions or calculations when your script needs to react to network activity. Choose a suitable sample period, and test on the device where the script will run.