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?