Set Wi-Fi / setwifi (internally is.workflow.actions.wifi.set)

This action requires that Shortcuts has permission to use WFSiriAccessResource.

description

summary

Sets the device’s Wi-Fi to on or off.

usage

setwifi wifi=(true | false | variable)

arguments


wifi: Switch (Docs)

Default Value: true Allows Variables: true

Accepts a boolean or a variable.


source json (for developers)

{
	"ACECommandClass": "SASettingSetWiFi",
	"ACESettingValueKey": "OnValue",
	"ActionClass": "WFACESetWiFiAction",
	"ActionKeywords": [
		"airport",
		"wifi",
		"wi-fi",
		"wireless",
		"internet",
		"network",
		"wlan"
	],
	"Category": "Scripting",
	"Description": {
		"DescriptionSummary": "Sets the device’s Wi-Fi to on or off."
	},
	"IconName": "Wi-Fi.png",
	"InputPassthrough": true,
	"Name": "Set Wi-Fi",
	"Parameters": [
		{
			"Class": "WFSwitchParameter",
			"DefaultValue": true,
			"Key": "OnValue",
			"Label": "Wi-Fi"
		}
	],
	"RequiredResources": [
		"WFSiriAccessResource"
	],
	"Subcategory": "Device",
	"UnsupportedEnvironments": [
		"WatchOS"
	]
}