Esphome in home assistant 4ch relay problem

hi. I m Nurettin. I’m having a problem like in the video. please help :worried:

my esphome code:

esphome:
name: esp8266
platform: ESP8266
board: nodemcuv2

wifi:
ssid: “*"
password: "

logger:

api:

ota:

switch:

  • platform: gpio
    pin: D8
    name: “hol giriş”
    id: hol_giris
    inverted: yes
  • platform: gpio
    pin: D5
    name: “hol led”
    id: hol_led
    inverted: yes
  • platform: gpio
    pin: D6
    name: “hol spot”
    id: hol_spot
    inverted: yes
  • platform: gpio
    pin: D7
    name: “hol WC”
    id: hol_wc
    inverted: yes

relay input voltage: +5v
nodemcu input voltage: +5v
This problem occurs if I turn on all 4 relays
problem youtube videolink: https://www.youtube.com/watch?v=8Y5Eu-sZBP4

Kind of hard to tell from the video (plus I’m not familiar with the module you use). Are you powering all 4 relay coils directly from the esp regulator? Does that relay breakout have optoisolators? If yes and no, that may be your problem. Try measuring your esp 3v3 bus when you have all 4 relays on… does it drop volts? If so, the problem is likely an overloaded regulator. The fix might be to either wire in separate power, or use a relay board with optoisolators (I prefer to do both anytime I’m switching inductive loads from io pins).

thanks.
my part list: