Difference between revisions of "Magic text"
Endercraft (talk | contribs) Tags: Mobile web edit Mobile edit |
Endercraft (talk | contribs) Tags: Mobile web edit Mobile edit |
||
Line 459: | Line 459: | ||
[[Magic text:Storage free (internal)|Storage free (internal)]] | [[Magic text:Storage free (internal)|Storage free (internal)]] | ||
+ | |||
+ | == List of known Hidden magic texts [Updated to v5.38] == | ||
+ | [[Hidden Magic text:Battery current average|Battery current average]] |
Revision as of 16:05, 1 November 2023
In many triggers, actions and constraints you will have the option to configure some textual fields. Often you will find a button next to the text entry field that contains the "..." label. This button will display a complete list of "magic text" fields that are available in the context that is being used. The magic text allows some other value to be substituted at the point of invocation, rather than standard static text that will never changed. For example it's possible to add and action that reference a variable via magic text and that variable's value will be substituted at the point that action is run. Magic text can be written in 2 ways : Curly brackets {value} and square brackets [value]. Curly brackets aren't supported on very old versions like v5.20 and below but it's recommended to use it when interacting with dictionaries/arrays as with square brackets it can get confusing where you are very quickly.
List of magic texts (with explanations) [Updated to v5.38] [Work in progress]
Current Brightness (Android 9+ alternative)
Last known location (altitude)
Last known location (accuracy meters)
Current Volume (Media / Music)
Current Volume (System Sounds)
Current Volume (Bluetooth Voice)