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

Patch 2 #468

Merged
merged 11 commits into from
Jul 1, 2023
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
---
title: Dewenwils Heavy Duty 40A Outdoor Plug (HOWT01A)
date-published: 2023-07-01
type: switch
standard: us
board: esp8266
Made-for-esphome: False
difficulty: 4
---
[Amazon Link](https://amzn.to/436Dyc6)

## Dewenwils Heavy Duty 40A Outdoor Plug (HOWT01A)

The device has 2 indicator LEDs, 1 power button, 1 reset button and 1 controllable double pole relay.
The device is controlled by a ESP8266 that is from ECO-PLUGS, and the [FCC filing](https://fcc.report/FCC-ID/PAGECO-PLUGS) can be found here.
The device uses a Proprietary app that cannot be flashed to ESPHome OTA, the initial install must be USB to Serial. Once ESPHome is installed all future downloads can be OTA.

## Product Image

![HOWT01A](https://github.com/ryansmigley/esphome-devices/assets/104950813/4a7bd27b-d218-4875-a22f-0dc72123332b)

## GPIO Pinout

The GPIO pinout was learned from [NorthernMan54](https://gist.github.com/NorthernMan54/ef912a07482b9ab83fa80b91b5b763e8) and [Tasmota](https://templates.blakadder.com/dewenwils_HOWT01A.html) documentation.
![HOWT01AGPIO](https://github.com/ryansmigley/esphome-devices/assets/104950813/cbc4297f-3980-41e7-ad7e-895ee2d140a1)

The GPIOs being used are:

* Button: GPIO13
* Relay1: GPIO15

## Basic Configuration

```yaml
esphome:
name: ecoplug
friendly_name: EcoPlug

esp8266:
board: esp01_1m

# Enable logging
logger:

# Enable Home Assistant API
api:
encryption:
key: !secret

ota:
password: !secret

wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password

# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "$proper_devicename Hotspot"
password: !secret ap_password

binary_sensor:
- platform: gpio
pin:
number: GPIO13
id: button
on_press:
- switch.toggle: relay1

- platform: status
name: Eco Plug

switch:
- platform: gpio
name: "Eco Plug 1"
pin: GPIO15
id: relay1
icon: "mdi:power-socket-us"

captive_portal:
```