Remote GPIO control with remote_rpi_gpio - Entities not visible

I’m running the latest version of Hassio (2020.12.7) on an RPi 4. I have a Pi Zero running Rasbian Lite with pigpiod running on startup.

In HA I have the following switch setup for controlling the GPIOs on the remote Pi

# Remote GPIO
switch:
  - platform: remote_rpi_gpio
    host: 10.19.88.158
    ports:
      17: Icemaker

The configuration is valid but after a reboot I don’t see an entity for the switch. I know that there are some problems and issues with the remote GPIO control but I’m at a loss as to why I’m not even seeing an entity appear.

Thoughts?

1 Like

Probably just another half-arsed implementation of an integration (many of them are). Raise an issue on github.

So just as an update to this. I ended up just using a command line switch that SSHs into the other Pi and triggers a script that hits the momentary switch. Eventually I’ll combine the scripts and write something that checks if it’s on or off. Right now if I trigger the On script twice it will actually turn it off.

# Remote GPIO
  - platform: command_line
    switches:
      icemaker_switch:
        command_on: ssh -i /config/ssh_keys/IcemakerKey -o 'StrictHostKeyChecking=no' [email protected] 'sudo python3 /icemaker/public/python/sw1_on.py'
        command_off: ssh -i /config/ssh_keys/IcemakerKey -o 'StrictHostKeyChecking=no' [email protected] 'sudo python3 /icemaker/public/python/sw1_off.py'
        friendly_name: Icemaker
3 Likes