# Get value from MQTT and set a variable

**URL:** <https://community.homey.app/t/get-value-from-mqtt-and-set-a-variable/6090>\
**Category:** Questions & Help\
**Created:** [December 30, 2018, 12:01pm UTC](https://community.homey.app/t/get-value-from-mqtt-and-set-a-variable/6090 "2018-12-30T12:01:31Z")\
**Posts on this page:** 1\
**Showing post:** 41

<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:** [February 23, 2022, 12:26am UTC](https://community.homey.app/t/get-value-from-mqtt-and-set-a-variable/6090/41 "2022-02-23T00:26:07Z")

</div>

Here’s a way to do this (hit the `v` icon on the right to view the flow)

> [@MQTT NodeRed values](https://community.homey.app/t/mqtt-nodered-values/60459/6):
>
> You’re welcome. Yea, I left it for you to figure out grimacing It is possible, but is it better… There’s a disadvantage: As you can see, there’s a delay needed. While the shortest delay possible is ONE whole second, using 2 flows makes it respond quicker. In the previous 2 flow example, the 2nd flow fires as soon as the numeric var has changed…

---

_[View the full topic](https://community.homey.app/t/get-value-from-mqtt-and-set-a-variable/6090)._
