Hi all,
I am trying to set up a rest sensor. I have a working curl command, but am unable to set up the configuration.
my curl command:
curl \
-X POST \
-d "username=me" \
-d "password=complicatedPassword" \
-d "other=data" \
https://super.web.site/info
what I tried to configure:
rest:
- resource: https://super.web.site/info
method: POST
params:
username: "me"
password: "complicatedPassword"
other: "data"
scan_interval: 60
sensor:
- name: "info"
json_attributes:
- "value"
And… it doesn’t work. Is this not equivalent ? How would this curl command translate in configuration ?
Any help appreciated