home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
74.11k stars 31.1k forks source link

problem APCUPSd connecting to RIELLO UPSMON+POWERSHIELD SW #23318

Closed pilot1981 closed 5 years ago

pilot1981 commented 5 years ago

Home Assistant release with the issue: home assistant 0.91.4

Last working Home Assistant release (if known): N/A

Operating environment (Hass.io/Docker/Windows/etc.): HASSIO (supervisor 160)

Component/platform: APCUPSd

Description of problem:

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):


apcupsd:
  host: 192.168.1.101
  port: 33000

sensor:
  - platform: apcupsd
    resources:
      - bcharge
      - linev
      - loadpct
      - status
      - timeleft
      - model

Traceback (if applicable):

Unable to prepare setup for platform apcupsd.sensor: Could not set up all dependencies.
Unable to set up dependencies of apcupsd.sensor. Setup failed for dependencies: apcupsd
Setup failed for apcupsd: Component failed to initialize.
Failure while testing APCUPSd status retrieval.
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/apcupsd/__init__.py", line 48, in setup
    DATA.update(no_throttle=True)
  File "/usr/local/lib/python3.7/site-packages/homeassistant/util/__init__.py", line 224, in wrapper
    result = method(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/apcupsd/__init__.py", line 84, in update
    self._status = self._get_status()
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/apcupsd/__init__.py", line 79, in _get_status
    return self._parse(self._get(host=self._host, port=self._port))
  File "/usr/local/lib/python3.7/site-packages/apcaccess/status.py", line 37, in get
    sock.connect((host, port))
ConnectionRefusedError: [Errno 111] Connection refused

Additional information: I connected UPS RIELLO IPLUG600 via USB to mac min with mac os x and installed successful software UPSMON+powershield, it connected successful with UPS; it opened 33000 port; please see below link of vendor software:

https://www.riello-ups.it/downloads/1-powershield-free

But HASSIO isn't able to connect to mac mini with software UPSMON+powershield

stale[bot] commented 5 years ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.