ESP01 Wifi Relay Housing
Obliczymy ostateczną cenę na podstawie wybranego pliku. Sprawdzisz ją i zaakceptujesz przed płatnością.
Zapisane na tym urządzeniu.
DIY "Sonoff basic" style WIFI relay to use at your Home Assistant projects.
- Ocena
- 0 / 5
- Polubienia
- 17
- Pobrania
- 122
- Wydruki
- 0
- Wyświetlenia
- 1182
- Oceny
- 0
Aktualizacja u źródła:
Informacje o modelu
- Źródło
- Printables
- Kategoria
- Electronics
- Licencja
- 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: nameofyourchoicewithoutspcesorcapitallettersesp8266:
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
