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

Support for HBN Smart plug #2022

Closed
davebuk opened this issue Nov 28, 2019 · 2 comments
Closed

Support for HBN Smart plug #2022

davebuk opened this issue Nov 28, 2019 · 2 comments
Labels
enhancement New feature or request

Comments

@davebuk
Copy link
Contributor

davebuk commented Nov 28, 2019

Request for another device environment. Its an 'HBN Smart Plug' http://www.hbn-ergo.com/product/product-2-746.html

The model is BNC-50/E75T on the label. Internally it uses a TYWE2S chip. I used the SWA1 environment to build using the following settings. The LED function can then be set in the web UI for what ever function the user wants.

IMG_20191126_144852
IMG_20191126_144706
IMG_20191126_144613

#elif defined(LINGAN_SWA1)
// Info
    #define MANUFACTURER        "LINGAN"
    #define DEVICE              "SWA1"
    // Buttons
    #define BUTTON1_PIN         13
    #define BUTTON1_MODE        BUTTON_PUSHBUTTON | BUTTON_SET_PULLUP | BUTTON_DEFAULT_HIGH
    #define BUTTON1_RELAY       1

    // Relays
    #define RELAY1_PIN          12 
    #define RELAY1_TYPE       RELAY_TYPE_NORMAL

    // LEDs
    #define LED1_PIN            4  //Blue LED
    #define LED1_PIN_INVERSE    1
    #define LED2_PIN            5  //Red LED
    #define LED2_PIN_INVERSE    1
@davebuk davebuk added the enhancement New feature or request label Nov 28, 2019
@mcspr
Copy link
Collaborator

mcspr commented Nov 28, 2019

Also see

// -----------------------------------------------------------------------------
// Charging Essentials / LITESUN LA-WF3
// -----------------------------------------------------------------------------
#elif defined(LITESUN_LA_WF3)
// Info
#define MANUFACTURER "LITESUN"
#define DEVICE "LA_WF3"
// Buttons
#define BUTTON1_PIN 13
#define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
#define BUTTON1_RELAY 1
// Relays
#define RELAY1_PIN 12
#define RELAY1_TYPE RELAY_TYPE_NORMAL
// LEDs
#define LED1_PIN 4 // 4 blue led
#define LED1_MODE LED_MODE_WIFI
#define LED1_PIN_INVERSE 1
#define LED2_PIN 5 // 5 red led
#define LED2_MODE LED_MODE_RELAY
#define LED2_PIN_INVERSE 1

No pull-up set though

@davebuk
Copy link
Contributor Author

davebuk commented Nov 29, 2019

LITESUN LA-WF3 works fine with this device even without pull up being defined.

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

No branches or pull requests

2 participants