# How to create automatic mqtt

**URL:** <https://discourse.nodered.org/t/how-to-create-automatic-mqtt/6069>\
**Category:** General\
**Created:** [22 December 2018 18:03 UTC](https://discourse.nodered.org/t/how-to-create-automatic-mqtt/6069 "2018-12-22T18:03:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![iotteknoloji](https://avatars.discourse-cdn.com/v4/letter/i/71e660/32.png) [@iotteknoloji](https://discourse.nodered.org/u/iotteknoloji)\
**Post date:** [22 December 2018 18:03 UTC](https://discourse.nodered.org/t/how-to-create-automatic-mqtt/6069/1 "2018-12-22T18:03:58Z")

</div>

Hi, I want to design smart home systems. But I have a problem. I have too many devices. and all of these devices will be sold to different people. user needs to add node-red e device with simple settings. I can introduce the server IP address and what the device needs to do. The problem is that you have to add this device and add it automatically on the node-red and it's supposed to come in. Thank you in advance for your valuable comments.

---

<div class="post-metadata">

**Author:** ![riplatt](https://avatars.discourse-cdn.com/v4/letter/r/77aa72/32.png) [@riplatt](https://discourse.nodered.org/u/riplatt)\
**Post date:** [22 December 2018 19:45 UTC](https://discourse.nodered.org/t/how-to-create-automatic-mqtt/6069/2 "2018-12-22T19:45:04Z")

</div>

Hi,  
If i understand what you are trying to do is to use node-red as a gateway for smaller devices and as a consumer adds a new device, a flow or node has to be added to node-red gateway so the devices works.

If this close to what you are trying to do then I would look at the API interface and add the calls to your New Device Wizard/Setup interface/app, have a look at [POST /flow](https://nodered.org/docs/api/admin/methods/post/flow/) in the docs.

Hope that helps,  
Regards
