Somfy-Developer / Somfy-TaHoma-Developer-Mode

A collection of requests to use a local API with Somfy TaHoma gateways
147 stars 12 forks source link

I need an example curl command to open/close a blind #79

Closed HeraldCoupe closed 1 year ago

HeraldCoupe commented 1 year ago

I've managed to get to the point where I have a token but I can't figure out how to open or close a blind. Does anyone have a working curl example they they can share?

an-mediola commented 1 year ago

Check #15

HeraldCoupe commented 1 year ago

I got there eventually. I imported my curl into Postman and ran it from there. At least I have a starting point now. In case others are also struggling, here is my curl:

curl --location --request POST \ 'https://gateway-mypin.local:8443/enduser-mobile-web/1/enduserAPI/exec/apply' \ --header 'accept: application/json' \ --header 'Authorization: Bearer mytoken' \ --header 'Content-Type: application/json' \ --data-raw '{ "label": "MyLabel", "actions": [ { "commands": [ { "name": "down" } ], "deviceURL": "rts://mypin/16774015" } ] }'