logo elektroda
logo elektroda
X
logo elektroda
Dostępna jest polska wersja

Czy wolisz polską wersję strony elektroda?

Nie, dziękuję Przekieruj mnie tam

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

zaliczenie14 1512 1
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • GPIO26 relay input stays active high

    #1 20749188
    zaliczenie14
    Level 3  
    Posts: 59
    Rate: 9
    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.
    Attachments:
    • Solenoid valve control issue on ESP32 via OKY3030 OKYSTAR relay in Home Assistant schemat.png (446.14 KB) You must be logged in to download this attachment.
    • Solenoid valve control issue on ESP32 via OKY3030 OKYSTAR relay in Home Assistant Bez tytułu.png (12.17 KB) You must be logged in to download this attachment.
  • ADVERTISEMENT
ADVERTISEMENT