Skip to main content

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

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)

Release files for ruuvitag-ble 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ruuvitag-ble 0.4.0
File Size Uploaded
ruuvitag_ble-0.4.0.tar.gz 12.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ruuvitag-ble 0.4.0
File Interpreter ABI Platform
ruuvitag_ble-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 22.3 kB

Release files / ruuvitag_ble-0.4.0.tar.gz

Download URL ruuvitag_ble-0.4.0.tar.gz
Size 12.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e63204a7ad646f7cf1886dbfbeaacc8e9dffbbd4195db385d62f9b0504ad6d06
BLAKE2b-256 checksum
How to use checksums
7be8bb5fe8074306e3fff8f68275c5736099e285cdf38fddb7b39d7f83425e54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 7, 2026.

Transparency log

Release files / ruuvitag_ble-0.4.0-py3-none-any.whl

Download URL ruuvitag_ble-0.4.0-py3-none-any.whl
Size 10.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5f4004323f423b7a6e11112caed24bef79092945c1822d76f0f0791d0261ae96
BLAKE2b-256 checksum
How to use checksums
826cfcf93a489539e430c94c36d1369c9548b010dc411486f191874c1ec52a95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 7, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page