Sonoff THR316: convert it to a local ESPHome device

  • The goal is clear: use an ESPHome configuration for Sonoff THR316, reduce dependence on the vendor cloud and connect it to a local system such as Home Assistant.
Upstream source image for “Sonoff THR316: convert it to a local ESPHome device”
Image published on the upstream source page for “Sonoff THR316: convert it to a local ESPHome device”; no separate image license was stated. View image source ↗
  • Record D077
  • Sources reviewed 2026-10-22
  • Hands-on status No KitAgain hands-on hardware test
Not yet rated
  • 1/5 dimensions have verifiable sources
  • The current review supports only docs/community. Other dimensions remain null, so fewer than three evidenced dimensions means this route is not yet rated.

Exact-model review

  • Hardware ESP32 with one relay, three LEDs, button and RJ9 bus for an external DS18B20 sensor.
  • Installation route Use the documented GPIO and RJ9 pinout to combine the temperature sensor and relay as a Home Assistant thermostat.
  • Expected result Monitors temperature locally and switches a heating load around a set point.
  • Boundary The example assumes DS18B20; other temperature/humidity probes and THR316D are not drop-in equivalents.
  • Recovery and stop condition Keep the relay off at boot and validate sensor readings plus short/long button behavior before connecting a real load.
  • Upstream revision e541dd90d8c17fdb786ece92ad47443ca852b40a

Decide before you build

  • Current stage An exact-model upstream configuration or maintainer record was read, raising this route to E1; KitAgain still has not tested the hardware.
  • Practical readiness Monitors temperature locally and switches a heating load around a set point. The model boundary on this page still applies.
  • User value ESP32 with one relay, three LEDs, button and RJ9 bus for an external DS18B20 sensor. Use the documented GPIO and RJ9 pinout to combine the temperature sensor and relay as a Home Assistant thermostat.
  • Follow-up recommendation Keep the relay off at boot and validate sensor readings plus short/long button behavior before connecting a real load.

Device fit and limits

Known fit or worth checking

  • Devices whose exact model is Sonoff THR316
  • ESPHome users prepared to verify the chip, PCB and flashing route

Not established or unsuitable

  • Lookalike products whose controller cannot be identified
  • Mains devices without a safe disassembly and isolation setup

Gaps, next step, and risk

  • What E1 still does not prove An exact-model configuration or maintainer record was read, but KitAgain did not flash, measure or run the hardware long-term, and upstream evidence cannot guarantee an identical current retail revision.
  • Next review step Match the physical model, PCB and controller against the source, then begin with the lowest-risk validation step. Keep the relay off at boot and validate sensor readings plus short/long button behavior before connecting a real load.
  • Risk and stop condition Disconnect mains-powered devices before opening them and never probe an exposed energized device. Identical product names may hide different chips or PCBs.

What each link contains

  • ESPHome device configuration page ↗device-configuration-page
    The upstream device-database entry for this model. Its presence was confirmed; KitAgain has not treated it as hands-on verification.https://devices.esphome.io/devices/Sonoff-THR316/
  • KitAgain read this exact-model source and summarized hardware, installation, capabilities and stop conditions here; no hands-on test was performed.https://github.com/esphome/devices.esphome.io/blob/main/src/docs/devices/Sonoff-THR316/index.md
← Back to all field leads