Script ACTIVATE button

Is there any way to force a script to display an ACTIVATE button, instead of a switch? It seems to have automatically changed to a switch on some of my scripts after adding some delays.

What you’ve described is the way things work. If you have a delay in the script, you get an on/off toggle.

In a pinch, you could use an input_boolean or similar to trigger the script via action (have the script turn off the boolean when it’s done). Bit of overkill.

But I bet in reality, there’s a better way to trigger that script - automation rather than remote control.

Take a look at this

1 Like

Awesome, i’ll try that tonight! Thanks.

Yeah, I hear what you are saying. The only problem is, these scripts are basically my lighting ‘Scenes’. I’m having to use scripts to introduce short delays between changing brightness and color_temp, for some reason my Ikea Tradfri light (via Smartthings MQTT bridge, not the Ikea hub) misbehave when trying to set the values via the light or homeassistant platform. So i’ve written scripts to change the values via MQTT manually.

Worked perfectly, thanks!