Skip to content

Commit bb3d4f3

Browse files
committed
renamed thermopro_tp357 to thermopro_ble, added supported device types
1 parent 2d8d47e commit bb3d4f3

File tree

2 files changed

+25
-15
lines changed

2 files changed

+25
-15
lines changed

content/components/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ Sensors are organized into categories; if a given sensor fits into more than one
291291
"Mopeka Pro Check LP","components/sensor/mopeka_pro_check","mopeka_pro_check.jpg","Tank level"
292292
"Mopeka Standard Check LP","components/sensor/mopeka_std_check","mopeka_std_check.jpg","Tank level"
293293
"RuuviTag","components/sensor/ruuvitag","ruuvitag.jpg","Temperature & Humidity & Accelerometer"
294-
"ThermoPro TP357","components/sensor/thermopro_tp357","thermopro_tp357.jpg","Temperature & Humidity"
294+
"ThermoPro BLE","components/sensor/thermopro_ble","thermopro_tp357.jpg","Temperature & Humidity"
295295
"Xiaomi BLE","components/sensor/xiaomi_ble","xiaomi_mijia_logo.jpg","Various"
296296
{{< /imgtable >}}
297297

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,28 @@
11
---
2-
description: "Instructions for setting up ThermoPro TP357 Bluetooth-based temperature and humidity sensors in ESPHome."
3-
title: "ThermoPro TP357 BLE Sensor"
2+
description: "Instructions for setting up ThermoPro Bluetooth-based temperature and humidity sensors in ESPHome."
3+
title: "ThermoPro BLE Sensor"
44
params:
55
seo:
6-
description: Instructions for setting up ThermoPro TP357 Bluetooth-based temperature and humidity sensors in ESPHome.
6+
description: Instructions for setting up ThermoPro Bluetooth-based temperature and humidity sensors in ESPHome.
77
image: thermopro_tp357.jpg
88
---
99

10-
The `thermopro_tp357` sensor platform lets you track the output of ThermoPro TP357 Bluetooth
10+
The `thermopro_ble` sensor platform lets you track the output of ThermoPro Bluetooth
1111
Low Energy devices using the {{< docref "/components/esp32_ble_tracker" >}}. This component will track the
12-
temperature, humidity, battery level and signal strength of the TP357 device every time the
12+
temperature, humidity, battery level and signal strength of the ThermoPro device every time the
1313
sensor sends out a BLE broadcast.
1414

15+
> [!NOTE]
16+
> Currently this component is only tested with TP357S devices. However, it should work with TP972, TP970, TP96x and TP3xx.
17+
1518
{{< img src="thermopro_tp357-full.jpg" alt="Image" caption="ThermoPro TP357 Temperature and Humidity Sensor over BLE." width="80.0%" class="align-center" >}}
1619

1720
```yaml
1821
# Example configuration entry
1922
esp32_ble_tracker:
2023

2124
sensor:
22-
- platform: thermopro_tp357
25+
- platform: thermopro_ble
2326
mac_address: XX:XX:XX:XX:XX:XX
2427
temperature:
2528
name: "ThermoPro Temperature"
@@ -33,12 +36,19 @@ sensor:
3336
3437
## Configuration variables
3538
36-
- **mac_address** (**Required**, MAC Address): The MAC address of the ThermoPro TP357 device.
39+
- **mac_address** (**Required**, MAC Address): The MAC address of the ThermoPro device.
40+
3741
- **temperature** (*Optional*): The information for the temperature sensor.
3842
3943
- All options from [Sensor](#config-sensor).
4044
45+
- **external_temperature** (*Optional*): The information for the ambient temperature sensor.
46+
This is only aviliable on TP972, TP970 and TP96x devices.
47+
48+
- All options from [Sensor](#config-sensor).
49+
4150
- **humidity** (*Optional*): The information for the humidity sensor
51+
This is only aviliable on TP3xx devices.
4252
4353
- All options from [Sensor](#config-sensor).
4454
@@ -52,8 +62,8 @@ sensor:
5262
5363
## Setting Up Devices
5464
55-
To set up ThermoPro TP357 devices you first need to find their MAC Address so that ESPHome can
56-
identify them. So first, create a simple configuration without any `thermopro_tp357` entries
65+
To set up ThermoPro devices you first need to find their MAC Address so that ESPHome can
66+
identify them. So first, create a simple configuration without any `thermopro_ble` entries
5767
like so:
5868

5969
```yaml
@@ -63,25 +73,25 @@ esp32_ble_tracker:
6373
- lambda: 'ESP_LOGD("ble_adv", "BLE device address: %s name: %s", x.address_str().c_str(), x.get_name().c_str());'
6474
```
6575

66-
After uploading the ESP32 will immediately try to scan for BLE devices such as the ThermoPro TP357, so
67-
you will see messages like this (please note the TP357S name):
76+
After uploading the ESP32 will immediately try to scan for BLE devices such as the ThermoPro, so
77+
you will see messages like this (please note the TPxxxx model name):
6878

6979
```log
7080
[13:36:43][D][ble_adv:042]: BLE device address: XX:XX:XX:XX:XX:XX name: TP357S (XXXX)
7181
```
7282

7383
Note that it can sometimes take some time for the first BLE broadcast to be received.
7484

75-
Then just copy the address (`XX:XX:XX:XX:XX:XX`) into a new `sensor.thermopro_tp357` platform
85+
Then just copy the address (`XX:XX:XX:XX:XX:XX`) into a new `sensor.thermopro_ble` platform
7686
entry like in the configuration example at the top.
7787

7888
> [!NOTE]
79-
> The ThermoPro TP357 component listens passively to packets the device sends by itself.
89+
> The ThermoPro BLE component listens passively to packets the device sends by itself.
8090
> ESPHome therefore has no impact on the battery life of the device.
8191

8292
## See Also
8393

8494
- {{< docref "/components/esp32_ble_tracker" >}}
8595
- {{< docref "/components/sensor" >}}
8696
- {{< docref "absolute_humidity/" >}}
87-
- {{< apiref "thermopro_tp357/thermopro_tp357.h" "thermopro_tp357/thermopro_tp357.h" >}}
97+
- {{< apiref "thermopro_ble/thermopro_ble.h" "thermopro_ble/thermopro_ble.h" >}}

0 commit comments

Comments
 (0)