Hi there, i am quite new to REST commands and am struggling to get something working.
I am in a beta testing group for Slide a controller for curtains (great by the way, not sponsored )
I am trying to set up a rest_command so i can use their local API but have been struggling for quite some time.
When i use Postman i can control the curtains, this is what the code looks like: curl --location --request POST '192.168.68.208/rpc/Slide.SetPos' \ --header 'Authorization: Digest username="user", realm="iim", nonce="undefined", uri="/rpc/Slide.SetPos", algorithm="MD5", response="1eb8e0084bd3717c98bd9a668d73264d"' \ --header 'Content-Type: application/json' \ --data-raw '{ "pos": 0.1 }'
In my configuration.yaml i put following, tried i don’t know how many different setups but keep getting: Error. Url: http://192.168.68.208/rpc/Slide.SetPos. Status code 401.
This is an authentication failure…
Note that the ‘position’ in the shell command is divided by 100. The Slide API uses a float between 0-1, while Home Assistant uses a value between 0-100. Same is done for the position sensor, where the value from the API is multiplied by 100.