Hi all,
I have a problem to set a specific state of input_select, my command looks like: curl -X POST -H "x-ha-access: APIPASS" \ -H "Content-Type: application/json" \.-d '{"entity_id": "input_select.amplituner_input", "state": "CD"}' \ http://192.168.1.5:8123/api/services/input_select/select_option
Ok, so I used this command: curl -X POST -H "x-ha-access: APIPASS" \ -H "Content-Type: application/json" \.-d '{"entity_id": "input_select.amplituner_input", "option": "CD"}' \ http://192.168.1.5:8123/api/services/input_select/select_option
and… it doesn’t work
code of input_select is:
input_select:
amplituner_input:
name: amplituner input
options:
- Select
- CD
- DVD
initial: Select
curl: (6) Could not resolve host: input_select.amplituner_input,
curl: (6) Could not resolve host: option
curl: (3) [globbing] unmatched close brace/bracket in column 3
{"message": "Data should be valid JSON"}