Skip to content
Timo edited this page Oct 9, 2020 · 10 revisions

Unbranded Double Wifi Plug YT-E002

Modifications to the hardware.h

`#elif defined(YT_E002)

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

// Buttons
#define BUTTON1_PIN                 4
#define BUTTON1_MODE                BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
#define BUTTON1_RELAY               1
#define BUTTON2_PIN                 13
#define BUTTON2_MODE                BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
#define BUTTON2_RELAY               2

// Relays
#define RELAY1_PIN                  12
#define RELAY1_TYPE                 RELAY_TYPE_NORMAL
#define RELAY2_PIN                  15
#define RELAY2_TYPE                 RELAY_TYPE_NORMAL

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

Modifications to the platformio.ini

[env:yt-e002] board = ${common.board_1m} build_flags = ${common.build_flags_1m0m} -DYT_E002

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.

Home
Change log

Getting started

Supported hardware and options

Configuration

Integrations

Network

Developers

More around ESPurna

Clone this wiki locally