I have four Sonoff S31 smart plugs all flashed with ESPHome. I flashed one and then copied the configs and only changed the name and the corresponding secrets. I got all four in the same package.
One plug, ole number 3, doesn’t show power correctly. I will plug up an enterprise network switch and it will show 0 Wh used and 1 V. I know this is wrong because another plug monitors the whole rack, and I can see its overall power used go up by about 130 Wh, which is correct and what I expect. How can I fix this one plug? I have tried wireless reflashing and I’ve also reflashed it with a serial port.
esphome:
name: homelab-sp3
friendly_name: hlsp3
platform: ESP8266
board: esp01_1m
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Remove the following line if you're not using Home Assistsant or your switch will restart every now and again
api:
encryption:
key: !secret homelab_sp3_encyption_key
ota:
password: !secret ota_password
web_server:
port: 80
# Device Specific Config
logger:
baud_rate: 0 # (UART logging interferes with cse7766)
logs:
sensor: DEBUG # (Overide any global setting, to VERBOSE will spamming the cse7766 sensors)
uart:
rx_pin: RX
baud_rate: 4800
binary_sensor:
- platform: gpio
pin:
number: GPIO0
mode: INPUT_PULLUP
inverted: True
name: "Button"
on_press:
- switch.toggle: relay
- platform: status
name: "Status"
sensor:
- platform: wifi_signal
name: "WiFi Signal"
update_interval: 60s
- platform: cse7766
current:
name: "Current"
accuracy_decimals: 2
filters:
- throttle_average: 2s
voltage:
name: "Voltage"
accuracy_decimals: 2
filters:
- throttle_average: 2s
power:
name: "Power"
accuracy_decimals: 2
id: my_power
filters:
- throttle_average: 2s
energy:
name: "Energy"
accuracy_decimals: 2
filters:
- throttle_average: 2s
apparent_power: #(only available with version 2024.3.0 or greater)
name: "Apparent Power"
filters:
- throttle_average: 2s
power_factor: #(only available with version 2024.3.0 or greater)
name: "Power Factor"
accuracy_decimals: 2
filters:
- throttle_average: 2s
- platform: total_daily_energy #(Optional, not specific to cse7766)
name: "Daily Energy"
power_id: my_power
accuracy_decimals: 2
switch:
- platform: gpio
name: "Relay"
pin: GPIO12
id: relay
restore_mode: ALWAYS_ON
time:
- platform: sntp #(required for total_daily_energy)
id: my_time
status_led:
pin:
number: GPIO13
#inverted: True
Any Ideas for what to try next?