-
Notifications
You must be signed in to change notification settings - Fork 68
Description
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