# MQTT device: text item

**URL:** <https://community.homey.app/t/mqtt-device-text-item/83280>\
**Category:** Apps\
**Tags:** mqtt\
**Created:** [June 26, 2023, 6:57pm UTC](https://community.homey.app/t/mqtt-device-text-item/83280 "2023-06-26T18:57:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tjar](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tjar/32/61177_2.png) [@Tjar](https://community.homey.app/u/Tjar)\
**Post date:** [June 26, 2023, 6:57pm UTC](https://community.homey.app/t/mqtt-device-text-item/83280/1 "2023-06-26T18:57:41Z")

</div>

Dear readers,

I’m using the mqtt hub/cliënt on the Homey system but I have very limited options for displaying regular text like EV-charger statusses (charging, etc).  
I see track, album etc but not a regular text item.

How to approach?

Best regards,

---

<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:** [June 26, 2023, 10:30pm UTC](https://community.homey.app/t/mqtt-device-text-item/83280/2 "2023-06-26T22:30:41Z")

</div>

With the [Device Capabilities](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198) app’s advanced virtual devices, you can display text on tiles.  
 ![Screenshot_20230624-041346_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/6/463b733adb5411f774864a843a0dedb31fea8021.jpeg)

It can reflect any (mqtt) device capability **numeric** value

---

<div class="post-metadata">

**Author:** ![Tjar](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tjar/32/61177_2.png) [@Tjar](https://community.homey.app/u/Tjar)\
**Post date:** [June 27, 2023, 7:59am UTC](https://community.homey.app/t/mqtt-device-text-item/83280/3 "2023-06-27T07:59:02Z")

</div>

Dear @Peter_Kawa ,

thank you for pointing this out. I’ve installed the app and wonder how to link MQTT JSON based values to the Device Capabilities device. I suppose I’ve to import the MQTT devices and values manually using scripting and store them as (global) variables, then using them in the advanced capabilities device?

Now I’m using the MQTT HUB app for importing MQTT JSON values.

How should you approach?

best regards,

---

<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:** [June 28, 2023, 12:01am UTC](https://community.homey.app/t/mqtt-device-text-item/83280/4 "2023-06-28T00:01:01Z")

</div>

Ah, sorry, for status indicators with text values, you’d use this flowcard to set it.

 ![Screenshot from 2023-06-28 01-54-04](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/e/2eab07df15b1852e53931f804de3753ad8a53f9a.png)

The `$.status` in the screenshot above is just made up, idk how the contents of your JSON

Here’s an example of a JSON response and the flowcards used to filter items out

> [@\[APP\]\[Pro\] Knmi (Dutch weather, for Homey firmware v5 or above)](https://community.homey.app/t/app-pro-knmi-dutch-weather-for-homey-firmware-v5-or-above/34228/136):
>
> ```auto
> {
> "liveweer": [{
> "plaats": "Alkmaar",
> "timestamp": "1684891383",
> "time": "24-05-2023 03:23",
> "temp": "5.1",
> "gtemp": "3.5",
> "samenv": "Licht bewolkt",
> "lv": "97",
> "windr": "NW",
> "windrgr": "315",
> "windms": "2",
> "winds": "2",
> "windk": "3.9",
> "windkmh": "7.2",
> "luchtd": "1025.0",
> "ldmmhg": "769",
> "dauwp": "5",
> "zicht": "19",
> "verw": "Afwisseling van zon en wolken",
> "sup": "05:28",
> "sunder": "21:45",
> "image": "wolkennacht",
> "d0weer": "halfbewolkt",
> "d0tmax": "15",
> "d0tmin": "8",
> "d0windk": "4",
> "d0windknp": "12",
> "d0windms": "6",
> "d0windkmh": "22",
> "d0windr": "W",
> "d0windrgr": "270",
> "d0neerslag": "0",
> "d0zon": "45",
> "d1weer": "halfbewolkt",
> "d1tmax": "13",
> "d1tmin": "8",
> "d1windk": "2",
> "d1windknp": "6",
> "d1windms": "3",
> "d1windkmh": "11",
> "d1windr": "NO",
> "d1windrgr": "44",
> "d1neerslag": "10",
> "d1zon": "60",
> "d2weer": "halfbewolkt",
> "d2tmax": "18",
> "d2tmin": "9",
> "d2windk": "2",
> "d2windknp": "6",
> "d2windms": "3",
> "d2windkmh": "11",
> "d2windr": "NO",
> "d2windrgr": "44",
> "d2neerslag": "10",
> "d2zon": "40",
> "alarm": "0",
> "alarmtxt": ""
> }]
> }
> 
> ```
> 
> ![image51](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/0/209b548cdae6f49734db9a5bc432187e331e7d86.png)

---

<div class="post-metadata">

**Author:** ![Tjar](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tjar/32/61177_2.png) [@Tjar](https://community.homey.app/u/Tjar)\
**Post date:** [July 4, 2023, 9:54am UTC](https://community.homey.app/t/mqtt-device-text-item/83280/5 "2023-07-04T09:54:18Z")

</div>

Dear @Peter_Kawa ,

Thank you for sharing your flow. I just cant get the text displayed as tile status. This is my config:  
I’ve got an device with two properties: number (voltage) and status (text)

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/1/41eece9b1892b9e58f25fad14b5a5d7c2f77581a.jpeg)

The flow updates both fields but not the tile status. The text appears in the timeline tough.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/9/192a6bab746264bd5225b21ec4b4b052f8ee0a55.png)

I’m not sure my config is correct for the device status field (in repair).

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/6/2637b227b92a4ac33ccd5d499aa9af4fe06ad4ae.png)

Best regards,

---

<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:** [July 4, 2023, 1:35pm UTC](https://community.homey.app/t/mqtt-device-text-item/83280/6 "2023-07-04T13:35:34Z")

</div>

Yw!

In the mobile app, you have to pick the right status indicator before it is displayed on the tile 😊

 ![signal-2023-07-04-182538_002](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/9/09eb20ff7d710051f5820eee5eda09d7c135c44d.jpeg)

 ![signal-2023-07-04-182541_002](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/c/8ceae9b8304e85f35f0e661fdb819c6cffe8b600.jpeg)

And in the flowcard, make sure to also select YES at “optionally update mobile tile”.

### Idea / hint:

You can make use of the number field, f.i. you could enter the numeric tag [car\_voltage] in there!:  
`V. [status]`  
`[car_voltage]`  
(_the `V.` is just manually entered text here_)

Then you’ll get a status like this:  
`234 V. available `

This is way more clear with screenshots 😁

 ![Screenshot_20230704-154538_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/f/2f2f5b55caa6fbc872a42db2fc0b3a3da751785a.jpeg)

 ![Screenshot_20230704-155141_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/f/8ff88b7f458353141c082c7e424a664263bbf002.jpeg)
