I have an elementary grasp of all of this. Ive been googling for hours. I am trying to control a relay on a remote pi running raspbian lite. im trying to create some swimming pool controls. I am running HomeAssistant on a virtual machine on windows. I am using a GPIO on raspberrypi 1 connected via LAN.
i have updated the config.yaml with:
# Basic configuration.yaml entry switch:
- platform: rpi_gpio
switches:
- port: 18
name: "Fan Office"
- port: 27
name: "Light Desk"
pinout command in the pi said im using 18 and 27. the names are fillers until i can get it right.
i have a config error:
Platform error switch.rpi_gpio - Exception importing custom_components.rpi_gpio.switch
I have used the newest integration “Home Assistant Raspberry Pi GPIO Integration” from github.
I think i might be stuck here. I dont know what this means our where to input this command…
The simplest way to use devices with remote pins is to set the [PIGPIO_ADDR
]environment variable to the IP address of the desired Raspberry Pi. You must run your Python script or launch your development environment with the environment variable set using the command line. For example, one of the following:
$ PIGPIO_ADDR=192.168.1.3 python3 hello.py
$ PIGPIO_ADDR=192.168.1.3 python3
$ PIGPIO_ADDR=192.168.1.3 ipython3
$ PIGPIO_ADDR=192.168.1.3 idle3 &
is it in pi command, somewhere in HA, somewhere on the virtual machine??
Or maybe its something else entirely (Rpi 1 to old)?
Please help. And speak slowly and dumbly for me.