# ComfoAir connection via USB by ID

**URL:** <https://discourse.nodered.org/t/comfoair-connection-via-usb-by-id/66166>\
**Category:** General\
**Created:** [8 August 2022 08:16 UTC](https://discourse.nodered.org/t/comfoair-connection-via-usb-by-id/66166 "2022-08-08T08:16:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark.Resting](https://avatars.discourse-cdn.com/v4/letter/m/f14d63/32.png) [@Mark.Resting](https://discourse.nodered.org/u/Mark.Resting)\
**Post date:** [8 August 2022 08:16 UTC](https://discourse.nodered.org/t/comfoair-connection-via-usb-by-id/66166/1 "2022-08-08T08:16:12Z")

</div>

Hi,  
i have the node-red-comfoair node installed and i really like it!!!

The only thing is, that whenever there is a restart it could be that the comfoair is using a different USB port and i need to go to the code and change it,....

It would be so cool to implement the connection by usb ID to make sure it's alway working correct.

Maybe someone (@coolchip ) of you has an Idea or maybe can implement that in the node.

Thanx really a lot for this nice implementation!

Kind regards,  
Mark

---

<div class="post-metadata">

**Author:** ![FireWizard52](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/firewizard52/32/34508_2.png) [@FireWizard52](https://discourse.nodered.org/u/FireWizard52)\
**Post date:** [8 August 2022 09:03 UTC](https://discourse.nodered.org/t/comfoair-connection-via-usb-by-id/66166/2 "2022-08-08T09:03:04Z")

</div>

Hi,

If you use a Raspberry Pi, you might look at [PersistentUSBDevices - Domoticz](https://www.domoticz.com/wiki/PersistentUSBDevices)  
For other OS, you may google for persistent USB.

Regards

---

<div class="post-metadata">

**Author:** ![Josh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/josh/32/62208_2.png) [@Josh](https://discourse.nodered.org/u/Josh)\
**Post date:** [8 August 2022 11:37 UTC](https://discourse.nodered.org/t/comfoair-connection-via-usb-by-id/66166/3 "2022-08-08T11:37:10Z")

</div>

Hi why not use an MQTT node and assign the COM port dynamically?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [8 August 2022 16:51 UTC](https://discourse.nodered.org/t/comfoair-connection-via-usb-by-id/66166/4 "2022-08-08T16:51:29Z")

</div>

If you are using something like a Pi or a Linux based OS then, with the device unplugged, run  
`ls /dev/serail/by-id`  
then plug the device in and run it again. If you see a new entry, possibly something like

```auto
ls /dev/serial/by-id
usb-FTDI_USB __-__ Serial-if00-port0

```

then you can use that to identify the device, if the node will accept it, so in this case it would be  
`/dev/serial/by-id/usb-FTDI_USB __-__ Serial-if00-port0`

---

<div class="post-metadata">

**Author:** ![Mark.Resting](https://avatars.discourse-cdn.com/v4/letter/m/f14d63/32.png) [@Mark.Resting](https://discourse.nodered.org/u/Mark.Resting)\
**Post date:** [9 August 2022 18:39 UTC](https://discourse.nodered.org/t/comfoair-connection-via-usb-by-id/66166/5 "2022-08-09T18:39:38Z")

</div>

Jiiiiiiiha! many many thx for that hint! Works perfect!!!!!

While we are talking about that nice NODE,... is there also a way to get all the other Parameters aut of the "P" Menus also?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [23 August 2022 18:39 UTC](https://discourse.nodered.org/t/comfoair-connection-via-usb-by-id/66166/6 "2022-08-23T18:39:42Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
