IFTTT Call a HA script

Hi,
The last couple of days I have been struggling to get IFTTT working to call a HA script.
I want to call a script once our Rachio Smart Garden Sprinkler stop a zone.

I wanted to share how I got it working:

First create a script in HA for example rachio_off.yaml:

alias: 'rachio_off'
sequence:
- service: input_boolean.turn_off
  data:
    entity_id: input_boolean.rachio_switch_zone1
- service: input_boolean.turn_off
  data:
    entity_id: input_boolean.rachio_switch_zone2
- service: input_boolean.turn_off
  data:
    entity_id: input_boolean.rachio_switch_zone3
- service: input_boolean.turn_off
  data:
    entity_id: input_boolean.rachio_switch_zone4
- service: input_boolean.turn_off
  data:
    entity_id: input_boolean.rachio_switch_zone5

Next create a new applet in IFTTT with a web-request:

URL: https://www.mydomain.com:8123/api/services/script/rachio_off?api_password=MyPassword
Method: Post
Content Type: application/sjon
Body: {“entity_id”: [“script.rachio_off”]}

The main trick I got it working was placing the square brackets. All the samples I found in this blog or others where without.

A good place to debug your calls is: hurl.it

Interestingly, I have dozens of ifttt recipes to run scripts in HA, and I don’t use the square brackets for any of them.

{"entity_id": "script.movie_mode_on"}

Thank you. I tried that also. But did not work ?