remote_rpi_gpio
The rpi_gpio integration is the base for all related GPIO platforms in Home Assistant. For the platform configurations, please check their corresponding sections.
The remote Raspberry Pi and the control computer where Home Assistant is running must be prepared to run remote_rpi_gpio, see details here.
Note that for virtual environments you may need to set an environment variable when starting the environment to set the pin factory, example:
Environment = GPIOZERO_PIN_FACTORY=pigpio PIGPIO_ADDR=YOUR_RPi_IP_ADDRESS
Binary Sensor
The remote_rpi_gpio binary sensor platform allows you to read sensor values of the GPIOs of a Remote Raspberry Pi.
Remote gpio raspberry что это
MarcScott Raspberry Pi Foundation Employee & Forum Moderator
Posts: 83 Joined: Sat Aug 08, 2015 11:30 am
Re: what is remote GPIO
Re: what is remote GPIO
Re: what is remote GPIO
Re: what is remote GPIO
Re: what is remote GPIO
Re: what is remote GPIO
BTW I don’t think you have to switch to using gpiozero but you would have to replace RPi.GPIO calls with remote pigpio calls
Re: what is remote GPIO
what port does it work on?
i know people will give me flag as its not secure etc to do
but i want to give it a try anyways controlling it over the internet. but yes i know its not secure etc
Re: what is remote GPIO
Re: what is remote GPIO
i blame my google skills then
Re: what is remote GPIO
i did a good look at the page
where is the conf file located?
my plas was to use raspi-config to turn it on, but i might want to change the default port its listning on
Re: what is remote GPIO
Maybe there is no configuration file?
Maybe configuration is accomplished by arguments passed to the pigpiod daemon when it is started?
At least, that’s what the author’s documentation appears to say:
http://abyz.me.uk/rpi/pigpio/pigpiod.html
pigpiod accepts the following configuration options
-p value Socket port 1024-32000 Default 8888
Re: what is remote GPIO
so if i enable it via raspi-config it just knows what port number is should listen on?
4. Configuring Remote GPIO¶
GPIO Zero supports a number of different pin implementations (low-level pin libraries which deal with the GPIO pins directly). By default, the RPi.GPIO library is used (assuming it is installed on your system), but you can optionally specify one to use. For more information, see the API — Pins documentation page.
One of the pin libraries supported, pigpio, provides the ability to control GPIO pins remotely over the network, which means you can use GPIO Zero to control devices connected to a Raspberry Pi on the network. You can do this from another Raspberry Pi, or even from a PC.
See the Remote GPIO Recipes page for examples on how remote pins can be used.
4.1. Preparing the Raspberry Pi¶
If you’re using Raspberry Pi OS (desktop — not Lite) then you have everything you need to use the remote GPIO feature. If you’re using Raspberry Pi OS Lite, or another distribution, you’ll need to install pigpio:
Alternatively, pigpio is available from abyz.me.uk.
You’ll need to enable remote connections, and launch the pigpio daemon on the Raspberry Pi.
4.1.1. Enable remote connections¶
On the Raspberry Pi OS desktop image, you can enable Remote GPIO in the Raspberry Pi configuration tool:
Alternatively, enter sudo raspi-config on the command line, and enable Remote GPIO. This is functionally equivalent to the desktop method.
This will allow remote connections (until disabled) when the pigpio daemon is launched using systemctl (see below). It will also launch the pigpio daemon for the current session. Therefore, nothing further is required for the current session, but after a reboot, a systemctl command will be required.