# Webcore Setspeed Help

**URL:** <https://forum.bondhome.io/t/webcore-setspeed-help/1534>\
**Category:** Integrations\
**Created:** [May 30, 2020, 5:02pm UTC](https://forum.bondhome.io/t/webcore-setspeed-help/1534 "2020-05-30T17:02:57Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![smckdwn989](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.bondhome.io/smckdwn989/32/75_2.png) [@smckdwn989](https://forum.bondhome.io/u/smckdwn989)\
**Post date:** [May 30, 2020, 5:02pm UTC](https://forum.bondhome.io/t/webcore-setspeed-help/1534/1 "2020-05-30T17:02:57Z")

</div>

So I’m trying to get setspeed to work in webcore, where am I going wrong?

concat(text(“[http://192.168.xx.xxx/v2/devices/"),DeviceID,text("/actions/SetSpeed1](http://192.168.xx.xxx/v2/devices/%22),DeviceID,text(%22/actions/SetSpeed1)”))

i already know the deviceid and concat function is fine as increasespeed works without any issues.

---

<div class="post-metadata">

**Author:** ![marcio](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.bondhome.io/marcio/32/210_2.png) [@marcio](https://forum.bondhome.io/u/marcio)\
**Post date:** [May 31, 2020, 7:13pm UTC](https://forum.bondhome.io/t/webcore-setspeed-help/1534/2 "2020-05-31T19:13:13Z")

</div>

The action is `SetSpeed`, you need to do a PUT to `http://192.168.xx.xxx/v2/devices/{deviceID}/actions/SetSpeed` with a HTTP body `{"argument":1}`

You can check the docs here:  
[http://docs-local.appbond.com/#tag/Device-Actions](http://docs-local.appbond.com/#tag/Device-Actions)

---

<div class="post-metadata">

**Author:** ![smckdwn989](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.bondhome.io/smckdwn989/32/75_2.png) [@smckdwn989](https://forum.bondhome.io/u/smckdwn989)\
**Post date:** [May 31, 2020, 9:42pm UTC](https://forum.bondhome.io/t/webcore-setspeed-help/1534/3 "2020-05-31T21:42:31Z")

</div>

So in tried this to no avail.

 ![Screenshot_20200531-174147_Chrome](https://us1.discourse-cdn.com/flex019/uploads/bond1/original/1X/cdc4fd3c8b18b2203527bb733b4dc08eb5712791.jpeg)

---

<div class="post-metadata">

**Author:** ![marcio](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.bondhome.io/marcio/32/210_2.png) [@marcio](https://forum.bondhome.io/u/marcio)\
**Post date:** [June 1, 2020, 2:58pm UTC](https://forum.bondhome.io/t/webcore-setspeed-help/1534/4 "2020-06-01T14:58:50Z")

</div>

Your URL should be:

```auto
concat(text(“http://192.168.xx.xxx/v2/devices/"),DeviceID,text("/actions/SetSpeed”))

```

Request body type should be `application/json` or something similar  
Request body should be `{"argument":1}`  
Authorization Header should be

```auto
"Bond-Token": "yourbondtokenhere"

```

---

<div class="post-metadata">

**Author:** ![smckdwn989](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.bondhome.io/smckdwn989/32/75_2.png) [@smckdwn989](https://forum.bondhome.io/u/smckdwn989)\
**Post date:** [June 1, 2020, 5:42pm UTC](https://forum.bondhome.io/t/webcore-setspeed-help/1534/5 "2020-06-01T17:42:00Z")

</div>

![image](https://us1.discourse-cdn.com/flex019/uploads/bond1/original/1X/075cbce51e6cf8454c9901539e9928b56216f48b.png)

 ![image](https://us1.discourse-cdn.com/flex019/uploads/bond1/original/1X/36dadfdc060826351a4d0d7e949b96f34f9b1297.png)

created a new string variable for the bondtoken as suggested and changed settings, and it’s still not working.

---

<div class="post-metadata">

**Author:** ![marcio](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.bondhome.io/marcio/32/210_2.png) [@marcio](https://forum.bondhome.io/u/marcio)\
**Post date:** [June 1, 2020, 7:04pm UTC](https://forum.bondhome.io/t/webcore-setspeed-help/1534/6 "2020-06-01T19:04:09Z")

</div>

I think your token is still wrong, try looking at this post:

> **[Integrating ceiling fans/fireplaces into WebCoRE using Bond bridge](https://community.webcore.co/t/integrating-ceiling-fans-fireplaces-into-webcore-using-bond-bridge/13228/4)**
>
> A couple notes on getting it working: Setting the auth token is a little tricky to get the syntax right on, be very careful to note exactly what I show in the screenshot. The token itself is a hex string, like ‘abcdef1234567890’. What I ended...

---

<div class="post-metadata">

**Author:** ![smckdwn989](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.bondhome.io/smckdwn989/32/75_2.png) [@smckdwn989](https://forum.bondhome.io/u/smckdwn989)\
**Post date:** [June 2, 2020, 1:35am UTC](https://forum.bondhome.io/t/webcore-setspeed-help/1534/7 "2020-06-02T01:35:03Z")

</div>

concat(text(“[http://192.168.86.141/v2/devices/"),DeviceID,text("/actions/ToggleLight](http://192.168.86.141/v2/devices/%22),DeviceID,text(%22/actions/ToggleLight)”)) works flawlessly which tells me the token is just fine. the issue is the argument, where/how I am supposed to implement it in webcore.

---

<div class="post-metadata">

**Author:** ![merck](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.bondhome.io/merck/32/1238_2.png) [@merck](https://forum.bondhome.io/u/merck)\
**Post date:** [June 2, 2020, 4:53pm UTC](https://forum.bondhome.io/t/webcore-setspeed-help/1534/8 "2020-06-02T16:53:20Z")

</div>

What error are you getting? Timeout? 401? 400? 500? We have descriptive error messages that should help point you in the right direction.

Where you put the argument (in the request body) seems OK.

---

<div class="post-metadata">

**Author:** ![smckdwn989](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.bondhome.io/smckdwn989/32/75_2.png) [@smckdwn989](https://forum.bondhome.io/u/smckdwn989)\
**Post date:** [June 2, 2020, 7:56pm UTC](https://forum.bondhome.io/t/webcore-setspeed-help/1534/9 "2020-06-02T19:56:54Z")

</div>

well I bypassed the commands altogether and added the bonds to webcore instead, and set it up with the setfanspeed(1) command and it’s working.
