Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,


as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.


As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!



Smart Home Forum by FIBARO Team

POST request Wall Plug Action not working


Recommended Posts

Hello, I'm trying to make a method in my C# application which either turns on or off a Wall Plug.

If I'm using the POST method

Please login or register to see this link.

} on the  "FibaroIpAddress/docs" API website, it works e.g. when I type in 11 as deviceId and turnOn/turnOff in actionName.

the website then tells me that the request URL will look like this:  http://IpAddress/api/devices/11/action/turnOff   or  http://IpAddress/api/devices/11/action/turnOn


In my application I then use the same request URL with the code:

Please login or register to see this code.

But nothing happens when this runs. I've also tried this code:

Please login or register to see this code.

But nothing happens here either. 
I've use the same code for different GET requests or PUT requests (e.g. change name of device) and it works.

I've also tried to just run the request URL directly into my browser, but nothing happens there either.

Does someone know what I'm doing wrong?

Edited by BachelorBoysa
used POST instead of PUT
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...