Registry / iot / bluetooth-sensor-state-data

bluetooth-sensor-state-data

JSON →
library1.9.0pypypi✓ verified 80d ago

Provides data models and conversion utilities for storing and processing Bluetooth sensor state data. Version 1.9.0 requires Python >=3.11. Released regularly to support new sensor types and Home Assistant integration.

pip install bluetooth-sensor-state-data
INSTALL
IMPORT
SIG · BLUETOOTH-SENSOR-S
B
bluetooth-sensor-state-data
iotpythonv1.9.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

BluetoothData
from bluetooth_sensor_state_data import BluetoothData
from bluetooth_sensor_state_data import BluetoothSensorDeviceData
BluetoothServiceInfo
from bluetooth_sensor_state_data import BluetoothServiceInfo
SensorUpdate
from bluetooth_sensor_state_data import SensorUpdate

Create a sensor data object and update it with values, then access via SensorData wrapper.

from bluetooth_sensor_state_data import BluetoothSensorDeviceData, SensorData data = BluetoothSensorDeviceData() data.update({ "temperature": 22.5, "humidity": 55.0 }) sensor = SensorData(data) print(sensor.temperature, sensor.humidity)
Debug
Known issues
breakingVersion 1.0 removed the old .data submodule. Importing from bluetooth-sensor-state-data.data will break.
fix
Change imports to from bluetooth_sensor_state_data import ...
affects: <1.0
deprecatedSensorData's 'raw_data' property will be removed in v2.0. Use 'data.raw' instead.
fix
Replace .raw_data with .data.raw
affects: >=1.5,<2.0
gotchaPython 3.11+ required. Installation on older Python versions will fail even if pip succeeds (no wheel).
fix
Upgrade to Python 3.11 or use pip install bluetooth-sensor-state-data==1.6.0 (last 3.10 compatible).
affects: >=1.9.0
Upgrade
Version history
1.9.0latest on PyPI · released May 9, 2025
Audit
Dependencies
home-assistant-bluetoothrequiredRequired for Bluetooth sensor type definitions and base classes.
Agent activity
26 hits · last 30 days
node
22
Amazon
1
Resources
bluetooth-sensor-state-data — pip install bluetooth-sensor-state-data · libregistry