Skip to main content

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

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ruuvitag_ble-0.4.0.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ruuvitag_ble-0.4.0-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

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

Hashes for ruuvitag_ble-0.4.0.tar.gz
Algorithm Hash digest
SHA256 e63204a7ad646f7cf1886dbfbeaacc8e9dffbbd4195db385d62f9b0504ad6d06
MD5 4331eb30ca83cb025dde8e4d5ccd2a4c
BLAKE2b-256 7be8bb5fe8074306e3fff8f68275c5736099e285cdf38fddb7b39d7f83425e54

See more details on using hashes here.

Provenance

The following attestation bundles were made for ruuvitag_ble-0.4.0.tar.gz:

Publisher: ci.yml on Bluetooth-Devices/ruuvitag-ble

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for ruuvitag_ble-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5f4004323f423b7a6e11112caed24bef79092945c1822d76f0f0791d0261ae96
MD5 90c800aae784e310a605da4d2b3e0ac5
BLAKE2b-256 826cfcf93a489539e430c94c36d1369c9548b010dc411486f191874c1ec52a95

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page