Replies: 5 comments 2 replies
-
If it isn't listed in the documentation and isn't part of the device config, it cannot be changed and will be the defaults. I assume you are using the HA integration to look at state changes, which is local polling, so may take some time to update. The addon also fires events on UPS state changes, which are likely to be quicker, the details are listed in the documentation. |
Beta Was this translation helpful? Give feedback.
-
Thanks @sinclairpaul, If I understand correctly, the HA NUT integration, client side, will poll the server side, the NUT add-on, at the specified "scan interval" as specified in the HA NUT integration Configure/Option pop-up. Apparently, the scan interval can be between 10 and 300 seconds. I set it to 10 seconds which is fine for my HA dashboard update. On the other hand, I have a HA script that runs every 5 seconds to transfer the UPS status (values from the NUT add-on) to my ISY via state variables. If the NUT add-on refresh rate is more than 5 seconds, then it will impact the time it takes for my ISY to react. That's why I want to know the default values of POLLINTERVAL and POLLFREQ, and how to modify them in the NUT add-on. From the NUT add-on documentation page, under the option "devices", there is a reference link to ups.conf(5) where you find that POLLINTERVAL is optional and normally set to 2 seconds. As this option been specified in the NUT add-on? If yes, which default value has it been set to? Is it hardcoded or can we specify a new value in the add-on configuration? POLLINTERVAL and POLLFREQ are genuine Network UPS Tools configuration variables. I just want to know if these have been implemented in the HA NUT add-on project. |
Beta Was this translation helpful? Give feedback.
-
Thank you,
Both variables should be passed on. |
Beta Was this translation helpful? Give feedback.
-
Thank you! |
Beta Was this translation helpful? Give feedback.
-
@sinclairpaul I have a |
Beta Was this translation helpful? Give feedback.
-
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:
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:
Does it work like that?
Steps to reproduce
N/A
Proposed changes
N/A
Beta Was this translation helpful? Give feedback.
All reactions