# MQTT to device Device Capabilities not working

**URL:** <https://community.homey.app/t/mqtt-to-device-device-capabilities-not-working/75778>\
**Category:** Questions & Help\
**Created:** [January 30, 2023, 9:48am UTC](https://community.homey.app/t/mqtt-to-device-device-capabilities-not-working/75778 "2023-01-30T09:48:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bulletcather](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bulletcather/32/13738_2.png) [@Bulletcather](https://community.homey.app/u/Bulletcather)\
**Post date:** [January 30, 2023, 9:48am UTC](https://community.homey.app/t/mqtt-to-device-device-capabilities-not-working/75778/1 "2023-01-30T09:48:12Z")

</div>

At the moment I am working on making 1 device for my Nissan Leaf. Had this to date in different virtual devices and it works.  
I downloaded and installed the Device Capabilities app here.  
I have created several fields within a device that I want to fill from MQTT.  
However, I cannot choose the values ​​of the MQTT in the Text field. I think thevariable is not seens as text but as number.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/f/0f987d60d33e8798497c56a9a5ea022ca4569a97.png)

---

<div class="post-metadata">

**Author:** ![OH2TH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oh2th/32/111414_2.png) [@OH2TH](https://community.homey.app/u/OH2TH)\
**Post date:** [January 30, 2023, 9:59am UTC](https://community.homey.app/t/mqtt-to-device-device-capabilities-not-working/75778/2 "2023-01-30T09:59:58Z")

</div>

Why not use [MQTT Hub](https://homey.app/en-us/app/nl.hdg.mqtt/MQTT-Hub/)’s MQTT device, and get the topics directly to device capabilies without a flow?

I used to do the flow trick you are trying, but then found MQTT device in MQTT Hub and made it so much simpler.

---

<div class="post-metadata">

**Author:** ![Bulletcather](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bulletcather/32/13738_2.png) [@Bulletcather](https://community.homey.app/u/Bulletcather)\
**Post date:** [January 30, 2023, 11:16am UTC](https://community.homey.app/t/mqtt-to-device-device-capabilities-not-working/75778/3 "2023-01-30T11:16:26Z")

</div>

I can not add a device with MQtt Hub.  
If i choose for add MQTT Hub device there is no add button

---

<div class="post-metadata">

**Author:** ![OH2TH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oh2th/32/111414_2.png) [@OH2TH](https://community.homey.app/u/OH2TH)\
**Post date:** [January 30, 2023, 3:21pm UTC](https://community.homey.app/t/mqtt-to-device-device-capabilities-not-working/75778/4 "2023-01-30T15:21:31Z")

</div>

Ah, that issue. The button is there, but hard to see

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

Same on the other pages. The next button is hard to see.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [January 30, 2023, 6:59pm UTC](https://community.homey.app/t/mqtt-to-device-device-capabilities-not-working/75778/5 "2023-01-30T18:59:20Z")

</div>

A sensor and ‘nummerveld’ can’t handle string (text) variables, even if it only holds numbers;  
You first have to convert the string variable to a numeric variable.  
_This works when the string variable holds numbers only_

 ![Screenshot from 2023-01-30 19-58-51](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/f/3fcc388eac0f2930ffc4b736a8433b8f7516b415.png)

---

<div class="post-metadata">

**Author:** ![Bulletcather](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bulletcather/32/13738_2.png) [@Bulletcather](https://community.homey.app/u/Bulletcather)\
**Post date:** [January 30, 2023, 10:22pm UTC](https://community.homey.app/t/mqtt-to-device-device-capabilities-not-working/75778/6 "2023-01-30T22:22:21Z")

</div>

Thanks for all the help.

It has already succeeded.

 ![Afbeelding van WhatsApp op 2023-01-30 om 23.20.58](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/e/de11851e0f539f67d2aa3ee8d320eaf0b68d470f.jpeg)
