# Filtering of MQTT message

**URL:** <https://community.homey.app/t/filtering-of-mqtt-message/30103>\
**Category:** Flows\
**Created:** [May 19, 2020, 12:11pm UTC](https://community.homey.app/t/filtering-of-mqtt-message/30103 "2020-05-19T12:11:01Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [May 19, 2020, 12:59pm UTC](https://community.homey.app/t/filtering-of-mqtt-message/30103/2 "2020-05-19T12:59:43Z")

</div>

You can use Homeyscript for that:

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

The `mqttcaller` script extracts the caller and puts it in a tag:

```auto
const payload = JSON.parse(args[0]);
setTagValue('caller', { type: 'string', title : 'caller' }, payload.caller);
return true;

```

(for some reason, the tag title isn’t show in the Action card, just its green placeholder)

---

_[View the full topic](https://community.homey.app/t/filtering-of-mqtt-message/30103)._
