aquaticus / nexus433

433MHz temperature and humidity sensor receiver that integrates with home automation systems.
GNU General Public License v3.0
191 stars 32 forks source link

“Request for line input failed” when runnings as addon #26

Closed CarstenHess closed 3 years ago

CarstenHess commented 3 years ago

Hi,

I’m working on a set of addon-scripts to install your nexus433 service as an addon on hass.io, and have it building, and can run the executable in verbose mode (starting it as a service comes later when it works).

But every time It tries to run the executable it responds “Request for line input failed.” - the addon has acces to /dev/gpiochip0 (evidenced by the fact that it doesnt output ano ofthe other gpio errors).

I was hoping that perhaps you could help me by explaining at bit about what this specific error means and what typically could cause this?

Thanks in advance

aquaticus commented 3 years ago

Hi try to run executable as root. If it helps, that means you have to set proper permssions for /dev/gpioXXXX.

aquaticus commented 3 years ago

The other reason is that other program already is using pin you confgured for receiver. Try to setup any other pin and see if you still got the same error.

CarstenHess commented 3 years ago

Thanks for your reply, I am already sudo'ing the executable, so I will have to try to switch pins - I'll let you now how it goes 😄

aquaticus commented 3 years ago

You can use gpioinfo tool (it's part of libgpiod if you compiled with tools enabled) to list pins and which program uses tham to diagnose the problem.

CarstenHess commented 3 years ago

The tip about the gpioinfo tool really helped, thanks! -- I've switched pin, and now it starts with no issues -- unfortunately it looks like my temperature sensor does not support the nexus protocol since I get no data at all, but that has nothing to do with your code 😸