OpenWonderLabs / SwitchBotAPI-BLE

SwitchBot BLE open API
98 stars 9 forks source link

Document Manufacture Data for "T" device type (i.e. WoSensorTH) #33

Open moritzmhmk opened 10 months ago

moritzmhmk commented 10 months ago

Current Situation

Currently the documentation focusses mainly on the Service Data of the "T" device type.

Proposed Change

The following shows the Manufacturer Data and Service Data of the "w" and "T" device type (i.e. WoIOSensorTH and WoSensorTH).

  <       Co.ID |    MAC Address    | CC ?? | SensData |    > <       DevData  | SensData >
w <Buffer 69 09 | xx xx xx xx xx xx | 2c 0b | 00 95 4a | 00 > <Buffer 77 00 64 >
T <Buffer 69 09 | xx xx xx xx xx xx | 29 03 | 05 98 38 >      <Buffer 54 00 e4 | 05 98 38 >

The Manufacturer Data is as follows for both "w" (Outdoor Meter) and "T" (Indoor Meter) device types:

The Service Data is identical for the first 3 bytes (as already documented) and for the type "T" includes the same SensData as in the ManufacturerData.

Additional Context

Maybe someone can confirm if this is also true for the "i" device type (Meter Plus).

Is there any documentation on the byte marked "??" above?

github-actions[bot] commented 9 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 9 months ago

This issue has been automatically closed because it has not had recent activity. Thank you for your contributions.

donavanbecker commented 9 months ago

Please open PR if this is correct so it can be added

moritzmhmk commented 9 months ago

I am not entirely sure if this is dependent on the firmware version or hardware revision. Some feedback from other users before adding this would be great.

orcagami commented 7 months ago

I can confirm the manufacturer and service data of Meter Plus ("i") are identical to what is reported here for the indoor meter ("T"). The unknown byte seems to be consistent per device type from my limited testing. My outdoor sensor ("w") also reports it as 0x0b while for both my Meter Plus devices it is 0x0f.

DigiH commented 6 months ago

I've seen Outdoor Meters, even the same device, reporting 0x03 or 0x0b, and 0x0f for a different Outdoor Meter, so possibly it is that bit[0] and bit[1] are always true, with bit[2] and/or bit[3] being true or false.

donavanbecker commented 6 months ago

Please open a PR if you want to update the documentation

DigiH commented 6 months ago

As this is only the observation I have made from several different Outdoor Meters, and as 0x0f or 0x03 at least seem to be possible with the Outdoor Meter as well as Meter Plus and other devices, I'm not quite sure what to submit ;)