Giter VIP home page Giter VIP logo

Comments (9)

addons-assistant avatar addons-assistant commented on July 22, 2024

👋 Thanks for opening your first issue here! If you're reporting a 🐛 bug, please make sure you include steps to reproduce it. Also, logs, error messages and information about your hardware might be useful.

from addon-nut.

sinclairpaul avatar sinclairpaul commented on July 22, 2024

Please post you config, and post the addon log when the list_usb_devices option is set https://github.com/hassio-addons/addon-nut#option-list_usb_devices

GitHub
Network UPS Tools - Home Assistant Community Add-ons - hassio-addons/addon-nut

from addon-nut.

maslyankov avatar maslyankov commented on July 22, 2024

Config:

users:
  - username:
    password:
    instcmds:
      - all
    actions: []
devices:
  - name: apcsmart-ups
    driver: apcsmart
    port: /dev/ttyUSB0
    config: []
mode: netserver
shutdown_hassio: 'false'

Log:

[20:08:25] INFO: Connected USB devices:
Bus 001 Device 005: ID 0424:7800 Microchip Technology, Inc. (formerly SMSC) 
Bus 001 Device 004: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Bus 001 Device 003: ID 0424:2514 Microchip Technology, Inc. (formerly SMSC) USB 2.0 Hub
Bus 001 Device 002: ID 0424:2514 Microchip Technology, Inc. (formerly SMSC) USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

where Bus 001 Device 004: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
is the serial where the UPS is connected

from addon-nut.

sinclairpaul avatar sinclairpaul commented on July 22, 2024

From looking I don't believe that the driver supports a USB to Serial converter. However this is likely an issue with NUT itself, not the addon.

from addon-nut.

maslyankov avatar maslyankov commented on July 22, 2024

I have previously used Nut with this usb and UPS and it worked and read data.

from addon-nut.

maslyankov avatar maslyankov commented on July 22, 2024

When I run

sudo /lib/nut/apcsmart -D -a apc_smartups_sc620

with ups.conf:

[apc_smartups_sc620]
        driver = apcsmart
        port = /dev/ttyUSB1
        desc = "APC Smart-Ups SC 620"

I get all the data provided by the UPS. Still the same errors in addon-nut's log.

PS. Moved usb to ttyUSB1 to make sure nothing else is using it. Changed config accordingly. Still no better.

from addon-nut.

sinclairpaul avatar sinclairpaul commented on July 22, 2024

Cool, so it rules out the driver, which means it's likely either an issue with Docker, or Alpine.

The challenge is I have no way of duplicating this.

EDIT - As a thought, what happens when you set the port to AUTO and specify the vendor id or other options, such as:

port: auto
    config:
      - vendorid = 067b

from addon-nut.

sinclairpaul avatar sinclairpaul commented on July 22, 2024

@maslyankov We found an issue in which the ports where not being passed to the add on, please check again with the latest Edge release to see if it helps.

from addon-nut.

addons-assistant avatar addons-assistant commented on July 22, 2024

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

from addon-nut.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.