Device actions

📡

Set Playback Destination

Sets playback destination to a device. Device The device to set playback destination to.

🎚

Set Volume

Sets the system volume. If you set the volume using a variable, use a number between 0 and 1 (for example, pass 0.5 for half volume).

🌓

Set Appearance

Changes system appearance (between Light/Dark).

📢

Play Sound

Plays the audio file passed as input, or a default notification sound if no audio file was passed.

🧩

Set Bluetooth

Sets the device’s Bluetooth to on or off.

🔋

Get Battery Level

Outputs the percentage of battery remaining as a number from 0 to 100.

🚪

Toggle Do Not Disturb

Turns Do Not Disturb on or off.

🥱

Set Low Power Mode

Sets the device’s Low Power Mode to on or off.

🔦

Set Flashlight

Turns on or off the flashlight near the device's camera.

💡

Set Brightness

Sets the device brightness.