Skip to content

Commit 40d359e

Browse files
authored
Merge branch 'latest' into latest
2 parents 6b496e9 + 2497605 commit 40d359e

File tree

2 files changed

+47
-1
lines changed

2 files changed

+47
-1
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# SwitchBotAPI-BLE
22

33
- [Device Types](#device-type)
4+
- [UUID Update Notes](#uuid-update-notes)
45
- [Bot BLE open API](/devicetypes/bot.md)
56
- [Color Bulb BLE open API](/devicetypes/colorbulb.md)
67
- [Contact Sensor BLE open API](/devicetypes/contactsensor.md)
@@ -35,3 +36,11 @@ The device type is in the service data of SCAN_RSP.
3536
|--------------|----------|-------------------------|
3637
| Byte: 0 | Enc type | Bit[7] NC |
3738
| Byte: 0 | Dev Type | Bit [6:0] – Device Type |
39+
40+
41+
## UUID Update Notes
42+
43+
From Bot V6.4, Curtain V4.6, Meter V2.7,
44+
- `Company ID` ( `ADV_IND` - `Manufacture Data` ) modified from `0x0059` to `0x0969`.
45+
- `Service UUID` ( `SCAN_RSP` - `Service Data`) modified from `0x000d` to `0xfd3d`.
46+
- Complete list of 128-bit UUIDs (`SCAN_RSP`) has been removed.

devicetypes/meter.md

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
- [0x14 Read Hardware Version](#0x14-read-hardware-version)
1515
- [0x30 Setting Temperature Display Mode](#0x30-setting-temperature-display-mode)
1616
- [0x31 Read the Display Mode and Value of the Meter](#0x31-read-the-display-mode-and-value-of-the-meter)
17+
- [Other Devices](#other)
18+
- [Outdoor Temperature/Humidity Sensor](#outdoor-temperaturehumidity-sensor)
1719

1820
### Meter Broadcast Message
1921

@@ -563,7 +565,42 @@ The temperature value is one decimal, the range is (-20.0 °C ~ 60.0 °C) ;The
563565
</tbody>
564566
</table>
565567

568+
### Other
569+
570+
This section is for devices that don't quite fit the general
571+
specification above. Data here is unofficial and community provided.
572+
573+
#### Outdoor Temperature/Humidity Sensor
574+
575+
**WoSensorTHO** (Model W3400010)
576+
577+
This device advertises 3 sections:
578+
579+
```
580+
# Sample Advertisement
581+
Length: 0x02, Type: 0x01, Data: bytes('06')
582+
Length: 0x0F, Type: 0xFF, Data: bytes('6909XXXXXXXXXXXX360302963700')
583+
Length: 0x06, Type: 0x16, Data: bytes('3DFD770064')
584+
```
585+
586+
XXXXXXXXXXXX represents BT device MAC address.
587+
588+
The device type in the Service Data matches that of the WoSensorTH,
589+
but the data has moved to different locations, so the same code cannot
590+
be used.
591+
592+
```
593+
# Data from Type: 0xFF (Manufacturer Specific Data)
594+
temp = ((data[10] & 0x0F) * 0.1 + (data[11] & 0x7F)) * (((data[11] & 0x80) > 0 : 1 : -1);
595+
humidity = data[12] & 0x7F;
596+
```
597+
598+
```
599+
# Data from Type: 0x16 (Service Data)
600+
battery_pct = data[5]
601+
```
602+
566603
CopyRight@2022 Wonderlabs, Inc.
567604

568605
### Back to [Home](https://github.com/OpenWonderLabs/SwitchBotAPI-BLE/)
569-
### Back to [Device Types](../README.md)
606+
### Back to [Device Types](../README.md)

0 commit comments

Comments
 (0)