Hey folks,

Be gentle please. I’m just starting to dip my toe into ESPhome. I have a project where I’m DIY’ing a JBOD enclosure. I’m wanting to use an ESP to control power for the ATX PSU that will be used to power the HDDs.

So, two things:

  1. I’m looking for an ESP board that can be powered using the 5V standby on the PSU.
  2. Looking for a nudge on the ESP YAML to work as a switch.

Just buy something like this:

I have a bunch similar for my Xmas lights - sample yaml:

  name: xmas-led1
  platform: ESP8266
  board: esp01_1m

# Enable logging

# Enable Home Assistant API

  password: "b3aeb1316ee909151001d762aa219f65"

  ssid: "your_ssid"
  password: "your_password"
  # Enable fallback hotspot (captive portal) in case wifi connection fails
    ssid: "Xmas-Led1 Fallback Hotspot"
    password: "dwFAfhayTOJq"


  - platform: gpio
    pin: 00
    name: "Xmas LED1"
    inverted: true
1 Like

I should have included. The board will not be handling any of the power. It’s going to strictly be used to ground the “on” pin.

And because you will probably think of it and ask, this is how to add a physical button to these.

Connect a momentary push button to the GND pin and GPIO02. Add an id to the switch and an input, trigger and action:

  - platform: gpio
    pin: 00
    name: "Xmas LED1"
    id: xmas_led1_switch
    inverted: true

  - platform: gpio
      number: 02
        input: true
        pullup: true
      inverted: true
    name: "Xmas LED1 Toggle"
    device_class: power
      switch.toggle: xmas_led1_switch
1 Like

Am I missing it or do these only allow 3.3V for input?

The ESP chips are 3.3V only. Some development boards have a 3.3V power supply on them. I am using some of this board for a current project. Don’t let the WLED in the description mislead you. The board is simply a 3V3 regulator and a socket for an ESP8266-01. The output is labeled Vcc, Gnd and Sig., but Sig is just GPIO2. But since the ESP is a 3.3V device you still need a relay or data-level MOSFET to ground the PS_ON pin which is 5V.

Supply Voltage DC 5V

Care to elaborate?

It says in the ad “Supply Voltage DC 5V”

Also it has a AMS1117 voltage regulator to supply 3.3v to the esp. You can put 5v (or higher) in the input supply (the 2 head green screw block) and the AMS1117 will regulate the voltage to the esp.

The relay is specced higher, and is unrelated to the supply voltage.

Ty. That was the piece I was missing.

1 Like

Yeah you need to scroll and scroll to find it :slight_smile:

I power mine off cheap 5V wall warts.

Don’t forget to order an ESP01 programmer if you don’t have one - needed for the first flash only.

1 Like

I’ve used this in the past, worked well

I picked some of these up off Amazon (price came out to be pretty close). Was just able to get one setup and tested out. Thanks for the tip off!