Skip to content

Commit 5540c98

Browse files
authored
Merge branch 'next' into add-lan8670-support
2 parents 1779dc4 + e7bbf63 commit 5540c98

File tree

4 files changed

+51
-0
lines changed

4 files changed

+51
-0
lines changed

content/components/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,7 @@ Sensors are organized into categories; if a given sensor fits into more than one
416416
"TMP102","components/sensor/tmp102","tmp102.jpg","Temperature",""
417417
"TMP1075","components/sensor/tmp1075","tmp1075.jpg","Temperature",""
418418
"TMP117","components/sensor/tmp117","tmp117.jpg","Temperature",""
419+
"WTS01","components/sensor/wts01","wts01.png","Temperature",""
419420
"XGZP68xx Series","components/sensor/xgzp68xx","6897d.jpg","Differential Pressure",""
420421
{{< /imgtable >}}
421422

3.27 KB
Loading

content/components/sensor/wts01.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
description: "Instructions for setting up WTS01 temperature sensors in ESPHome."
3+
title: "WTS01 Temperature Sensor"
4+
params:
5+
seo:
6+
description: Instructions for setting up WTS01 temperature sensors in ESPHome.
7+
image: wts01.png
8+
---
9+
10+
11+
12+
The `wts01` platform allows you to use WTS01 temperature sensors with ESPHome.
13+
This is the sensor used in Sonoff TH Origin (THR316, THR320) and TH Elite (THR316D, THR320D) devices.
14+
15+
For this component to work you need to have set up a UART bus in your configuration - only the RX pin should be necessary.
16+
17+
The sensor communicates with the microcontroller via {{< docref "/components/uart" "UART" >}}.
18+
19+
{{< img src="wts01-full.png" alt="Image" width="80.0%" class="align-center" >}}
20+
21+
## Basic configuration
22+
23+
```yaml
24+
# You need to have a UART bus setup in your configuration
25+
uart:
26+
rx_pin: GPIOXX
27+
baud_rate: 9600
28+
29+
# Then you can add the WTS01 sensor
30+
sensor:
31+
- platform: wts01
32+
name: "WTS01 Temperature"
33+
34+
```
35+
36+
## Configuration variables
37+
38+
- All options from [Sensor](#config-sensor).
39+
40+
{{< note >}}
41+
The WTS01 sensor is used in Sonoff TH Origin (THR316, THR320) and TH Elite (THR316D, THR320D) devices and connects to the main device using a RJ9 4C4P connector.
42+
This sensor provides temperature readings with 0.1°C resolution.
43+
44+
{{< /note >}}
45+
46+
## See Also
47+
48+
- [Sensor Filters](/components/sensor/#sensor-filters)
49+
- {{< docref "/components/uart" >}}
50+
- {{< apiref "wts01/wts01.h" "wts01/wts01.h" >}}

static/images/wts01.png

3.27 KB
Loading

0 commit comments

Comments
 (0)