# \[APP\]\[Pro\] MQTT Hub - Community version

**URL:** <https://community.homey.app/t/app-pro-mqtt-hub-community-version/113463>\
**Category:** Apps\
**Tags:** app, mqtt, homey-pro\
**Created:** [July 26, 2024, 3:58pm UTC](https://community.homey.app/t/app-pro-mqtt-hub-community-version/113463 "2024-07-26T15:58:53Z")\
**Posts on this page:** 1\
**Showing post:** 124

<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 13, 2024, 6:44am UTC](https://community.homey.app/t/app-pro-mqtt-hub-community-version/113463/124 "2024-12-13T06:44:18Z")

</div>

Short update based on a question on Github…

If you have topics using a custom mode list, you can’t set this on adding the device.  
But you can change the attributes of the enum capability later in device settings:

The capability update functionality updates all attributes set in the JSON. If you use the “values” element, this capability option is updated which sets the enum list.  
I just tried an example and it’s working if you set the mode list in correct JSON syntax. Add the “values” element, then add all entries to the array.

`{ "thermostat_mode": { "capability": "thermostat_mode", "stateTopic": "homie/homey-pro/heizung-buro/eurotronic-mode-spirit", "setTopic": "", "valueTemplate": "", "outputTemplate": "", "displayName": "Thermostat", "values":[{ "id": "mode1", "title": "Mode 1" }, { "id": "mode2", "title": "Mode 2" }] } }`

See documentation:

> **[Capabilities | Homey Apps SDK](https://apps.developer.homey.app/the-basics/devices/capabilities#enum-capability-options)**
>
> A capability is a programmatic representation of a device's state.

You can also add all language dependent titles if needed.

This way you get this mode list:  
[![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/f/ff559615f41086a8031ac0ab190ffb3339b13ac5.png)](https://private-user-images.githubusercontent.com/49495550/387391904-c1842199-2e91-451d-9943-b9847249ba34.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzQwNzIzNjQsIm5iZiI6MTczNDA3MjA2NCwicGF0aCI6Ii80OTQ5NTU1MC8zODczOTE5MDQtYzE4NDIxOTktMmU5MS00NTFkLTk5NDMtYjk4NDcyNDliYTM0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDEyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQxMjEzVDA2NDEwNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFjY2MxNzJmODllNDgyMDBmNDA0ZjYwZTYzYjFlODdhZThlNDQ3ZGUwZjhlZDVmM2FjYjNmYjU4MGVmNjA0MGYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.29G4N5RVUQzpspdgG9-Eg2M2PMQOYEmp1ubAnpswAGw)

---

_[View the full topic](https://community.homey.app/t/app-pro-mqtt-hub-community-version/113463)._
