Manage Ruuvitag BLE devices
Project description
ruuvitag-ble
Sans-IO parser for Ruuvi wireless sensor BLE devices.
Mainly meant for interoperation with Home Assistant's Ruuvi integration, but could be useful in other contexts as well.
Supported Devices
- RuuviTag - Environmental sensor tags
- RuuviTag Pro - Heavy-duty environmental sensor tags
- Ruuvi Air - Air quality monitors
Supported Data Formats
This library supports the following Ruuvi BLE advertisement data formats:
RuuviTag and RuuviTag Pro
Data Format 3 (0x03)
Legacy format supported by older RuuviTag firmware.
Measurements:
- Temperature (Celsius, range: -127.99 to 127.99°C, resolution: 0.01°C)
- Humidity (%, range: 0 to 100%, resolution: 0.5%)
- Pressure (hPa, range: 500 to 1155.35 hPa, resolution: 0.01 hPa)
- Acceleration X/Y/Z (m/s², converted from mG)
- Battery voltage (mV)
Data Format 5 (0x05)
Standard format used by RuuviTag firmware 2.x and later.
Measurements:
- Temperature (Celsius, range: -163.835 to 163.835°C, resolution: 0.005°C)
- Humidity (%, range: 0 to 163.8350%, resolution: 0.0025%)
- Pressure (hPa, range: 500 to 1155.35 hPa, resolution: 0.01 hPa)
- Acceleration X/Y/Z (mG, converted to m/s²)
- Battery voltage (mV, range: 1600 to 3647 mV)
- TX power (dBm, range: -40 to 20 dBm)
- Movement counter
- Measurement sequence number
- MAC address (6 bytes)
Ruuvi Air
Data Format 6 (0x06)
Compact format for air quality monitoring, used by Ruuvi Air and similar devices.
Measurements:
- Temperature (Celsius, resolution: 0.005°C)
- Humidity (%, resolution: 0.0025%)
- Pressure (hPa, resolution: 0.01 hPa)
- PM2.5 (μg/m³, resolution: 0.1 μg/m³)
- CO2 (ppm)
- VOC index (9-bit value, range: 0-500)
- NOx index (9-bit value, range: 0-500)
- Luminosity (lux, logarithmic scale)
- Sound average (dBA, resolution: 0.2 dBA, range: 18-119.6 dBA)
- Measurement sequence number
- MAC address (3 bytes)
Data Format E1 (0xE1)
Extended format providing comprehensive environmental and air quality data with higher precision.
Measurements:
- Temperature (Celsius, range: -163.835 to 163.835°C, resolution: 0.005°C)
- Humidity (%, range: 0 to 100%, resolution: 0.0025%)
- Pressure (hPa, range: 500 to 1155.34 hPa, resolution: 0.01 hPa)
- PM1.0 (μg/m³, resolution: 0.1 μg/m³)
- PM2.5 (μg/m³, resolution: 0.1 μg/m³)
- PM4.0 (μg/m³, resolution: 0.1 μg/m³)
- PM10 (μg/m³, resolution: 0.1 μg/m³)
- CO2 (ppm)
- VOC index (9-bit value, range: 0-500)
- NOx index (9-bit value, range: 0-500)
- Luminosity (lux, resolution: 0.01 lux)
- Measurement sequence number (24-bit)
- Calibration status flag
- MAC address (6 bytes)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ruuvitag_ble-0.4.0.tar.gz.
File metadata
- Download URL: ruuvitag_ble-0.4.0.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e63204a7ad646f7cf1886dbfbeaacc8e9dffbbd4195db385d62f9b0504ad6d06
|
|
| MD5 |
4331eb30ca83cb025dde8e4d5ccd2a4c
|
|
| BLAKE2b-256 |
7be8bb5fe8074306e3fff8f68275c5736099e285cdf38fddb7b39d7f83425e54
|
Provenance
The following attestation bundles were made for ruuvitag_ble-0.4.0.tar.gz:
Publisher:
ci.yml on Bluetooth-Devices/ruuvitag-ble
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ruuvitag_ble-0.4.0.tar.gz -
Subject digest:
e63204a7ad646f7cf1886dbfbeaacc8e9dffbbd4195db385d62f9b0504ad6d06 - Sigstore transparency entry: 799197865
- Sigstore integration time:
-
Permalink:
Bluetooth-Devices/ruuvitag-ble@732b2706730e68bdd1bb2e0748f14172af8daacd -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/Bluetooth-Devices
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@732b2706730e68bdd1bb2e0748f14172af8daacd -
Trigger Event:
push
-
Statement type:
File details
Details for the file ruuvitag_ble-0.4.0-py3-none-any.whl.
File metadata
- Download URL: ruuvitag_ble-0.4.0-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f4004323f423b7a6e11112caed24bef79092945c1822d76f0f0791d0261ae96
|
|
| MD5 |
90c800aae784e310a605da4d2b3e0ac5
|
|
| BLAKE2b-256 |
826cfcf93a489539e430c94c36d1369c9548b010dc411486f191874c1ec52a95
|
Provenance
The following attestation bundles were made for ruuvitag_ble-0.4.0-py3-none-any.whl:
Publisher:
ci.yml on Bluetooth-Devices/ruuvitag-ble
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ruuvitag_ble-0.4.0-py3-none-any.whl -
Subject digest:
5f4004323f423b7a6e11112caed24bef79092945c1822d76f0f0791d0261ae96 - Sigstore transparency entry: 799197871
- Sigstore integration time:
-
Permalink:
Bluetooth-Devices/ruuvitag-ble@732b2706730e68bdd1bb2e0748f14172af8daacd -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/Bluetooth-Devices
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@732b2706730e68bdd1bb2e0748f14172af8daacd -
Trigger Event:
push
-
Statement type: