Light Group Brightness

I am trying too set the brightness of a group of lights using IFTTT but when I try it IFTTT says okay and nothing happens.

I have no errors in HA.

Script:

  light_brightess:
   sequence:
  - service: homeassistant.turn_on
    data:
      entity_id: '{{ entity_id }}'
      brightness: '{{ brightness | multiply(2.55) | int }}'

IFTTT:
lights to # %

http://XXX.XXX.XXX.XXX/api/services/script/light_brightess?api_password=MYPASSWORD

{“entity_id”: “group.lrlights”,“brightness”:"{{NumberField}}"}

Try replacing data: with data_template:

No that still isnt working.

Could it be because its a group of lights and not a light?

It was because of the group.

I changed it to the below and it works now.

entity_id:
            - light.1
            - light.2
            - light.3