Install the free Scriptable app from the App Store.
Tap Copy script below, open Scriptable, tap +, paste, and name it Nest.
Long-press your Home Screen → + → Scriptable → pick Small or Medium → Add Widget. Long-press the widget → Edit Widget → Script: Nest.
Apple Shortcuts buttons
In Shortcuts, add Get Contents of URL, set Method, add the header below, and use a JSON body. Replace DEVICE_ID with one of the ids listed. Add the shortcut to your Home Screen for a one-tap button.
Keep this private — the script contains your widget key.