# With Webcore ending for ST, how do I continue to change a bulb color?

**URL:** <https://community.smartthings.com/t/with-webcore-ending-for-st-how-do-i-continue-to-change-a-bulb-color/247242>\
**Category:** SmartApps & Automations\
**Tags:** ifttt, webcore\
**Created:** [September 3, 2022, 1:11pm UTC](https://community.smartthings.com/t/with-webcore-ending-for-st-how-do-i-continue-to-change-a-bulb-color/247242 "2022-09-03T13:11:04Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![leanbarton](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/leanbarton/32/30898_2.png) [@leanbarton](https://community.smartthings.com/u/leanbarton)\
**Post date:** [September 3, 2022, 1:11pm UTC](https://community.smartthings.com/t/with-webcore-ending-for-st-how-do-i-continue-to-change-a-bulb-color/247242/1 "2022-09-03T13:11:04Z")

</div>

I currently use IFTTT from Weatherflow to send a webhook to webcore. Based on the temperature reading, webcore then changes the color of a light bulb in ST. Without webcore, and ST’s inability to change the color of a bulb in IFTTT, has anyone discovered another convoluted way to change a bulb color with connected services? I can’t wrap my mind around what’s possible.

Hubitat is never an option.

---

<div class="post-metadata">

**Author:** ![KenW48360](https://avatars.discourse-cdn.com/v4/letter/k/d26b3c/32.png) [@KenW48360](https://community.smartthings.com/u/KenW48360)\
**Post date:** [September 3, 2022, 2:02pm UTC](https://community.smartthings.com/t/with-webcore-ending-for-st-how-do-i-continue-to-change-a-bulb-color/247242/2 "2022-09-03T14:02:36Z")

</div>

I just wrote 8 routines for my furnace humidifier. It uses the built in Weather device’s temperature to toggle my humidifier on/off in 10 degree increments. It sounds like your bulbs aren’t directly ST compatible. If they were, you could do the same thing (If temp is \<x, \>x, or in the range x-y) set color to blue.

---

<div class="post-metadata">

**Author:** ![leanbarton](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/leanbarton/32/30898_2.png) [@leanbarton](https://community.smartthings.com/u/leanbarton)\
**Post date:** [September 3, 2022, 2:05pm UTC](https://community.smartthings.com/t/with-webcore-ending-for-st-how-do-i-continue-to-change-a-bulb-color/247242/3 "2022-09-03T14:05:06Z")

</div>

The bulbs are compatible, but the weather source is not as it’s from my backyard weather station. This is why I use IFTTT and webcore currently.

---

<div class="post-metadata">

**Author:** ![joshua\_lyon](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/joshua_lyon/32/12655_2.png) [@joshua\_lyon](https://community.smartthings.com/u/joshua_lyon)\
**Post date:** [September 3, 2022, 2:15pm UTC](https://community.smartthings.com/t/with-webcore-ending-for-st-how-do-i-continue-to-change-a-bulb-color/247242/4 "2022-09-03T14:15:54Z")

</div>

[SharpTools.io](http://SharpTools.io) supports webhooks (HTTP Triggers) that you can react to and send commands onto SmartThings.

HTTP Triggers are part of the premium tier, but if you have a weather device attached to your SmartThings account, you could react to that changing instead and send the command onto SmartThings as part of the free tier.

---

<div class="post-metadata">

**Author:** ![leanbarton](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/leanbarton/32/30898_2.png) [@leanbarton](https://community.smartthings.com/u/leanbarton)\
**Post date:** [September 4, 2022, 3:40pm UTC](https://community.smartthings.com/t/with-webcore-ending-for-st-how-do-i-continue-to-change-a-bulb-color/247242/6 "2022-09-04T15:40:47Z")

</div>

Thanks. I didn’t know Sharptools advanced so much. I got the webhook working, now I have to figure out how to get the temperature data from the webhook to affect a light. Thank you.

---

<div class="post-metadata">

**Author:** ![joshua\_lyon](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/joshua_lyon/32/12655_2.png) [@joshua\_lyon](https://community.smartthings.com/u/joshua_lyon)\
**Post date:** [September 4, 2022, 4:00pm UTC](https://community.smartthings.com/t/with-webcore-ending-for-st-how-do-i-continue-to-change-a-bulb-color/247242/7 "2022-09-04T16:00:01Z")

</div>

Check out the ‘ **How to pass data to a rule** ’ part of this article:

> **[How to trigger SharpTools rules using HTTP - SharpTools Knowledge Base](https://help.sharptools.io/article/51-how-to-trigger-sharptools-rules-using-http)**
>
> HTTP Triggers enable a rule to be triggered by a standard web request sent from a third party application or service, such as IFTTT, Zapier, Microsoft Power Aut

---

<div class="post-metadata">

**Author:** ![leanbarton](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/leanbarton/32/30898_2.png) [@leanbarton](https://community.smartthings.com/u/leanbarton)\
**Post date:** [September 4, 2022, 6:00pm UTC](https://community.smartthings.com/t/with-webcore-ending-for-st-how-do-i-continue-to-change-a-bulb-color/247242/8 "2022-09-04T18:00:05Z")

</div>

Thanks. I was able to get the data in and some ability to change bulb color. In webcore I had the bulb change at 70 degrees or lower for example, then 65 or lower, 60 or lower, etc.

When I do it in SharpTools it’s seeing all of the “or lower” statements and cycling through all the different colors set up. Is there a way to do a range of temperatures rather than one?

 ![snipping](https://global.discourse-cdn.com/smartthings/original/3X/d/0/d0a022b2fdc46e805bd53edb5c0090f80c707104.png)

---

<div class="post-metadata">

**Author:** ![joshua\_lyon](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/joshua_lyon/32/12655_2.png) [@joshua\_lyon](https://community.smartthings.com/u/joshua_lyon)\
**Post date:** [September 4, 2022, 6:16pm UTC](https://community.smartthings.com/t/with-webcore-ending-for-st-how-do-i-continue-to-change-a-bulb-color/247242/9 "2022-09-04T18:16:35Z")

</div>

You can add multiple conditions, use the else path, or reverse the order of your conditions (depending on your particular need)

```auto
IF temp <= 70 and temp > 65
THEN //do thing 1

IF temp <= 65 and temp > 60
THEN //do thing 2

IF temp < 60
THEN //do last thing for anything less than 60

```

---

<div class="post-metadata">

**Author:** ![leanbarton](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/leanbarton/32/30898_2.png) [@leanbarton](https://community.smartthings.com/u/leanbarton)\
**Post date:** [September 4, 2022, 7:02pm UTC](https://community.smartthings.com/t/with-webcore-ending-for-st-how-do-i-continue-to-change-a-bulb-color/247242/10 "2022-09-04T19:02:17Z")

</div>

Thanks again. That makes sense to add more than one condition. For some reason it’s just making my bulb the color blue, so I’ll have to check if the negative temperature ranges are being read instead of all the other conditions.

 ![snipping2](https://global.discourse-cdn.com/smartthings/original/3X/4/4/44c13fc4fea4f60978efcbfd07a215e2402453f7.png)

---

<div class="post-metadata">

**Author:** ![joshua\_lyon](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/joshua_lyon/32/12655_2.png) [@joshua\_lyon](https://community.smartthings.com/u/joshua_lyon)\
**Post date:** [September 4, 2022, 8:30pm UTC](https://community.smartthings.com/t/with-webcore-ending-for-st-how-do-i-continue-to-change-a-bulb-color/247242/11 "2022-09-04T20:30:17Z")

</div>

Keep in mind that the `setColor()` command in SmartThings accepts Hue as 0-100 whereas Hue is usually 0-360 in general color theory, so you may have to scale things accordingly.

If your device isn’t automatically showing the Color Picker in your rule editor, you can also Toggle the advanced switch in the top-right corner of the command block on and then change the data type on the left of the attribute to the color type.

---

<div class="post-metadata">

**Author:** ![leanbarton](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/leanbarton/32/30898_2.png) [@leanbarton](https://community.smartthings.com/u/leanbarton)\
**Post date:** [September 4, 2022, 11:18pm UTC](https://community.smartthings.com/t/with-webcore-ending-for-st-how-do-i-continue-to-change-a-bulb-color/247242/12 "2022-09-04T23:18:14Z")

</div>

Thanks again. That’s what it didn’t like. I was using the wrong hue. Found your math on the sharptools site, so if anyone is looking…

If regular hue is 240 then 240/360 \* 100 = 66.66, which is the new hue number in the 0-100 base.
