Explore Plans
Mobile menu Close menu
PushcutPushcut

Update a widget (to run a Shortcut when tapped)

This action will update the configuration of a widget and set the "on tap" action to run a Shortcut.

Developer info

API endpoint slug
pushcut.update_widget_on_tap_shortcut
Filter code method
Pushcut.updateWidgetOnTapShortcut.skip(string?: reason)
Runtime method
runAction("pushcut.update_widget_on_tap_shortcut", {})

Action fields

Widget Dropdown list

Label
Which widget?
Slug
widget
Required
true
Can have default value
false

Content Dropdown list

Label
Which content/design?
Helper text
The name of the content/design you'd like to display. Leave empty to use the default content for the widget.
Slug
content
Required
false
Can have default value
false

Inputs Text input > Long text

Label
What inputs?
Helper text
Inputs to be passed to the widget. Provide a newline-separated list, starting with the first input (i.e. [[input0]]) and ending with the last input.
Slug
inputs
Required
false
Can have default value
true
Filter code method
Pushcut.updateWidgetOnTapShortcut.setInputs(string: inputs)

Devices Checkboxes

Label
Which devices?
Helper text
Enter names of the devices to update. Leave empty to update all devices
Slug
devices
Required
false
Can have default value
false

Shortcut Dropdown list

Label
What Shortcut should run when the widget is tapped?
Slug
shortcut
Required
true
Can have default value
false

Input Text input > Other

Label
What input would you like provided to the shortcut?
Helper text
The shortcut's input value
Slug
input
Required
false
Can have default value
true
Filter code method
Pushcut.updateWidgetOnTapShortcut.setInput(string: input)

Run on automation server Dropdown list

Label
Should the Shortcut run on your Automation Server?
Helper text
When "yes", the HomeKit Scene will be submitted to run on your Automation Server rather than your local device
Slug
run_on_automation_server
Required
true
Can have default value
true
Filter code method
Pushcut.updateWidgetOnTapShortcut.setRunOnAutomationServer(string: runOnAutomationServer)