# Capability for ui: thermostat

**URL:** <https://community.homey.app/t/capability-for-ui-thermostat/125099>\
**Category:** Developers\
**Created:** [December 22, 2024, 8:44pm UTC](https://community.homey.app/t/capability-for-ui-thermostat/125099 "2024-12-22T20:44:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![H\_van\_Barneveld](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/h_van_barneveld/32/18371_2.png) [@H\_van\_Barneveld](https://community.homey.app/u/H_van_Barneveld)\
**Post date:** [December 22, 2024, 8:44pm UTC](https://community.homey.app/t/capability-for-ui-thermostat/125099/1 "2024-12-22T20:44:03Z")

</div>

Can anybody help me with example of capability.json within actual temp en requested temp with ui: thermostat?

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [December 22, 2024, 8:56pm UTC](https://community.homey.app/t/capability-for-ui-thermostat/125099/2 "2024-12-22T20:56:16Z")

</div>

You need a measure\_temperature and a target\_temperature for this UI element. One for current and one for target temperature.

---

<div class="post-metadata">

**Author:** ![H\_van\_Barneveld](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/h_van_barneveld/32/18371_2.png) [@H\_van\_Barneveld](https://community.homey.app/u/H_van_Barneveld)\
**Post date:** [December 22, 2024, 9:05pm UTC](https://community.homey.app/t/capability-for-ui-thermostat/125099/3 "2024-12-22T21:05:23Z")

</div>

Yes, I know. But are struggling how to merge both into one capability.  
Still getting errors.

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [December 22, 2024, 9:13pm UTC](https://community.homey.app/t/capability-for-ui-thermostat/125099/4 "2024-12-22T21:13:33Z")

</div>

Why one capability? You need both capabilities in one device.

---

<div class="post-metadata">

**Author:** ![Caseda](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/caseda/32/138695_2.png) [@Caseda](https://community.homey.app/u/Caseda)\
**Post date:** [December 22, 2024, 9:21pm UTC](https://community.homey.app/t/capability-for-ui-thermostat/125099/5 "2024-12-22T21:21:45Z")

</div>

They are automatically merged in 1 GUI element if the device’s class is `thermostat`, no need for a capability.json for this.

Might be that there are more classes now, as many have been added lately, but only know of thermostat currently.

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [December 22, 2024, 9:47pm UTC](https://community.homey.app/t/capability-for-ui-thermostat/125099/6 "2024-12-22T21:47:31Z")

</div>

Just add both capabilities to your driver.json

> <https://github.com/RonnyWinkler/io.home-assistant.community/blob/main/drivers%2Fclimate%2Fdriver.compose.json#L10>

target\_temperature has ui component thermostat assigned.

 ![Screenshot_20241222_224639_Firefox](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/1/f148e873589d01e68b5bbb0fc3201b1c0779b582.jpeg)

> **[Tutorial: Device Capabilities - Homey Apps SDK v3](https://apps-sdk-v3.developer.homey.app/tutorial-device-capabilities.html)**

---

<div class="post-metadata">

**Author:** ![H\_van\_Barneveld](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/h_van_barneveld/32/18371_2.png) [@H\_van\_Barneveld](https://community.homey.app/u/H_van_Barneveld)\
**Post date:** [December 23, 2024, 11:02am UTC](https://community.homey.app/t/capability-for-ui-thermostat/125099/7 "2024-12-23T11:02:51Z")

</div>

thanks, this helped! now i have both values shown in UI thermostat i only have struggles with the value that target\_temperature shows me. I can adjust setting but after that the UI reset to maximum value. Can i change that behavior somewhere? i’am reading the value and see in log it’s the right value

solved!!
