So do we do it then without the option of installing GPIO as an integration? I’ve been baffled for hours over this. I used to have HASSIO installed but I wasn’t happy that my Pi wasn’t able to function as anything else other than HASSIO.
tbh I’m struggling here. All of the documentation on the HA website points to Raspberry GPIO but as it isn’t available from the integrations list there seems to be no other way to get it. Is there an option to install from Github and do it that way manually through the terminal?
What integration list? If you mean the UI, than indeed, it is not there. These integrations are only configured via YAML, as documented in our current documentation
Maybe I’m missing something then? I’m running the December release, Home Assistant 2021.12.9, it isn’t there. Sorry, but I’m so used to just going into the integrations menu and installing it from there and hey presto, everything works. Not in this version though.
If you mean via the configuration.yaml then I’ve already tried that. In my previous version of HA Core that I ran up until yesterday morning the following yaml code worked, now it doesn’t
binary_sensor:
platform: rpi_gpio
ports:
06: Door Switch
19: Living Room PIR
13: Con PIR
12: Door PIR
pull_mode: “up”
Yes I know all of that but since changing over to the newer version nothing works now. Obviously I have everything setup and working with regards to HA being able to read my GPIO pins otherwise it wouldn’t be able to read the 1-wire sensors that I have connected.
I’m not able to read/write to GPIO pins such as reading the closed/open state for the connected PIR sensors as well as being able to pull up/down GPIO pins to switch a relay on or off. All of this used to be done through the use of the configuration.yaml
So, just to be clear, that is not about (or related to) anything that concerns the depreciation of GPIO in Home Assistant 2022.2; as that hasn’t been released yet.
OK, a few things going on here. I think you’re saying that there was no change to the GPIO support in version 12. So the problems @Reena is seeing may be due to some other change.
And thank you @frenck for posting here. It seems you’re the best one to answer a few questions I have.
For one thing, I’m very curious about how we’re supposed to monitor or control GPIO pins using an integration. The “GP” in GPIO stands for “General Purpose.” There are countless ways in which these pins can be used. Sounds like @Reena has a very elegant solution for her needs, and I have a very different one which suits mine. Is there a “General Purpose” integration we’ll both be able to use to access GPIO pins? Or does someone have to develop a specific integration for each possible purpose?
Then I wonder about communication. The HA documentation doesn’t give any indication that new users shouldn’t be using this function. In fact, throughout the HA beginner documentation, the use of a Raspberry Pi is encouraged.
Which brings me to my biggest question: Why?
Again, you’re probably the best one to answer that. GPIO pins are such a fundamental part of the RPi hardware. It seems like deliberately crippling this important function is short-sighted. The way both @Reena and I are using HA, the only solution I’ve heard proposed so far is to put another small, single-board computer like an ESP right next to the RPi, just to handle the GPIO communication and pass that, over WiFi, to the RPi running HA. Surely you can see how inelegant that solution is, given that the RPi running HA is already well suited to doing exactly that.
I think the point was made earlier that this change makes HA one of the only, if not the only, home automation system to cripple this core hardware function.