lpt2007
(lpt2007)
September 10, 2021, 5:32pm
1
Hi I have strange problem with single channel relay connected to rpi3.
When I boot ha os it turns on automaticaly and I can not turn it off.
connection to rpi gpio:
vcc - 5V
gnd - gnd
in - gpio 27
I use gpio integration .
Here is configuration:
####################################################
## RPI - GPIO SWITCH
####################################################
##
- platform: rpi_gpio
invert_logic: True
ports:
### four chennel relay
##
# R4-3
4: rpi_relay_4_01_relay_03
# R4-4
17: rpi_relay_4_01_relay_04
# R4-1
3: rpi_relay_4_01_relay_01
# R4-2
2: rpi_relay_4_01_relay_02
##
# R1-1 single chennel relay
27: rpi_relay_1_01_relay_01
####################################################
## END OF CONFIGURATION FILE
####################################################
I also use 4 channel relay and works perfectly.
silvrr
September 10, 2021, 6:46pm
2
I believe this coil is looking for 5V on the input pin to trigger.
Try using a 5V pin (pin 2 or 4 on the Pi) and connecting to the input pin on the relay, does it open/close the relay? Do the same with a 3V pin (pin 1 or 17), I’m guessing the relay won’t open/close.
lpt2007
(lpt2007)
September 11, 2021, 8:39am
3
Thanks for answer @silvrr
does it open/close the relay?
Yes relay triggers when I restart ha os relay open/close (relay clicks), but I can’t control on/off from ha.
The same way I have connected 4 relay module and it works perfectly.
I am using the same relay like in this video .
Anyone have the same problem? Is this problem related to gpio integration ?
lpt2007
(lpt2007)
September 11, 2021, 12:10pm
4
I try fresh install ha os on rpi2 and only this single relay connected to gpio, and the result is same.
Relay only turn on on haos start and turn off if I shutdown ha. I can control it using gpio integration.
There must be a problem with gpio integration.
Anyone can try and confirm this?
Any solution?