# \[DEPRECATED THREAD: visit community.webcore.co for assistance\] WebCoRE - Example Pistons

**URL:** <https://community.smartthings.com/t/deprecated-thread-visit-community-webcore-co-for-assistance-webcore-example-pistons/86060>\
**Category:** webCoRE\
**Tags:** core, webcore\
**Created:** [April 28, 2017, 7:44pm UTC](https://community.smartthings.com/t/deprecated-thread-visit-community-webcore-co-for-assistance-webcore-example-pistons/86060 "2017-04-28T19:44:20Z")\
**Posts on this page:** 1\
**Showing post:** 471

<div class="post-metadata">

**Author:** ![ahndee](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/ahndee/32/18084_2.png) [@ahndee](https://community.smartthings.com/u/ahndee)\
**Post date:** [July 24, 2017, 10:01pm UTC](https://community.smartthings.com/t/deprecated-thread-visit-community-webcore-co-for-assistance-webcore-example-pistons/86060/471 "2017-07-24T22:01:14Z")

</div>

> [@Nezmo](#):
>
> Again, I need to change this work with variables as this is an edit fest for anyone wanting to change it to their devices.

I reworked your piston to use any number of Thermostats - just add as many as you want to the initial `thermostatList` variable. I will create a tile for each thermostat and doesn’t require any editing of the piston (note that I only tried with a single thermostat but it should work with any number…).

 ![](https://global.discourse-cdn.com/smartthings/original/3X/b/5/b5adca1135b8adbe414d990c686b9264b080436a.png)

_Note: when using “Auto” rather than “Heat” or “Cool”, the `thermostatSetpoint` is `0` - I assume the `coolingSetpoint` and `heatingSetpoint` should be used instead._

---

_[View the full topic](https://community.smartthings.com/t/deprecated-thread-visit-community-webcore-co-for-assistance-webcore-example-pistons/86060)._
