![ESP01 Wifi Relay Housing](https://3dcrawler.ams3.digitaloceanspaces.com/thingiverse/6365109-ESP01-Wifi-Relay-Housing-3508426570.jpg)
ESP01 Wifi Relay Housing
Description
DIY "Sonoff basic" style WIFI relay to use at your Home Assistant projects. ESP01 Wifi Relay Housing ESP-01s & ESP01 Relay V4.0 Housing DIY WIFI AC Relay (Flash your ESP module using EspHome Webtools online flasher) 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(state).state) { return false; } else { return true; } turn_on_action: - switch.turn_off: relay turn_off_action: - switch.turn_on: relay
Statistics
Likes
0
Downloads
1