# How to generate node ID in openHAB server based on mysensor library

**URL:** <https://community.openhab.org/t/how-to-generate-node-id-in-openhab-server-based-on-mysensor-library/34307>\
**Category:** Other\
**Tags:** mysensors\
**Created:** [September 18, 2017, 6:17am UTC](https://community.openhab.org/t/how-to-generate-node-id-in-openhab-server-based-on-mysensor-library/34307 "2017-09-18T06:17:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Basavaraj](https://community.openhab.org/letter_avatar_proxy/v4/letter/b/6a8cbe/32.png) [@Basavaraj](https://community.openhab.org/u/Basavaraj)\
**Post date:** [September 18, 2017, 6:17am UTC](https://community.openhab.org/t/how-to-generate-node-id-in-openhab-server-based-on-mysensor-library/34307/1 "2017-09-18T06:17:13Z")

</div>

How to generate Node ID openHAB server.  
based on [[Selecting a Controller | MySensors - Create your own Connected Home Experience](https://www.mysensors.org/controller)]([http://Mysensor](http://Mysensor) controller) there are saying that node id can be generated in openHAB.but need a more clarification.

---

<div class="post-metadata">

**Author:** ![rlkoshak](https://community.openhab.org/user_avatar/community.openhab.org/rlkoshak/32/75251_2.png) [@rlkoshak](https://community.openhab.org/u/rlkoshak)\
**Post date:** [September 18, 2017, 4:03pm UTC](https://community.openhab.org/t/how-to-generate-node-id-in-openhab-server-based-on-mysensor-library/34307/2 "2017-09-18T16:03:36Z")

</div>

> [@Generate node id when request come from MQTT broker](https://community.openhab.org/t/generate-node-id-when-request-come-from-mqtt-broker/34197/5):
>
> OK, this is doable but it is probably more appropriate for some other server outside of OH to do it for you (e.g. python script with a database). This is not the sort of problem that OH was designed to solve and keeping a running list of all currently assigned IDs will be challenging. The ID needs to be unique, but are there any other requirements? For example, do they need to be sequential, a certain number of digits long, random, etc? That will drive how this would work. If I assume that th…
