Skip to content

Configuration questions #239

@myriaxis

Description

@myriaxis

Problem/Motivation

Would like to clarify the HA NUT add-on configuration.

Expected behavior

Hope to get answers to my questions...

Actual behavior

My setup is HA running on Raspberry Pi powered by a CyberPower UPS.
I installed the HA NUT add-on to monitor the UPS.
I'm also using HA to update UDI ISY state variables.
I managed quickly to make it work with this config:

devices:
  - config: []
    driver: usbhid-ups
    name: CP1350AVR
    port: auto
mode: netserver
shutdown_host: 'false'
users:
  - actions: []
    instcmds:
      - all
    username: xxxxxx
    password: xxxxxx
i_like_to_be_pwned: false
list_usb_devices: true

During my testing, I noticed that the delay between a UPS event and the ISY state variables update is fairly long.
So, I started looking into POLLINTERVAL and POLLFREQ options for upsmon.
From the documentation I found, it seems that:
POLLINTERVAL is set to 2 seconds by default.
POLLFREQ is set to 30 seconds by default.

1st question: What are the values for POLLINTERVAL and POLLFREQ in the add-on?
2nd question: Can we modify them? If yes, how?
I tried to add the POLLFREQ option to the add-on.
Here is what I tried:

devices:
  - name: CP1350AVR
    driver: usbhid-ups
    port: auto
    config:
      - pollfreq = 5

Does it work like that?

Steps to reproduce

N/A

Proposed changes

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions