logo elektroda
logo elektroda
X
logo elektroda

Solenoid valve control issue on ESP32 via OKY3030 OKYSTAR relay in Home Assistant

zaliczenie14 1029 1
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 20749188
    zaliczenie14
    Level 3  
    Hi, I'm a beginner with ESP and I'm making an automatic irrigation system on ESP32 and I'm having a problem controlling the solenoid valve. When power is applied to the relay (OKY3030 OKYSTAR) the red LED (power) is on and the green +SW is on all the time. In Home Assistant I wrote such a simple control:
    switch:
    - platform: gpio
    name: "Solenoid valve"
    pin: GPIO26
    restore_mode: ALWAYS_OFF
    In the HA panel I created a button with which I should control the valve, but it is on all the time. When this button is pressed, the green LED dims slightly. The 5V power supply is from the ESP (USB-C cable connected) and the solenoid valve is powered by 12V DC. I am adding the wiring diagram as an attachment. Please help me to solve the problem. Thank you in advance for your help.
  • ADVERTISEMENT
ADVERTISEMENT