Have I just accidentally made a switch in script.yaml?

I’m trying to get my lights to change brightness, then 5 minutes later, full brightness, then off, but it looks like I’ve made a switch (there’s a switch icon in the overview page). Anyway, here’s a bit of noob code:-

'1522017499831':
  alias: Goodnight
  sequence:
  - service: light.turn_on
    entity_id: light.yeelight_rgb_7811dca1ee8a
    data: 
      brightness: 80
  - service: light.turn_on
    entity_id: light.yeelight_rgb_7811dc6b7fdf
  - delay: 00:05
  - service: light.turn_on
    entity_id: light.yeelight_rgb_7811dca1ee8a
    data: 
      brightness: 255
  - service: light.turn_off
    entity_id: light.yeelight_rgb_7811dca1ee8a

Thanks.

Scripts will display a toggle in the interface if they have delays in so that you can stop them running if you need to.

If you specially want to override this and get the ACTIVATE button back, you need to add can_cancel: true for your script under customize.

Hope this helps.

Thanks, I knew there’d be a logical reason behind it. :+1: