Rest Command brightness to build a template light

Strange data.

I would expect

service: rest_command.luke_dimmen
data:
  brightness: 10

You give both payloads where brightness is between double-quotes and not.
I not needed, try (notice the blank between the 3 “}”)

payload: '{"brightness": {{ brightness }} }'