Giter VIP home page Giter VIP logo

Comments (7)

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 elaborate on the issue you are facing, share your config, and specify what change you believe is necessary.

from addon-nut.

sblantipodi avatar sblantipodi commented on July 22, 2024

Please elaborate on the issue you are facing, share your config, and specify what change you believe is necessary.

this is my configution

sensor:
  - platform: nut
    name: "CyberPower PR1500ELCD"
    host: 40817795-nut
    username: user
    password: !secret nut
    resources:
      - ups.status.display
      - ups.timer.reboot
      - battery.voltage
      - ups.firmware.aux
      - ups.mfr
      - battery.runtime.low
      - ups.delay.shutdown
      - ups.load
      - ups.realpower.nominal
      - battery.charge.warning
      - battery.charge.low
      - ups.vendorid
      - ups.timer.shutdown
      - ups.test.result
      - ups.firmware
      - ups.productid
      - battery.runtime
      - battery.type
      - ups.model
      - ups.beeper.status
      - battery.charge
      - input.sensitivity
      - input.transfer.low
      - input.transfer.high
      - input.voltage
      - input.voltage.nominal
      - input.transfer.reason
      - output.current
      - output.frequency
      - output.voltage
      - output.voltage.nominal

and this is the addon config:

{
  "users": [
    {
      "username": "admin",
      "password": "XXX",
      "instcmds": [
        "all"
      ],
      "actions": []
    }
  ],
  "devices": [
    {
      "name": "myups",
      "driver": "usbhid-ups",
      "port": "auto",
      "config": []
    }
  ],
  "mode": "netserver",
  "shutdown_hassio": "false"
}

Love this addon so much, thanks guys.

I would like to have a config option to update the sensor value more often that the default one.
It seems that my sensors is updated every 30 seconds more or less, I would like to update it every 10 seconds at least.

Is it possible to add a parameter in the configuration to configure the polling interval (how often the sensor is updated)?

I think that this is necessary because outages, and most often voltage spikes or voltage fluctuations lasts from some milliseconds to some seconds.
with the sensor updating every 30 seconds, it's really difficult to know if some voltage fluctuations is occurring.

from addon-nut.

sinclairpaul avatar sinclairpaul commented on July 22, 2024

If you mean the sensor in HA, it would be part of the integration itself.

From what I can see here https://github.com/home-assistant/home-assistant/blob/7d506bc38b73f5a81649a0fe629f054ea5dbdae6/homeassistant/components/nut/sensor.py#L36

It looks to be 60 seconds.

GitHub
🏡 Open source home automation that puts local control and privacy first - home-assistant/home-assistant

from addon-nut.

sblantipodi avatar sblantipodi commented on July 22, 2024

If you mean the sensor in HA, it would be part of the integration itself.

From what I can see here https://github.com/home-assistant/home-assistant/blob/7d506bc38b73f5a81649a0fe629f054ea5dbdae6/homeassistant/components/nut/sensor.py#L36

It looks to be 60 seconds.

GitHub**home-assistant/home-assistant**🏡 Open source home automation that puts local control and privacy first - home-assistant/home-assistant

is it possible to configure that value?
can I lower that 60 seconds to 10 seconds?

GitHub
🏡 Open source home automation that puts local control and privacy first - home-assistant/home-assistant

from addon-nut.

sinclairpaul avatar sinclairpaul commented on July 22, 2024

You would need to log the issue on the sensor with the HA repo I'm afraid, I do not believe there is anything we can do at the addon level.

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.