Skip to content
Home Assistant TestFlight
SONOFF

Sonoff S31 smart plug

Outlets · Lighting

Mixed reportsLocal

14 reports: 13 say it works, 1 says it doesn’t work.

Reported with 3 integrations: Tasmota, ESPHome, Sonoff.

What people report

IntegrationIn Home AssistantIn Apple HomeWhat they saidSource
Not namedWorksPower readings identify which of three lizard-tank bulbs burned out
Saved copy
my lizard tank has 3 different lightbulbs. an infrared heat bulb, a fluorescent, and an incandescent. using a sonoff s31 power monitoring, i wrote a NR flow that will alert me, not only when a bulb is burned out, but exactly which bulb it is. since all three use different energy numbers. * wrote a flow that will web scrape and price watch amazon/walmart/playstionstore/ and a few others. wrote about it here: link * used the same concept as above to watch a few websites for hardware firmware updates, like for my dashcam. * NR flow that will email me when new MagPi magazine PDF shows up on their …

Excerpt saved from the Arctic Shift Reddit archive on 2026-10-23.

Reddit comment · 2019-07
TasmotaWorks LocalEasy to disassemble and flash; calibratable power monitoring (not S31 Lite)
Saved copy
Sonoff s31, (NOT s31 lite) made to be easy to disassemble and can flash whatever bin file you want. I used tasmota on these and they work great, can be calibrated. I watched this video to learn how to do it. less than 10$ a piece and they haven’t failed me yet.

Excerpt saved from the Arctic Shift Reddit archive on 2026-10-23.

Reddit comment · 2022-05
ESPHomeWorks LocalRecommended energy monitoring plug when flashed with ESPHome
Saved copy
Meh, not UL/ETL listed. Sonoff S31 running ESPHome is where it’s at.

Excerpt saved from the Arctic Shift Reddit archive on 2026-10-23.

Reddit comment · 2023-08
ESPHomeWorks LocalNo failures since 2019, daily cycling
Saved copy
I've had Sonoff S31 plugs on ESPHome and so far no issues. I think it was around 2019-ish I got into automation and I replaced all the timers with them so I've got like some floor lamps cycling 4-6 times a day, radios 2 times a day, aquarium lighting and reptile heat lamps 2 times a day. Still going strong with no failures yet.

Excerpt saved from the Arctic Shift Reddit archive on 2026-10-23.

Reddit comment · 2023-09
ESPHome
Tasmota
Works LocalCheap energy monitoring, flashed for local control
Saved copy
For smart plug energy monitoring, the $8 sonoff s31’s that can be flashed with ESPhome or Tasmota for fully local control are amazing. You don’t want energy monitoring en masse on your Zigbee network as it’s too chatty. For Zigbee, Aqara is everywhere but they have known issues with their products not following the Zigbee protocol. Specifically their devices don’t do well swapping repeaters.

Excerpt saved from the Arctic Shift Reddit archive on 2026-10-23.

Reddit comment · 2023-10
SonoffWorks LocalStock firmware confirmed 100% local with energy monitoring; also flashable
Saved copy
You no longer have to flash the S31s. There's the SonoffLAN Integration that offers local control over LAN and/or Cloud from Home Assistant. Mine are stock firmware and have been tested and confirmed to be 100% local with no calling out.

Excerpt saved from the Arctic Shift Reddit archive on 2026-10-23.

Reddit comment · 2023-10
ESPHomeWorks LocalFlashed with ESPHome, power monitoring, no cloud
Saved copy
Sonoff S31 with EspHome firmware will do what you want if you're using Home Assistant.

Excerpt saved from the Arctic Shift Reddit archive on 2026-10-23.

Reddit comment · 2023-12
ESPHomeWorks LocalCheap and can be flashed with ESPHome
Saved copy
But sonoff s31 - they go on sale quite frequently. No need to buy the zigbee version unless you really want them. You can convert the generic s31 into esphome

Excerpt saved from the Arctic Shift Reddit archive on 2026-10-23.

Reddit comment · 2024-02
ESPHomeWorks LocalFlashed with ESPHome for power monitoring and automation
Saved copy
I'd use packages and push variables to them for customization. For instance, I have the following three packages for my S31s --- yours might be different for your use case, but these are abbreiviated versions of my `common/sonoff-s31.yaml`, for S31-specific config: logger: baud_rate: 0 # (UART logging interferes with cse7766) uart: rx_pin: RX baud_rate: 4800 parity: EVEN sensor: - platform: cse7766 id: cse7766_hub current: ... binary_sensor: - platform: gpio pin: number: GPIO0 mode: INPUT_PULLUP inverted: True name: "Button" on_press: - switch.toggle: relay switch: - platform: gpio name: …

Excerpt saved from the Arctic Shift Reddit archive on 2026-10-23.

Reddit thread · 2024-12
ESPHomeWorks Local15 units flashed with ESPHome work great
Saved copy
You did didn't state if you want zigbee, wifi, thread, Z-Wave or something else. For Wifi, Sonoff S31 (not Lite!) flashed with Esphome are great. I have 15 of those.

Excerpt saved from the Arctic Shift Reddit archive on 2026-10-23.

Reddit comment · 2024-12
ESPHomeWorks LocalLiked when flashed with ESPHome
Saved copy
I like the Sonoff s31 flashed with an ESPHome program.

Excerpt saved from the Arctic Shift Reddit archive on 2026-10-23.

Reddit comment · 2025-01
TasmotaWorks LocalFlashed with Tasmota for US plugs
Saved copy
For smart plugs in the US I use Sonoff S31s flashed with Tasmota

Excerpt saved from the Arctic Shift Reddit archive on 2026-10-23.

Reddit comment · 2025-04
TasmotaWorks LocalCheap power-monitoring plug; custom firmware, no cloud dependence
Saved copy
https://static.xtremeownage.com/blog/2023/sonoff-s31---low-cost-energy-monitoring/ S31s. hands down. Why? Because they are as cheap as 4$ a piece, and I can run whatever firmware I want to run, and customize them as I please. There is ZERO requirements I have on the manufacturer, or cloud services, etc. Nothing they can do, will prevent me from being able to use, update, and maintain these. I have about 3 or 4 dozen of them. Do NOT get the S40s. Bigger number is not better!

Excerpt saved from the Arctic Shift Reddit archive on 2026-10-23.

Reddit comment · 2025-10
Not namedNot workingOne user says it doesn't work with HA; others suggest Tasmota flash
Saved copy
Not everything works with HA, my Sonoff s31 doesn’t work with HA

Excerpt saved from the Arctic Shift Reddit archive on 2026-10-23.

Reddit comment · 2025-03

Each row is one report from a GitHub thread, an integration’s docs, or r/homeassistant. Check the date and the linked source before you buy.

In ReReHome

Once Home Assistant’s HomeKit Bridge shares it, this device reaches Apple Home as a HomeKit accessory behind your Home Assistant bridge, so ReReHome shows and controls it like any other.

Identifiers

BrandSONOFF
ModelS31
CategoryOutlets

Also reported as

  • SONOFF S31 with ESPHome
  • Sonoff S31
  • Sonoff S31 on ESPHome
  • Sonoff S31 power monitoring plug
  • Sonoff S31 smart plug (reflashed)
  • Sonoff S31 smart plug with ESPHome