Set Brightness / SetBrightness (internally is.workflow.actions.setbrightness
)
This action requires that Shortcuts has permission to use WFSiriAccessResource.
description
summary
Sets the device brightness.
usage
SetBrightness number
arguments
brightness: Slider Number (Docs)
Default Value: 0.5
Allows Variables: true
Accepts a number
or variable
with a number.
source json (for developers)
{
"ACECommandClass": "SASettingSetBrightness",
"ACESettingValueKey": "WFBrightness",
"ActionClass": "WFSetBrightnessAction",
"ActionKeywords": [
"screen",
"display",
"backlight"
],
"Category": "Scripting",
"Description": {
"DescriptionSummary": "Sets the device brightness."
},
"IconName": "Brightness.png",
"InputPassthrough": true,
"Name": "Set Brightness",
"Parameters": [
{
"Class": "WFSliderParameter",
"DefaultValue": 0.5,
"Description": "If you set the brightness using a variable, use a number between 0 and 1 (for example, pass 0.5 for half brightness).",
"Key": "WFBrightness",
"Label": "Brightness"
}
],
"RequiredResources": [
"WFSiriAccessResource"
],
"Subcategory": "Device"
}