1 / 4
ESP01 Wifi Relay Housing — image 1
1 / 4

ESP01 Wifi Relay Housing

Order a print of this model

We calculate the final price from your selected file. You review and accept it before payment.

Saved on this device.

DIY "Sonoff basic" style WIFI relay to use at your Home Assistant projects.

Rating
0 / 5
Likes
17
Downloads
122
Makes
0
Views
1,182
Reviews
0

Updated at source:

Model information

Category
Electronics
License
GNU General Public License v2.0

ESP-01s & ESP01 Relay V4.0 Housing

DIY WIFI AC Relay

(Flash your ESP module using EspHome Webtools online flasher)

Print tips:

  • PETG (Preferable)
  • 0.2 Layer height
  • No supports
  • Bed 70
  • Nozzle 235

Components:

  • 3D printed ESP01_Relay_Housing
  • 3D printed ESP01_Relay_Top
  • ESP8266 ESP01 (or 01s) WIFI module
  • ESP01 1ch relay V4.0 module
  • 110/220V - 5V 700ma step down module

Basic YAML code for EspHome: (I'm not a coder guy, might have a lot of errors if evaluated by a coder, but it works perfect for my needs).

esphome:
  name: nameofyourchoicewithoutspcesorcapitalletters

esp8266: board: esp01_1m

logger:

api:

ota: password: ""

wifi: ssid: YourNetworkSSID password: YourPassword

ap: ssid: "ESP Hotspot" password: “”

captive_portal:

binary_sensor:

  • platform: gpio pin: GPIO0 name: "state" id: estado

sensor:

  • platform: wifi_signal name: ${devicename} wifi signal update_interval: 60s

switch:

  • platform: gpio name: "Inverted" pin: GPIO0 id: relay inverted: False

  • platform: template name: "WIFI Relay" lambda: |- if (id(estado).state) { return false; } else { return true; }

    turn_on_action:

    • switch.turn_off: relay turn_off_action:
    • switch.turn_on: relay

Tags