Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TYWE3S Support #852

Closed
sandman72 opened this issue May 10, 2018 · 4 comments
Closed

TYWE3S Support #852

sandman72 opened this issue May 10, 2018 · 4 comments
Labels
Milestone

Comments

@sandman72
Copy link

sandman72 commented May 10, 2018

I had some time today to play around with an EStink Wifi Smart plug strip ( https://amzn.to/2I9477J ). It's based on the TYW3S wifi controller modules that have an ESP8266 chip in them.

These work just like generic ESP8266 1M boards, but I had to manually reset it just before uploading.
Here is the TYWE3S module pinout for reference:

tywe3s

Here is a hardware definition for it if anyone is interested:

// ESTINK 4 USB ports plus 3 Relay
#elif defined(ESTINK_WIFI_RELAY)

// Info
#define MANUFACTURER        "ESTINK"
#define DEVICE              "WIFI_RELAY"

// Buttons
#define BUTTON1_PIN         16
#define BUTTON1_MODE        BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
//    #define BUTTON1_RELAY       1

// Relays
#define RELAY1_PIN          14  // USB power
#define RELAY2_PIN          13  // power plug 1
#define RELAY3_PIN          4   // power plug 2
#define RELAY4_PIN          15  // power plug 3

#define RELAY1_TYPE         RELAY_TYPE_NORMAL
#define RELAY2_TYPE         RELAY_TYPE_NORMAL
#define RELAY3_TYPE         RELAY_TYPE_NORMAL
#define RELAY4_TYPE         RELAY_TYPE_NORMAL

// LEDs
#define LED1_PIN            0   // power led
#define LED2_PIN            12  // power plug 1
#define LED3_PIN            3	// power plug 2
#define LED4_PIN            5   // power plug 3

#define LED1_PIN_INVERSE    1
#define LED2_PIN_INVERSE    1
#define LED3_PIN_INVERSE    1
#define LED4_PIN_INVERSE    1

#define LED2_MODE	LED_MODE_FOLLOW
#define LED3_MODE	LED_MODE_FOLLOW
#define LED4_MODE	LED_MODE_FOLLOW

#define LED2_RELAY	2
#define LED3_RELAY	3
#define LED4_RELAY	4
@xoseperez
Copy link
Owner

Nice. Do you want to do a PR with your configuration?

@xoseperez xoseperez added enhancement New feature or request device labels May 13, 2018
@sandman72
Copy link
Author

I haven't setup a git repo for it. It might be best/easiest if you just add it to the configuration.h

@xoseperez
Copy link
Owner

No problem. I can add it myself. Thank you!

@xoseperez
Copy link
Owner

Staged for release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants