# Update virtual temperature sensor

**URL:** <https://community.smartthings.com/t/update-virtual-temperature-sensor/221946>\
**Category:** Writing Device Types\
**Created:** [March 3, 2021, 7:41pm UTC](https://community.smartthings.com/t/update-virtual-temperature-sensor/221946 "2021-03-03T19:41:32Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![nayelyz](https://avatars.discourse-cdn.com/v4/letter/n/59ef9b/32.png) [@nayelyz](https://community.smartthings.com/u/nayelyz)\
**Post date:** [March 4, 2021, 5:57pm UTC](https://community.smartthings.com/t/update-virtual-temperature-sensor/221946/7 "2021-03-04T17:57:01Z")

</div>

Sure, no problem.  
For those devices that should show the temperature on the dashboard view (main tile), you need to make sure they send the unit in all the temperature events. This is because, in the dashboard, the value shown is the concatenated values of `{{temperature.value}} {{temperature.unit}}`. The accepted units are “F”, “C” and “K”.

You can create a custom [device presentation](https://smartthings.developer.samsung.com/docs/devices/device-profile.html#Device-Presentation) to change which capabilities are displayed in each view. If the VID property is not included, capabilities are displayed according to the default presentation assigned to the device.

To start working on this, you should install the SmartThings CLI, in the post below, you’ll find the steps for the installation and the device presentation creation.

> [@How to define main tile in new app](https://community.smartthings.com/t/how-to-define-main-tile-in-new-app/218224/6):
>
> Thanks @Andremain. Currently, the tiles configuration in the DTH is not taken into consideration, that’s why you need to create a device configuration as Andreas said. To do so, you need to set up the SmartThings CLI as follows: Download the latest release ([Releases · SmartThingsCommunity/smartthings-cli · GitHub](https://github.com/SmartThingsCommunity/smartthings-cli/releases)) Create a Personal Access Token, preferably selecting all the scopes ([SmartThings. Add a little smartness to your things.](https://account.smartthings.com/tokens)) Depending on your PC OS, you need to create the “@smartthings/cli” folder at the location indicated on the configuration page ([smartthings-cli/packages/cli/doc/configuration.md at main · SmartThingsCommunity/smartthings-cli · GitHub](https://github.com/SmartThingsCommunity/smartthings-cli/blob/master/packages/cli/doc/configuration.md)) Once you have the folder, you need to add there the “config.yaml” with your Personal Access Token created previously, it shou…

As a reference, this [post](https://community.smartthings.com/t/combining-two-dht-for-spa-cover-position-help-needed/220369/6) has more details about the Views. The tiles config in the DTH is no longer used.

Let me know if you have any questions.

---

_[View the full topic](https://community.smartthings.com/t/update-virtual-temperature-sensor/221946)._
