-
-
Notifications
You must be signed in to change notification settings - Fork 28.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error while setting up platform remote_rpi_gpio #27724
Comments
i have the same error restarting hassio helps, then error is gone, restarting again, error is back, so its random ...
|
i reverted to 1.5.0 dependency , loaded it as a custom, but its the same |
hi @jgriff2 , are you codeowner? can you have a look at this issue? its very annoying, i have to restart hassio untill it works thnx a lot! |
@pergolafabio in the meantime, if you load as custom, set the dependency to 1.4.1 , then log into your homeassistant container and add the below lines to /bin/entry.sh:
then restart home assistant twice, you should be good |
Is it failing because of the depency? Is there no easier fix then this for the badpinfactory? Because for that workaround , you need to do it on each hassio update? |
hi @ashtonsmith i see several temp solutions, whats the difference with yours? from github issue : #25944
from community forums : https://community.home-assistant.io/t/remote-raspberry-pi-gpio/120306/45
|
It seems a problem related with HA, I have a raspberry pi zero w with the pigpiod daemon running and enabled for remote access, HA is running in an intel nuc. Testing remote gpio access from the command line with the pinout tool, first it try to connecto to localhost:8888 and fails because environment variables are not configured:
now I set the environment variables:
even reading my remote i2c TSL2561 sensor works:
now I start HA in the current shell with the same environment variables:
so it seems that HA is having a problem with the remote gpio component. |
I have the same error! |
Had this here also. Guess the plugin needs some love :) |
I get this error too, running hassio 0.103.5. No permenant fix at this point?
|
Yep - I'm getting this as well. It seems to be totally random... :-( |
@balloob and @frenck - still an issue on 0.105.2, although not surprising as I didn't see anything relating to GPIO (remote or otherwise) in the change logs. For my specific use case I'm trying to get a garage door relay to change and for the door to report its status - both super easy with GPIO as in fact you mention here. I was hoping that the addin being developed by @sp1k3ster that was ultimately rejected would solve my issues (as the remote part is easy to set up) but no joy. I'm happy to try a master/slave HA scenario, also as referenced as being super easy by you @balloob but that seems like overkill to just integrate with GPIO... but I'll give it a whirl. I've done some Googling but apart from the MQTT EventStream stating it's to connect two HA instances together I haven't been able to find anything concrete re seeing pin changes and sending relay commands... is there any documentation? Optimally remote_rpi_gpio will be fixed as that's by far the cleanest way of managing this specific garage door use case. Thanks for your continued dev work on Home Assistant - I'm looking forward to working with it a lot over the upcoming months. |
Same problem here. I'm trying to integrate PIR sensor from my RPI-based smart mirror. |
Revisiting this fix, which I've been using for a while, when upgrading to 0.107.x it looks like /bin/entry.sh has moved and I can't find it. Looking at the container data (I'm no expert) it looks like Init is just being called without any parameters. I foolishly modified init directly and it bricked my installation, I had to revert to a snapshot. For 0.107.x, which file should be modified to add those export lines? |
So we're now on 0.110.3, and I've been using the same custom integration of RemoteGPIO since February. Now I'm starting to get deprecation issues regarding SwitchDevice and BinarySensorDevice so I'm getting worried about the older custom integration dying on me. So I went totally native, ie no I removed the old remote GPIO integration and the 'None' error described above has come back. Also the current version of the RemoteGPIO addin is still using SwitchDevice, I expect that will get fixed up soon enough. So I'm going to use the current version of RemoteGPIO, extract it back as a custom integration, change the manifest back to 1.4.1 and hope for the best - both now and in the long term as I'm really relying on RemoteGPIO for a few activities (garage door and aircon) Cheers, |
I have the same issue since the beginning of this year. I use my remote gpio to read the watermeter with a proximity sensor. In the past some reboots of Hass fixes the problem and it was stable all the time (if I didn't restart Hass again). But since the last update and after many restarts the component won't start anymore... |
Hi all, I've taken some steps to get this working for me and I've had good success so far. I've created a brand new gpiozero package on PyPi, with only two differences to the original:
I've renamed it of course so it can be referenced in the manifest. So what I periodically do is grab the four files related to the remote_gpio integration from the home assistant core folder, save them in custom_components and then adjust the manifest to suit. That's far easier than my old fix of going into the container, making adjustments to gpiozero and then committing those changes. Here's the manifest that works for me, note the new package:
Regarding the IP hardcoding, I've noticed that, intermittently, for some reason the binding didn't work (although that was with an older version of the integration). Check out these two lines, extracts from init.py:
and
Historically I changed the PiGPIOFactory instantiation by forcing the 'host' parameter rather than it being fed in as the first optional parameter. Looking at the current source code there's no reason why just inferring the first parameter shouldn't always work, but this fix works for me so I'm leaving it alone:
So that's it - it works 100% of the time with the custom package versus less than 10% of the time with the built-in. Not ideal but neither is life so feel free to make use of this hack if you want. All I need now is a way of restarting the remote_gpio integration without restarting the whole of HA, if I have to reboot one of my misbehaving Raspberry Pis. Any thoughts on that? Cheers, |
Same issue, Error while setting up remote_rpi_gpio platform for binary_sensor. |
I had it working last night but I restarted today and been getting the same error since. Edit: This is a weird one. Randomly it started working again without me changing anything. I think it's because I restarted? |
Still broken in 0.115.6 / HassOS 4.13 / Supervisor v245 Logger: homeassistant.components.binary_sensor Error while setting up remote_rpi_gpio platform for binary_sensor |
Still broken! |
HassOS 4.17 / 0.118.4 rpi_gpio started working for me out of the blue on Dec2 2020. Hadn't worked for nearly 12-months since now and I didn't change anything. |
I tried setting this up on 2020.12.7 and seems to not work. Here's the log entry: Logger: homeassistant.components.binary_sensor Traceback (most recent call last): |
Ok, this is weird. I had GPIO 16 pulled to ground when I started doing this. I opened the door where this reed switch is and everything started working perfectly after a restart with the door open. It even survives a restart even when the door is closed. Maybe this will give a hint to a dev who understands the code. EDIT: spoke too soon. It survived one HASS restart. After that, the door has to be open to be able to restart without losing the remote_rpi_gpio. |
Same issue for me running HA core 2021.1.1. |
I've been on 2021.3.4 for 6 days and still have the same issue. I have not yet manually installed gpiozero-ha. |
Yeah. Sorry. I don't really understand why it works now in my installation. And that pr is not event in current release. So the dev branch still might be worth testing. |
i dont know how to install gpiozero-ha as when i use the Terminal in HA it tells me there is no such command pip but i thought maybe trying installing Supervised HA on Raspian OS because the gpio stuff is already installed so HA just used it.. but it didnt work.. i get error.. my current work around as i need HA to access other raspberry Pi GPIO pin to operate a sump pump on a timer .. but this is the error i get for remote rpi gpio running On Raspibian Supervised. `Logger: homeassistant.components.binary_sensor remote_rpi_gpio: Error on device update! |
I have the same problem as well. Seems to be a problem with the code and there isn't an attribute for the binary sensor? I'm not sure but I will experiment. |
I can confirm that with docker 2021.3.4 cover is working without installing custom components. Previously I get the same issues, but found a duplicate state/relay pin ID. |
Hi all - so sorry about my late reply, I've been flat out at work. gpiozero-ha was always supposed to be a short-term workaround until the core HA component was fixed. Sounds like 2021.3.4 sorts out connectivity at last (the issue I always had was related to a missing pin factory, gpiozero-ha just hardcoded the right one for a Pi). I'll give it a try on my install and let you know what happens. I will say that the problem was intermittent for me, although it was more likely to fail than not - note that according to Github, the remote_rpi_gpio component hasn't been touched for 5 months and the manifest is still referring to gpiozero 1.5.1, which it has for years. Hmm. Talk soon, EDIT |
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. |
hi guys any permenant fix planned for this issue? |
I’m using remote gpio for my garage controller and when the garage is closed and I reboot home assistant it will always fail to initialize. So I have to remember to have the garage opened if I plan to reboot home assistant. Hopefully this additional information will help the developer(s) to troubleshoot and finally correct this issue.
… On Jul 4, 2021, at 8:00 AM, Ghannes ***@***.***> wrote:
hi guys any permenant fix planned for this issue?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
@ficklma1 @Ghannes so you install Home Assistant on your remote Pi ... and you link the 2 Home assistants together and you have a Main Home assistant.. that controls the actions on the Remote Home Assistant.. for my use it was a Caller ID Display and Running a water Pump from either a timer. or pressing a physical button.. you can find the remote home assistant thing on there website... hope that helps.. least it was 1 way to get around things other then bashing your head off the wall waiting for a fix |
Hi @comet424 - just to be clear, you're referring to Home Assistant's REST API and the ability to call services with that? I've got a similar scenario re your garage, I'm controlling my aircon that way. The only issue I have is that it's a Gen1 Pi B+, installing HA on it makes it sooooo sloooooow, 20 minute boot times! I could use something like MQTT to send actions that an MQTT server on the remote PI would process and action, but remote_gpio is a perfect solution with the exception that the connection isn't resilient... |
It just needs to be changed on Home-Assistant side as it seems to be caused by using a wrong type: Just somebody needs to put some time in it :) |
@andystewart999 not not using the REST API i use the Remote Home Assistant.. where you control everything from the first home assistant works well so far |
so basiclly its Home Assistant A Home Assistant B both can communicate back and forth.. and the main one as i set it up 1 Way.. plus when i run it like this where the remotegpi pie cant work if main HA breaks down |
Ah yes, I'm familiar with that integration, love it. I use it to primarily pull sensor data from two other Pis running HA, and to control a switch for the garage door. I'd love to do the same for the final Pi, the one that controls the aircon relay, but I've got the following challenges:
I don't have to mess with that old Pi very often so the remote_gpio_connection, once it's up, is pretty robust. But I'm almost tempted to rip it out and start again, using Remote_HomeAssistant to make it that little bit more self-repairing... although it's only relatively recently that Remote_HomeAssistant took care of its own reconnection during outages! |
ah ok ya ya i went the remote home assistant way as i was having issues with the remote gpio problems when it broke plus it wasnt working and i couldnt get MQTT to work the way i wanted it to go.. so i was told about this.. it works well i use a push button to connected to thej gpio to trigger a relay i got plugged into other gpios.. and then i shoved a modem in there so i do a Caller ID so i run Raspbian, with Caller ID,, and i run Home Assistant on the Raspbian desktop. so i got all 3 running and works well for me.. as i was getting frustrated as i was going the route of Ardunino hooked to Raspberry pi.. but the Remote Home ASssistant works.. and its indepent.. as there was no one fixing the remote gpio issue plus it runs on its own as i having a problem right now with my main HA it will no longer boot in a VM its stuck.. so now pump Pi will still work even though my Main HA is down so that works for me.. as i have timers on the 2nd HA that runs just for the pump.. that i never touch just update it like once a month or twice a month but i hear ya you got it working the way you want but dont wanna reallly change it |
@comet424 in my case, I run HomeBridge on my Pi and expose the GPIO pins as switches ( |
@parautenbach |
annnd it's still busted |
Any news on this one? Today I tried to setup the It gives no error, and it doesn't work either... |
On which HA version? |
Sorry, precious information!
HA is running on a rpi 4b trying to remote control a rpi3 3B - tested the remote gpio control using another machine, which works. |
I have this same, error:
Configuration:
@cgarwood : Please reopen this issue. |
I just got back home from work, and went on straight to HA and the damn switch appeared and its everything working now. This is my current configuration: switch:
- platform: remote_rpi_gpio
host: 192.168.3.235
ports:
23: 3D Printer Light |
shit is this still not resolved thats so poor. |
This is an age old issue, which is closed. Please open a new one. |
Home Assistant V 0.100.2 hass.io installation
Description of problem:
After updating (didn't think to take a snapshot) remote_rpi_gpio can not set up
Problem-relevant
configuration.yaml
:Logfile output:
I have tried setting environment variables, however this is not helping, and the error does not specifically state that it could not set the pinfactory (like it used to)
Thanks
The text was updated successfully, but these errors were encountered: