Skip to content

Commit 46491d3

Browse files
committed
minor: Add EcoWitt, FineOffset, Govee device notes
1 parent ad8f348 commit 46491d3

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

src/devices/ecowitt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Ecowitt Wireless Outdoor Thermometer WH53/WH0280/WH0281A.
1414
55-bit one-row data packet format (inclusive ranges, 0-indexed):
1515
1616
| 0-6 | 7-bit header, ignored for checksum, always 1111111
17-
| 7-14 | Always 01010011
17+
| 7-14 | Model code, 0x53
1818
| 15-22 | Sensor ID, randomly reinitialized on boot
1919
| 23-24 | Always 00
2020
| 25-26 | 2-bit sensor channel, selectable on back of sensor {00=1, 01=2, 10=3}

src/devices/fineoffset.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,16 +448,17 @@ Example: 22.6 C, 40 %, 1001.7 hPa
448448
Data layout:
449449
450450
aa 2d d4 e5 02 72 28 27 21 c9 bb aa
451-
?I IT TT HH PP PP CC BB
451+
MI IT TT HH PP PP CC XX
452452
453+
- M: 4 bit Model code, 0xd: old model, 0xe: new model.
453454
- I: 8 bit Sensor ID (based on 2 different sensors). Does not change at battery change.
454455
- B: 1 bit low battery indicator
455456
- F: 1 bit invalid reading indicator
456457
- T: 10 bit Temperature (+40*10), top two bits are flags
457458
- H: 8 bit Humidity
458459
- P: 16 bit Pressure (*10)
459460
- C: 8 bit Checksum of previous 6 bytes (binary sum truncated to 8 bit)
460-
- B: 8 bit Bitsum (XOR) of the 6 data bytes (high and low nibble exchanged)
461+
- X: 8 bit Bitsum (XOR) of the 6 data bytes (high and low nibble exchanged)
461462
462463
WH32B is the same as WH25 but two packets in one transmission of {971} and XOR sum missing.
463464

src/devices/govee.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ NOTE: The Govee Door Contact sensors only send a message when the contact
2222
is opened.
2323
Unfortunately, it does NOT send a message when the contact is closed.
2424
25+
Data layout:
26+
27+
II II ?E DD ?? XX
28+
2529
- A data packet is 6 bytes, 48 bits.
2630
- Bits are likely inverted (short=0, long=1)
2731
- First 2 bytes are the ID.
@@ -35,6 +39,10 @@ NOTE: The Govee Door Contact sensors only send a message when the contact
3539
- Last byte contains the parity bits in index 2-6 (101PPPP1).
3640
The parity checksum using CRC8 against the first 5 bytes
3741
42+
Data decoding:
43+
44+
ID:8h8h ?4h EVENT:4h EVENTDATA:8h ?8h CHK:3b 4h 1b
45+
3846
Battery levels:
3947
4048
- 100 : 5 Bars

0 commit comments

Comments
 (0)