# Virtual device for average temp?

**URL:** <https://community.smartthings.com/t/virtual-device-for-average-temp/74317>\
**Category:** webCoRE\
**Created:** [January 18, 2017, 4:31am UTC](https://community.smartthings.com/t/virtual-device-for-average-temp/74317 "2017-01-18T04:31:04Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![calansvc](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/calansvc/32/45814_2.png) [@calansvc](https://community.smartthings.com/u/calansvc)\
**Post date:** [January 18, 2017, 4:31am UTC](https://community.smartthings.com/t/virtual-device-for-average-temp/74317/1 "2017-01-18T04:31:04Z")

</div>

Is it possible to create a virtual device of some type, and then populate it with an average temperature from CoRE?

I have a global variable that is an average of several temp sensors. I want to assign that value to some type of device (virtual thermometer?), and then display that device in SmartTiles.

---

<div class="post-metadata">

**Author:** ![tgauchat](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/tgauchat/32/49516_2.png) [@tgauchat](https://community.smartthings.com/u/tgauchat)\
**Post date:** [January 18, 2017, 4:35am UTC](https://community.smartthings.com/t/virtual-device-for-average-temp/74317/2 "2017-01-18T04:35:46Z")

</div>

I suspect that something like this is _best_ done with a simple SmartApp, unless you are really trying to avoid learning some Groovy.

I’ve not experimented enough with CoRE to see what’s easy, hard, and/or “impossible”; but when something is _really_ easy with a custom SmartApp (and not absolutely _trivial_ with CoRE…) I still highly recommend a custom SmartApp.

This is also not a unique use case for a SmartApp … so you may find it already written, or be able to make a contribution to the Community!

---

<div class="post-metadata">

**Author:** ![RLDreams](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/rldreams/32/18109_2.png) [@RLDreams](https://community.smartthings.com/u/RLDreams)\
**Post date:** [January 18, 2017, 5:08am UTC](https://community.smartthings.com/t/virtual-device-for-average-temp/74317/3 "2017-01-18T05:08:37Z")

</div>

I know that there are a couple of virtual thermostat apps that can take temperatures from multiple sensors. Not sure how it would implement into CoRE though.

---

<div class="post-metadata">

**Author:** ![calansvc](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/calansvc/32/45814_2.png) [@calansvc](https://community.smartthings.com/u/calansvc)\
**Post date:** [January 18, 2017, 5:45am UTC](https://community.smartthings.com/t/virtual-device-for-average-temp/74317/4 "2017-01-18T05:45:16Z")

</div>

> [@RLDreams](#):
>
> I know that there are a couple of virtual thermostat apps that can take temperatures from multiple sensors. Not sure how it would implement into CoRE though.

What is the best one, and where can I find it?

I assume that I can add the virtual thermostat to SmartTiles for a temperature display?

---

<div class="post-metadata">

**Author:** ![tgauchat](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/tgauchat/32/49516_2.png) [@tgauchat](https://community.smartthings.com/u/tgauchat)\
**Post date:** [January 18, 2017, 5:50am UTC](https://community.smartthings.com/t/virtual-device-for-average-temp/74317/5 "2017-01-18T05:50:46Z")

</div>

> [@calansvc](#):
>
> I assume that I can add the virtual thermostat to SmartTiles for a temperature display?

Correct.

As long as the DTH claims (and implements) Capability “Temperature” you can create a Temperature Tile.

---

<div class="post-metadata">

**Author:** ![whoismoses](https://avatars.discourse-cdn.com/v4/letter/w/e0b2c6/32.png) [@whoismoses](https://community.smartthings.com/u/whoismoses)\
**Post date:** [February 15, 2017, 2:33am UTC](https://community.smartthings.com/t/virtual-device-for-average-temp/74317/6 "2017-02-15T02:33:04Z")

</div>

I did something like this a long time ago. I can’t remember if it works. Feel free to give it a try. From what I remember you can ignore the “trigger” part and just use it to set the temperature of the virtual device.

> **[ericvitale/ST-Average-Temperature-Trigger](https://github.com/ericvitale/ST-Average-Temperature-Trigger)**
>
> ST-Average-Temperature-Trigger - This SmartThings SmartApp uses the average temperature of your temperature sensors and decides based on input to set your thermostat

---

<div class="post-metadata">

**Author:** ![cinghialino](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/cinghialino/32/20465_2.png) [@cinghialino](https://community.smartthings.com/u/cinghialino)\
**Post date:** [October 13, 2017, 8:22pm UTC](https://community.smartthings.com/t/virtual-device-for-average-temp/74317/7 "2017-10-13T20:22:21Z")

</div>

Sorry to ask you here, but for some reason I can’t set up the smartapp, always returning the error "Something’s wrong - We can’t load your screen right now."  
Tapping then the Retry button doesn’t do anything. Same result. Help please? Does the smartapp needs to be updated?

---

<div class="post-metadata">

**Author:** ![tgauchat](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/tgauchat/32/49516_2.png) [@tgauchat](https://community.smartthings.com/u/tgauchat)\
**Post date:** [October 13, 2017, 8:49pm UTC](https://community.smartthings.com/t/virtual-device-for-average-temp/74317/8 "2017-10-13T20:49:11Z")

</div>

Do you have a screenshot by any chance?

You might be encountering a temporary SmartThings platform problem; or, well, the IDE environment can be pretty fussy sometimes and it’s easy to annoy it with a little mistake 😉.

---

<div class="post-metadata">

**Author:** ![cinghialino](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/cinghialino/32/20465_2.png) [@cinghialino](https://community.smartthings.com/u/cinghialino)\
**Post date:** [October 17, 2017, 5:04am UTC](https://community.smartthings.com/t/virtual-device-for-average-temp/74317/9 "2017-10-17T05:04:40Z")

</div>

no sorry, I got annoyed by it (but really more at smartthings for not making it easy to do such things) and I uninstalled it completely.

---

<div class="post-metadata">

**Author:** ![tgauchat](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/tgauchat/32/49516_2.png) [@tgauchat](https://community.smartthings.com/u/tgauchat)\
**Post date:** [October 17, 2017, 5:22am UTC](https://community.smartthings.com/t/virtual-device-for-average-temp/74317/10 "2017-10-17T05:22:21Z")

</div>

> [@cinghialino](#):
>
> I got annoyed by it (but really more at smartthings for not making it easy to do such things)

Yah… SmartThings definitely rides the line between _fun_ challenge and … _annoying_ challenge.

If you swing around again, don’t hesitate to post here. Your use case - averaging the temperature of multiple sensors - is actually something that would be pretty difficult or downright impossible with most of the competition, believe it or not.

SmartThings may not make it super easy (especially if this is your first customization), but the resulting success would be really cool!
