2,295 bytes added
, 11 January
== About ==
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
This action allows you to set the device's current default digital assistant.
This will (for example) allow you to switch dynamically between the Google default assistant and some other app when required.
</pre>
''''' Note: '''''
that the currently selected default digital assistant may not update correctly in the settings on some devices (but this should not effect the functionality).
<br/>
==<p><b>Configuration available</b></p>==
=== None ===
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
No default assistant, this will make for example that "OK google" or any other feature of another digital assistant does not work.
</pre><br/>
=== Others ===
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
You can define between any other application that has compatibility as assistance for example (MacroDroid, Google, Alexa etc).
</pre><br/>
==<p><b>Example</b></p>==
''''' With a widget button switch between Google support and MacroDroid. '''
<br>
<pre style="background-color: #AC2424; color: white; border-radius: 10px; padding: 10px;">
Triggers
Widget Button (Green)
</pre><br>
<pre style="background-color: #1665B0; color: white; border-radius: 10px; padding: 10px;">
Actions
Set Variable
assistant: (Invert)
</pre>
<pre style="background-color: #45289F; color: white; border-radius: 10px; padding: 10px;">
If
assistant = True
</pre>
<pre style="background-color: #1665B0; color: white; border-radius: 10px; padding: 10px;">
Actions
Set Digital Assistant
Google
</pre>
<pre style="background-color: #45289F; color: white; border-radius: 10px; padding: 10px;">
Else
</pre><br>
<pre style="background-color: #1665B0; color: white; border-radius: 10px; padding: 10px;">
Actions
Set Digital Assistant
Macrodroid
</pre>
<pre style="background-color: #45289F; color: white; border-radius: 10px; padding: 10px;">
End If
</pre><br>
<pre style="background-color: #387F3D; color: white; border-radius: 10px; padding: 10px;">
Constraints
</pre><br>
<pre style="background-color: teal; color: white; border-radius: 10px; padding: 10px;">
Local variables
assistant = False
</pre><br>