Raspberry pi 4B
HA 2021.11.3 64B
I see in several older posts about getting the gpio that it is not running in the 64b image. is that still the case?
I made this addition in my configuration.yaml
# GPIO rain sensor
binary_sensor:
- platform: rpi_gpio
ports:
24: rainy_sensor
pull_mode: down
After restarting the core I see an entity
binary_sensor.rainy_sensor
but this entity is not showing in the panel with all the other binairy sensors.
I connect BCM input 24 with a 3,5V pin next to it but the sensor remains in the “on” state.
there is nothing to be found in the logfiles about this sensor.
I had the same configuration on the same hardware running Domoticz and it worked fine there but there I had to make some config changes on the Linuxlevel:
a. echo 24 > /sys/class/gpio/export
b. echo in > /sys/class/gpio/gpio24/direction
c. echo both > /sys/class/gpio/gpio24/edge
d. You have to give these commands every time you start linux, so it's smart to add these commands to a file like /etc/rc.local which gets called when the Pi boots.
But apparently HA makes these changes because the repective files exist in the /sys/class/gpio directory