Skip to content
Maxim Prokhorov edited this page Sep 25, 2022 · 10 revisions

Unbranded Double Wifi Plug YT-E002

Info

The plug is equipped with a real ESP8266 with external flash on a module soldered 90° angle to the mainboard.

You can find the pictures on Pinterest now click here.

code/espurna/config/hardware.h

#elif defined(YT_E002)

    // Info
    #define MANUFACTURER                "YT"
    #define DEVICE                      "E002"

    // Buttons
    #define BUTTON1_PIN                 4
    #define BUTTON1_CONFIG              BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH | BUTTON_SET_PULLUP
    #define BUTTON1_RELAY               1
    #define BUTTON2_PIN                 13
    #define BUTTON2_CONFIG              BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH | BUTTON_SET_PULLUP
    #define BUTTON2_RELAY               2

    // Relays
    #define RELAY1_PIN                  12
    #define RELAY2_PIN                  15

    // LEDs
    #define LED1_PIN                    0
    #define LED1_PIN_INVERSE            1
    #define LED1_MODE                   LED_MODE_WIFI

code/platformio.ini

[env:yt-e002]
extends = env:esp8266-1m-base
build_src_flags = -DYT_E002

Home
Change log

Getting started

Supported hardware and options

Configuration

Integrations

Network

Developers

More around ESPurna

Clone this wiki locally