home-assistant / operating-system

:beginner: Home Assistant Operating System
Apache License 2.0
5.06k stars 992 forks source link

PiFace does not work #238

Closed RikVerstijnen closed 5 years ago

RikVerstijnen commented 6 years ago

PiFace was working well in combination with ResinOS, but I can't get it to working after upgrading to HassOS.

config.txt:

kernel=u-boot.bin
disable_splash=1
dtparam=audio=on
dtparam=spi=on

Log:

Error during setup of component rpi_pfio
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/setup.py", line 148, in _async_setup_component
    component.setup, hass, processed_config)  # type: ignore
  File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/rpi_pfio.py", line 25, in setup
    pifacedigital = PFIO.PiFaceDigital()
  File "/usr/local/lib/python3.6/site-packages/pifacedigitalio/core.py", line 82, in __init__
    self.init_board()
  File "/usr/local/lib/python3.6/site-packages/pifacedigitalio/core.py", line 107, in init_board
    h=self.hardware_addr, b=self.bus, c=self.chip_select))
pifacedigitalio.core.NoPiFaceDigitalDetectedError: No PiFace Digital board detected (hardware_addr=0, bus=0, chip_select=0).
pvizeli commented 6 years ago

https://github.com/home-assistant/hassos/blob/dev/Documentation/boards/raspberrypi.md

RikVerstijnen commented 6 years ago

Thanks, @pvizeli. What does this tell about the PiFace extension board?

RikVerstijnen commented 5 years ago

Looks like this PR has solved my issues. I will close this one.