WTH RESTFul integration require hardcoding request data in the config file?

What I would like instead is an option to call the Restful command service and fill all the parameters like in other services (instead of choosing hardcoded preset).

The data can be variablized and passed from a service call in an Automation or script.

This can already be done. It’s one of the examples as well.

e.g.

payload: "{{ {'a': foo, 'b': bar } }}"

and your service

service: rest_command.my_request
data:
  foo: xyz
  bar: abc 

In your payload, the result of foo goes into the foo variable, the result of bar goes into the bar variable.

1 Like