I want to introduce you to the Thunderboard Sense 2 custom component.
This would work with the Demo software that the board comes with, which you can update through Simplicity Studio - Bluetooth — SoC Thunderboard Sense 2.
Thunderboard Sense 2 is a board that can demonstrate the BLE capabilities and integrates a lot of sensors in a small format. Can run from an CR2032 battery. If you want to see how you can energy optimize the demo software, then here’s an article about this (no paywall link).
Link
Here you can get the integration.
Alternative, check out Thunderboard Sense BTHome V2 integration.
Functions
This helps you to integrate the board sensors with the Home Assistant, compatible with the base software that comes with the board named Bluetooth - SoC Thunderboard Sense 2, which you can update through Simplicity Studio.
Using this integration, you can:
- Read sensors values for:
- Atmospheric pressure
- Humidity
- Illuminance
- Magnetic field strength
- Sound pressure
- Temperature
- UV Index
- Read buttons and digital IO states
- Power source check if it is USB or battery
- Control RGB LED lights of the board
Additionally, you can:
- Customize device polling time
- Keep connection active
- This might draw battery fast, but you can read both the buttons states instantly (using the built-in BLE notification of module)
- Customize timeout and connections attempts
- Add callback to read data from device when there’s a change in BLE advertisement
- Set the minimum time between the above-mentioned callback trigger