From 53c4dc468f384dc8b86c1e8a62c207f587b96e44 Mon Sep 17 00:00:00 2001 From: Johann Kellerman Date: Sat, 11 Apr 2026 05:54:21 +0200 Subject: [PATCH 1/2] Modify GPIO descriptions and add WTS01 sensor config Updated GPIO pin descriptions and added configuration for WTS01 temperature sensor. --- src/docs/devices/Sonoff-THR316/index.md | 29 +++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/src/docs/devices/Sonoff-THR316/index.md b/src/docs/devices/Sonoff-THR316/index.md index e541dd90d..ed6618f29 100644 --- a/src/docs/devices/Sonoff-THR316/index.md +++ b/src/docs/devices/Sonoff-THR316/index.md @@ -18,8 +18,8 @@ difficulty: 3 | GPIO15 | Middle LED (Blue/WiFi) | | GPIO16 | Left LED (Red/Relay) | | GPIO21 | Relay | -| GPIO25 | Dallas Sensor Bus Data In/Out | -| GPIO27 | Dallas Sensor 3.3V Power | +| GPIO25 | Sensor Bus Data In/Out | +| GPIO27 | Sensor 3.3V Power | ## RJ9 Pinout @@ -273,3 +273,28 @@ climate: then: - light.turn_on: auto_led ``` + +## Using a WTS01 temperature sensor + +The following yaml enables the [WTS01 sensor](https://esphome.io/components/sensor/wts01/) on the Sonoff THR316 and exposes the measured value as `temp`. + +```yaml +switch: + # This is needed to power the external sensor. + # It receives 3v3 from this pin, which is pulled up on boot. + - platform: gpio + pin: GPIO27 + id: sensor_power + restore_mode: ALWAYS_ON + +uart: + rx_pin: GPIO25 + baud_rate: 9600 + +sensor: + - platform: wts01 + id: temp + filters: + - throttle_average: 60s + - round: 1 +``` From d21dc62c518ea81ff13c79f99e51e735c0badae0 Mon Sep 17 00:00:00 2001 From: Johann Kellerman Date: Sat, 11 Apr 2026 05:57:31 +0200 Subject: [PATCH 2/2] Update index.md --- src/docs/devices/Sonoff-THR316/index.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/docs/devices/Sonoff-THR316/index.md b/src/docs/devices/Sonoff-THR316/index.md index ed6618f29..6f16f3c6c 100644 --- a/src/docs/devices/Sonoff-THR316/index.md +++ b/src/docs/devices/Sonoff-THR316/index.md @@ -276,7 +276,8 @@ climate: ## Using a WTS01 temperature sensor -The following yaml enables the [WTS01 sensor](https://esphome.io/components/sensor/wts01/) on the Sonoff THR316 and exposes the measured value as `temp`. +The following yaml enables the [WTS01 sensor](https://esphome.io/components/sensor/wts01/) on the Sonoff THR316 +and exposes the measured value as `temp`. ```yaml switch: