ESPHome on the Etekcity NightLight plug and 2 & 6 Channel Power Monitoring
Finishing up the last bit of sensors and config on the Etekcity power monitoring plug. No soldering required to flash the plug as they left us an open header to attach to. Snuck in a little bit of the cool 3 way Martin Jerry switch.
Etekcity Plug
Martin Jerry 3 way Switch
2 & 6 Channel Monitoring Boards with ESPHome - https://circuitsetup.us/
Audio issues on the first piece, but we reset OBS to fix the issue! Sorry guys/gals!
Tasmota Template for the Etekcity
(had issues with voltage readings dropping at random times)
{"NAME":"ETekNightLight","GPIO":[0,0,0,0,37,21,0,0,132,133,17,130,52],"FLAG":1,"BASE":45}
Work in progress Etekcity Plug Config
substitutions:
plug_name: etekpower
# Higher value gives lower watt readout
current_res: "0.00095"
# Lower value gives lower voltage readout
voltage_div: "2040"
esphome:
name: ${plug_name}
platform: ESP8266
board: esp8285
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_pass
manual_ip:
static_ip: !secret ip_etekpower
gateway: !secret ip_gateway
subnet: !secret ip_subnet
dns1: !secret ip_dns1
logger:
# level: NONE
mqtt:
broker: !secret mqtt_broker
username: !secret mqtt_user
password: !secret mqtt_pass
ota:
platform: esphome
web_server:
binary_sensor:
- platform: gpio
pin:
number: GPIO14
inverted: True
name: "${plug_name}_button"
on_press:
then:
- switch.toggle: "${plug_name}_Relay"
- switch.toggle: "${plug_name}_LED_Blue"
switch:
- platform: gpio
name: "${plug_name}_Relay"
id: "${plug_name}_Relay"
pin: GPIO05
restore_mode: ALWAYS_ON
- platform: gpio
name: "${plug_name}_LED_Blue"
id: "${plug_name}_LED_Blue"
pin: GPIO16
inverted: False