# MQTT , only a part of the topic

**URL:** <https://community.homey.app/t/mqtt-only-a-part-of-the-topic/91996>\
**Category:** Questions & Help\
**Created:** [October 16, 2023, 7:12pm UTC](https://community.homey.app/t/mqtt-only-a-part-of-the-topic/91996 "2023-10-16T19:12:15Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marc\_A](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marc_a/32/9579_2.png) [@Marc\_A](https://community.homey.app/u/Marc_A)\
**Post date:** [October 16, 2023, 7:12pm UTC](https://community.homey.app/t/mqtt-only-a-part-of-the-topic/91996/1 "2023-10-16T19:12:15Z")

</div>

hello can anyone help me , i have a mqtt broker running and in one topic i get multiple stats “humidity”=“34”;“temp”=“23”;…

how can i filter that i can use only for example the temp value?

---

<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:** [October 16, 2023, 7:33pm UTC](https://community.homey.app/t/mqtt-only-a-part-of-the-topic/91996/2 "2023-10-16T19:33:31Z")

</div>

You can use this Logics flowcard

 ![Screenshot from 2023-10-16 21-30-49](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/f/1f603cbb60bf8732e6d8692efb32f247ef0b1a9b.png)

I saved a string in a variable, and it only returns the value of `value2` (which could be `temp` or `humidity` in your case)

 ![Screenshot from 2023-10-16 21-29-56](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/4/84f5586c0e9e11d16b70c65f11ab4dcf2064e4bd.png)

In use with message trigger of MQTT Client, you can do something like this:

 ![Screenshot from 2023-10-16 21-41-03](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/c/6cb2bd1b1d13b15adf68f34b6e3b815f17541c9d.png)

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [October 16, 2023, 7:54pm UTC](https://community.homey.app/t/mqtt-only-a-part-of-the-topic/91996/3 "2023-10-16T19:54:39Z")

</div>

The described format isn’t JSON, though.

---

<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:** [October 16, 2023, 7:58pm UTC](https://community.homey.app/t/mqtt-only-a-part-of-the-topic/91996/4 "2023-10-16T19:58:20Z")

</div>

I thought it was an input error (“verkeerd overgetikt”) 🤭 while MQTT can use JSON format.  
We’ll find out later 😉

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [October 16, 2023, 8:08pm UTC](https://community.homey.app/t/mqtt-only-a-part-of-the-topic/91996/5 "2023-10-16T20:08:38Z")

</div>

> [@Peter\_Kawa](#):
>
> while MQTT can use JSON format

MQTT is format-agnostic, it can use pretty much anything.

---

<div class="post-metadata">

**Author:** ![Marc\_A](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marc_a/32/9579_2.png) [@Marc\_A](https://community.homey.app/u/Marc_A)\
**Post date:** [October 17, 2023, 9:53am UTC](https://community.homey.app/t/mqtt-only-a-part-of-the-topic/91996/6 "2023-10-17T09:53:37Z")

</div>

i don t have the flow card parse when i create a new advanced flow 🤔

---

<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:** [October 17, 2023, 1:00pm UTC](https://community.homey.app/t/mqtt-only-a-part-of-the-topic/91996/7 "2023-10-17T13:00:43Z")

</div>

It’s an action (Then) card, I guess you looked at the And cards category?  
How to spot: It has only one output ‘nipple’, so it can’t be an ‘And’ card.
