Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 106357

NUT configuration for QNAP attached UPS

$
0
0

Homeassistant 2020.12.1 running in a Docker container on a QNAP server.

I tried following the example in https://www.home-assistant.io/integrations/nut/ specifying the IP address and UPS name in the configuration.yaml file. Attempting to access the device resulted in failure. I know from other code that access the QNAP NUT instance over the network, requires the timeout on a request to be increased.

Editing homeassistant/components/nut/init.py and changing the 10 to a 5000 in

async def async_update_data():
    """Fetch data from NUT."""
    async with async_timeout.timeout(10):
        await hass.async_add_executor_job(data.update)
        if not data.status:
            raise UpdateFailed("Error fetching UPS state"

has enabled the device to function correctly

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 106357

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>