HA-Raspberry-pi-GPIO-PWM icon indicating copy to clipboard operation
HA-Raspberry-pi-GPIO-PWM copied to clipboard

component failed to load

Open vlad2005 opened this issue 1 year ago • 1 comments

System Health details

HA-OS Core 2025.1.3 Supervisor 2024.12.3 Operating System 14.1 Frontend 20250109.0

Checklist

  • [x] I have enabled debug logging for my installation.
  • [x] I have filled out the issue template to the best of my ability.
  • [x] This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • [x] This issue is not a duplicate issue of currently previous issues..

Describe the issue

Hi! I try to use rpi_gpio_pwm component but can't use in UI. I installed using HACS and this is my configuration.yaml ` fan:

  • platform: rpi_gpio_pwm fans:
    • name: "RPI_Cooling_Fan" pin: 12 unique_id: y5rzotk4fx2vuyvrhtuwrn1u5bazxtia `

Reproduction steps

  1. install rpi_gpio_pwm
  2. create custom component in configuration.yaml
  3. restart HA ...

Debug logs

Logger: homeassistant.components.fan
Source: helpers/entity_platform.py:366
integration: Fan (documentation, issues)
First occurred: 12:22:58 (1 occurrences)
Last logged: 12:22:58

Error while setting up rpi_gpio_pwm platform for fan
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 366, in _async_setup_platform
    await asyncio.shield(awaitable)
  File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/rpi_gpio_pwm/fan.py", line 75, in setup_platform
    opt_args["pin_factory"] = PiGPIOFactory(
                              ~~~~~~~~~~~~~^
        host=fan_conf[CONF_HOST], port=fan_conf[CONF_PORT]
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/gpiozero/pins/pigpio.py", line 101, in __init__
    raise IOError('failed to connect to %s:%s' % (host, port))
OSError: failed to connect to localhost:8888

Diagnostics dump

No response

vlad2005 avatar Jan 24 '25 10:01 vlad2005

Hello, Have you installed the PIGPIO Add-on and is it well configured on Port 88888?

casse-boubou avatar Mar 08 '25 21:03 casse-boubou