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

Problem with POST requests #40

Closed predond closed 2 years ago

predond commented 2 years ago

Hi, I am new to Somfy but I need to control blinds by Somfy local API in TaHoma Switch. I successfully get responses from GET request but when I send POST request to open blinds I got message: { "error": "Bad parameters. (\"actions is not a table\")", "errorCode": "INVALID_PARAMETER" }

Could you send me some example of POST requests so I can open my blinds or control anything else? If anyone of you used for that C# I will be very grateful if you could send example of connection in that language.

adriweb commented 2 years ago

See here https://github.com/Somfy-Developer/Somfy-TaHoma-Developer-Mode/issues/15#issuecomment-1115840769

predond commented 2 years ago

Okay, thanks, that worked. I have one more question then. What usage can I make from returned execId?

tetienne commented 2 years ago

You can use it to stop the command. See https://github.com/iMicknl/python-overkiz-api/blob/main/pyoverkiz/client.py#L615

predond commented 2 years ago

Thank you for answer. I am really grateful for this.