Models for storing and converting SensorData state from Bluetooth devices. Current version 2.20.0, last updated 2024. Released on PyPI, maintained actively with monthly releases.
pip install sensor-state-dataNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Example of creating a SensorUpdate object for a temperature sensor.
Use 'pip install sensor-state-data' and 'from sensor_state_data import ...'
Always provide 'native_value'. If you used 'state_class' before, set it explicitly if needed.
Convert datetime to timestamp: update.timestamp = datetime.now().timestamp()
Install with 'pip install sensor-state-data' and import as 'from sensor_state_data import ...'
Pass native_value: SensorValue(name='temp', native_unit='°C', native_value=25.0)
No dependency data recorded yet.