# How to send a command using MQTT client

**URL:** <https://community.homey.app/t/how-to-send-a-command-using-mqtt-client/98849>\
**Category:** Apps\
**Tags:** app\
**Created:** [December 24, 2023, 3:05pm UTC](https://community.homey.app/t/how-to-send-a-command-using-mqtt-client/98849 "2023-12-24T15:05:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Huub\_Van\_Vilsteren](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/huub_van_vilsteren/32/16602_2.png) [@Huub\_Van\_Vilsteren](https://community.homey.app/u/Huub_Van_Vilsteren)\
**Post date:** [December 24, 2023, 3:05pm UTC](https://community.homey.app/t/how-to-send-a-command-using-mqtt-client/98849/1 "2023-12-24T15:05:29Z")

</div>

Hello All,

I don’t know how to send a MQTT command to my NibePi. ([Haal meer uit je NIBE warmtepomp met nibepi - Duurzame energie en installaties - GoT](https://gathering.tweakers.net/forum/list_messages/2106834))

What I want to do is to set a temperature on topic of Nibe\modbus\47393\set

Via MQTT explorer I’m able to do so, so technically it could work.

 ![Knipsel1](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/a/4a362234669edf9f665795e241151176da32cc2e.jpeg)

However if I create the following flow it does not seem to work.

 ![Knipsel2](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/3/8308983bdc3e65ee01c5cc8198ac94b355812ab9.jpeg)

What am I missing?

Thanks in advance  
Excuses in advance, maybe there are already topics adressing similair issues, sorry for my lack of knowledge 😉

---

<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:** [December 25, 2023, 2:31am UTC](https://community.homey.app/t/how-to-send-a-command-using-mqtt-client/98849/2 "2023-12-25T02:31:34Z")

</div>

##### ~~pls try to keep the topics centralized, by using the dedicated app topics. You’ll find the links at the homey.app store app pages.~~

#### for MQTT Client is no dedicated app topic as it appears…

Hello Huub,

Hmmm seems OK.  
Are you sure the target temp value tag you use has max. 1 digit? I mean, a value with more digits might be ignored by nibe modbus. Just a brainfart.

I’d say always first test the card with a manually entered value, instead of a tag…  
Or add a round function  
`{{ round ([ingestelde temperatuur] ,1) }}`

> ![Screenshot_20231225-032526_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/7/d7cc8d91929e30f3f13f031b5fd77c6e77d92d55.jpeg)

.  
Also, be careful with writing `Nibe` instead of `nibe`, which are two different things outside the world of MS Windows.  
But no problem, in your MQTT client card’s screenshot it’s written correctly.

---

<div class="post-metadata">

**Author:** ![Huub\_Van\_Vilsteren](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/huub_van_vilsteren/32/16602_2.png) [@Huub\_Van\_Vilsteren](https://community.homey.app/u/Huub_Van_Vilsteren)\
**Post date:** [December 25, 2023, 11:31am UTC](https://community.homey.app/t/how-to-send-a-command-using-mqtt-client/98849/3 "2023-12-25T11:31:15Z")

</div>

I send the command to 47393 instead of 47398. It works now. Thanks for your help.  
Not my sharpest moment I would say

---

<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:** [December 25, 2023, 10:06pm UTC](https://community.homey.app/t/how-to-send-a-command-using-mqtt-client/98849/4 "2023-12-25T22:06:18Z")

</div>

Ah! Missed on that one as well 😬😉
