Determine USB Port on NUC HASSOS

I have been having trouble trying to figure out what port to use for my USB connected UPS device so I can run Network UPS Tools (NUT) as an addon.

I am running a NUC with the standard Hass.io install (HassOS as I understand)

I have seen the device connection registered as highlighted below

~ $ lsusb
Bus 002 Device 003: ID 1a86:e024
Bus 003 Device 001: ID 1d6b:0003
**Bus 002 Device 005: ID 0665:5161**
Bus 001 Device 001: ID 1d6b:0002
Bus 001 Device 002: ID 8087:8000
Bus 002 Device 001: ID 1d6b:0002
Bus 002 Device 004: ID 8087:07dc

The dev output looks like this

~ $ ls /dev/
core     fd       full     mqueue   null     ptmx     pts      random   shm      stderr   stdin    stdout   tty      ttyS0    ttyS1    ttyS2    ttyS3    urandom  zero

When I try each of the tty, ttyS01 etc in the NUT addon I get the following responses…

/dev/tty

Network UPS Tools - Megatec/Q1 protocol serial driver 1.57 (3.8.0-3220-g866b921892)
Fatal error: unusable configuration
Unable to open /dev/tty: No such device or address

/dev/ttyS0

Network UPS Tools - UPS driver controller 3.8.0-3220-g866b921892
Network UPS Tools - Megatec/Q1 protocol serial driver 1.57 (3.8.0-3220-g866b921892)
No supported UPS detected
Driver failed to start (exit status=1)

/dev/ttyS1

Network UPS Tools - UPS driver controller 3.8.0-3220-g866b921892
Network UPS Tools - Megatec/Q1 protocol serial driver 1.57 (3.8.0-3220-g866b921892)
tcgetattr(/dev/ttyS1): I/O error
Driver failed to start (exit status=1)

/dev/ttyS2

Network UPS Tools - UPS driver controller 3.8.0-3220-g866b921892
Network UPS Tools - Megatec/Q1 protocol serial driver 1.57 (3.8.0-3220-g866b921892)
tcgetattr(/dev/ttyS2): I/O error
Driver failed to start (exit status=1)

/dev/ttyS3

Network UPS Tools - UPS driver controller 3.8.0-3220-g866b921892
Network UPS Tools - Megatec/Q1 protocol serial driver 1.57 (3.8.0-3220-g866b921892)
tcgetattr(/dev/ttyS3): I/O error
Driver failed to start (exit status=1)

I do have a Wyze dongle working where the port is just specified as “auto” in the hassio config - my guess is this is on ttyS0 based on the above but perhaps my understanding of these ports is incorrect and both the wyze and the UPS are on ttyS0 and i need to adjust my NUT config to recognise the “Supported UPS”

Any help here would be appreciated. Hope I have provided enough information?

Open the web interface.
Click on Supervisor on the left panel
Click on System on the top right (or lower right if using a mobile device)
Click on the Hardware button

This should list all connected hardware and their respective ports.

OK so typical - I kept digging after I posted this and found the answer was right in front of me!

The NUT website lists two devices similarily labelled for my device and one uses driver blazer_ser and the other blazer_usb (and the latter requires a config item) - I didnt notice this difference first time around.

So my resolved configuration in the addon looks like the below and all works as expected. Once this was running I just used the new NUT integration to finish the configuruation on HASS and I now have the sensors in HA

devices:
  - name: myups
    driver: blazer_usb
    port: /dev/ttyS0
    config:
      - langid_fix = 0x0409