# Bond API Control Issue

**URL:** <https://forum.bondhome.io/t/bond-api-control-issue/1130>\
**Category:** Integrations\
**Created:** [December 18, 2019, 9:43pm UTC](https://forum.bondhome.io/t/bond-api-control-issue/1130 "2019-12-18T21:43:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![colinITS](https://avatars.discourse-cdn.com/v4/letter/c/5daacb/32.png) [@colinITS](https://forum.bondhome.io/u/colinITS)\
**Post date:** [December 18, 2019, 9:43pm UTC](https://forum.bondhome.io/t/bond-api-control-issue/1130/1 "2019-12-18T21:43:56Z")

</div>

So, I’m sending commands like this (w/ proper CR, hopefully)-

PUT /v2/devices//actions/SetSpeed HTTP/1.1Host: 192.168.1.110User-Agent: curl/7.54.0Accept: \*/\*BOND-Token: /Content-Length: 15Content-Type: application/x-www-form-urlencoded{“argument”: 3}

and I’m seeing changes on the Bond App (status updates to 3), however the fan does not move. If i push the speed 3 button on the App, the fan does go to speed three.

My javascript looks something like this-

‘PUT /v2/devices/’+g\_deviceid+’/actions/SetSpeed HTTP/1.1\r\nHost: ‘+g\_host+’\r\nUser-Agent: curl/7.54.0\r\nAccept: _/_\r\nBOND-Token: ‘+g\_bondtoken+’\r\nContent-Length: 15\r\nContent-Type: application/x-www-form-urlencoded\r\n\r\n{“argument”: ‘+speed+’}\r\n’

I have had this working (both app changes status and fan) but I’m totally stumped what (if anything) I’ve changed. I did update the firmware on the bond to the latest/greatest (2.10.8).

Any advice would be greatly appreciated, I’m sure its something stupid!

---

<div class="post-metadata">

**Author:** ![jacob](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.bondhome.io/jacob/32/312_2.png) [@jacob](https://forum.bondhome.io/u/jacob)\
**Post date:** [December 18, 2019, 9:51pm UTC](https://forum.bondhome.io/t/bond-api-control-issue/1130/2 "2019-12-18T21:51:53Z")

</div>

> [@colinITS](#):
>
> have had this working (both app changes status and fan)

Hmm… I don’t think anything around that part of the API was changed recently! So if you had it working before, that’s really interesting. Does the light on the Bond blink?

---

<div class="post-metadata">

**Author:** ![colinITS](https://avatars.discourse-cdn.com/v4/letter/c/5daacb/32.png) [@colinITS](https://forum.bondhome.io/u/colinITS)\
**Post date:** [December 18, 2019, 10:56pm UTC](https://forum.bondhome.io/t/bond-api-control-issue/1130/3 "2019-12-18T22:56:41Z")

</div>

I think something is broken on my end, i’ll do a bit more digging and see if I can get something repeatable…
