Battery voltage for your SensorPush sensors in Home Assistant, read straight from each sensor over Bluetooth. No SensorPush cloud account, no gateway, and nothing leaves your network.
Home Assistant's built-in SensorPush integration already picks up temperature and humidity from the sensors' Bluetooth broadcasts. This integration adds a Battery voltage entity to each of those sensors: once a day it connects to every sensor, through a local Bluetooth adapter or an ESPHome Bluetooth proxy, and reads the battery in millivolts. That's enough warning to swap a battery before a sensor in the freezer goes quiet.
- Daily battery audits: Connects to each sensor once a day (3:00am local time by default, configurable) and reads its battery voltage. The first audit runs in the background at startup, so it never holds up Home Assistant.
- Knows your hardware: Detects the sensor generation (HT1 or HT.w/HTP.xw) and applies the right voltage conversion for it.
- Gentle on your proxies: Connects to one sensor at a time, so audits don't fight over a Bluetooth proxy. A failed connection (a timeout or BLE error) is retried after a 10-second pause, and the retry can go through a different proxy.
- Shows when a sensor can't be read: If a sensor's audit fails (out of range, no free proxy, a bad reply), its Battery voltage entity becomes unavailable until the next successful audit, so a struggling sensor is easy to spot. The log gets one line when a sensor becomes unavailable and one when it's back; enable debug logging for
custom_components.sensorpush_localto see each connection attempt. Readings are saved to storage, so they survive a restart. - Lives on your existing devices: The Battery voltage entity attaches to the SensorPush device the core integration already created, rather than adding a second device, and is listed under the device's Diagnostic entities. Add or remove a sensor in the core integration and its Battery voltage entity follows, without a reload.
- Cleans up after Home Assistant 2026.8: That release's device registry migration left a duplicate of every SensorPush device. On setup, this integration removes the duplicates and moves their entities back onto the core SensorPush device.
- Troubleshooting built in: Each reading records the signal strength, the proxy that took it and the raw value, and the integration supports Home Assistant's diagnostics download. If the core SensorPush integration isn't set up, a repair under Settings > System > Repairs says so.
- Home Assistant 2026.10.0 or newer.
- The core SensorPush integration, set up with your sensors. Every sensor it owns gets audited.
- A Bluetooth adapter or Bluetooth proxy in range of each sensor that can make active (connectable) connections. ESPHome Bluetooth proxies work well.
Since Home Assistant 2026.11, HACS is built into Home Assistant as the Marketplace, under Settings > Marketplace. SensorPush Local isn't in the Marketplace's catalog, so you add it as a custom repository. That needs a GitHub account connected to the Marketplace; the Marketplace asks you to connect one the first time.
- Click the button above. Or go to Settings > Marketplace, select Add from link in the upper-right corner, enter
kyleberry/sensorpush_localand pick Integration if asked for a type. - Open SensorPush Local and click Install.
- Set it up as described under Configuration below. A first install loads without a restart. After an update, restart Home Assistant; a repair reminds you.
Already installed it with HACS? The upgrade to 2026.11 moves it into the Marketplace for you, and updates keep arriving there. There's nothing to reinstall.
- Click the button above, or open HACS and add this repository as a custom repository under the Integration category.
- Click Download.
- Restart Home Assistant.
- Download the
custom_components/sensorpush_localfolder from the latest release. - Copy it into your
/config/custom_components/directory. - Restart Home Assistant.
Manual installs don't get update notifications.
- Go to Settings > Devices & services.
- Click Add integration and search for SensorPush Local.
- Click Submit. There's nothing else to fill in, and only one instance can be added.
Click Configure on the integration to change:
- Daily audit hour (0โ23, default
3): the hour of the day, in local time, when the automatic audit runs. - Max retry attempts (0โ5, default
2): how many times a failed connection is retried before the sensor is skipped until the next audit.
Saving the options reloads the integration.
sensorpush_local.run_audit audits every sensor now instead of waiting for the daily run. It's handy after a battery swap, or to check a new proxy. Calls made by a user need an administrator: that covers Developer tools, and a script a non-admin user runs by hand. Automations, which run without a user, can always call it.
If an audit is already running (scheduled, startup or manual), the call is skipped and the current values are kept.
- Go to Settings > Devices & services > SensorPush Local, open the โฎ menu and select Delete. This removes the Battery voltage entities. The SensorPush devices and their temperature and humidity entities belong to the core SensorPush integration and stay.
- To remove the files as well, uninstall SensorPush Local from the Marketplace (or HACS), or delete
/config/custom_components/sensorpush_localfor a manual install. Then restart Home Assistant.
- HT1 (the original SensorPush sensor), detected from its 4-byte model reply. Its reading is converted as
((raw & 0x7FFF) + 2140) / 1000V (bit 15 is the low-battery flag, not part of the voltage), which matches a multimeter to within about 0.08 V (the sensor measures under load, so it reads a little low). - HT.w and HTP.xw, which report millivolts directly.
Tested with 11 HT1s and 2 HT.w/HTP.xw sensors. Every SensorPush device the core SensorPush integration owns gets audited. A model with some other battery format would be read as an HT.w and could show a wrong voltage; please open an issue if you see one. SensorPush gateways (G1) aren't Bluetooth sensors, so they aren't involved.
Battery voltage tells you more than a percentage would, but what counts as low depends on the model. For HT1s, use the battery_flag example below, or a voltage threshold of 2.85 V: an HT1's reading freezes once it sets the flag, at whatever it read then (seen at 2.77โ2.79 V), so a threshold at or below that frozen value might never be crossed. For other models, pick a threshold from your own sensors' history. Replace sensor.freezer_battery_voltage and notify.notify with your own.
Get a notification when a sensor's battery runs low:
alias: SensorPush battery low
triggers:
- trigger: numeric_state
entity_id:
- sensor.freezer_battery_voltage
below: 2.85
actions:
- action: notify.notify
data:
message: "{{ trigger.to_state.name }} is at {{ trigger.to_state.state }} V. Time for a new battery."A numeric_state trigger can fire again after a sensor comes back from unavailable while its voltage is still below the threshold. For a reminder like this, that's usually what you want.
Get a notification when an HT1 raises its low-battery flag:
alias: SensorPush HT1 low-battery flag
triggers:
- trigger: state
entity_id:
- sensor.freezer_battery_voltage
attribute: battery_flag
to: true
actions:
- action: notify.notify
data:
message: "{{ trigger.to_state.name }} flagged its battery as low."Get a notification when a sensor can't be reached. Audits run once a day, so a sensor stays unavailable until the next one; the for: skips short gaps such as a restart:
alias: SensorPush sensor unreachable
triggers:
- trigger: state
entity_id:
- sensor.freezer_battery_voltage
to: unavailable
for:
hours: 1
actions:
- action: notify.notify
data:
message: "{{ trigger.to_state.name }} couldn't be read during its battery audit."- One reading a day. Battery voltage changes slowly, and every reading needs a Bluetooth connection, which costs the sensor battery. Run
sensorpush_local.run_auditfor a reading now. - Audits take a while. Sensors are read one at a time, and each connection can take 10โ45 seconds. A sensor that can't be reached can take a few minutes to give up on, because each attempt retries the connection several times. Scheduled and startup audits run in the background, so Home Assistant's startup doesn't wait on them.
- Needs connectable Bluetooth. A passive-only proxy or adapter can see a sensor's broadcasts but can't connect to it. A proxy also has a limited number of connection slots, which other integrations may be using.
- HT1 voltage freezes when the battery is low. Once an HT1 sets
battery_flag, its voltage reading stops updating until the battery is reseated or replaced. - A reset HT1's temperature and humidity freeze for about two hours. After a power loss (a battery swap, or a brownout on a weak battery) an HT1's clock resets, and it stops sending readings until something sets the clock. The core SensorPush integration keeps showing the last values. SensorPush gateways and the app used to set the clock; without them, this integration does. It notices readings that haven't changed for 2 hours while the sensor still advertises, turns on the sensor's Readings stale entity and connects to set the clock (at most once every 6 hours per sensor). The daily audit checks every HT1's clock too. Run
sensorpush_local.run_auditafter swapping a battery to set it straight away. temp_at_readisn't calibrated. It's the raw value the sensor sends with its battery reading, not a temperature in ยฐC.- Volts, not percent. There's no reliable voltage-to-percent curve for these batteries, so the integration doesn't guess.
- Depends on the core SensorPush integration. It only audits devices that integration owns.
- A sensor is unavailable. Its last audit failed. Turn on debug logging for
custom_components.sensorpush_local(or run thelogger.set_levelaction withcustom_components.sensorpush_local: debug), runsensorpush_local.run_audit, and check the log for that sensor. "No backend with an available connection slot" means no connectable proxy is in range, or its slots are busy: move a proxy closer or add one. "Not found by any proxies" means no adapter has heard the sensor recently; check its battery. - An HT1 shows an old voltage that never changes. Check
battery_flag. If it'strue, the sensor has frozen its reading; replace or reseat the battery. - An HT1's temperature and humidity stopped changing. Its clock has probably reset (see Known limitations), and its Readings stale entity should be on. The integration sets the clock itself; to do it now, run
sensorpush_local.run_audit. The log shows a warning for each sensor whose clock had reset (plain drift is corrected too, logged at info), and readings come back within seconds. If Readings stale stays on after that, the clock wasn't the problem: check the battery. - The voltage looks impossible. Download diagnostics and compare the reading with
raw_valueandmodel_type, then open an issue with both. A wrong model detection or an unknown battery format would show up there. - Audits never seem to run. Check that the core SensorPush integration is set up and shows your sensors, and that the daily audit hour in the options is what you expect.
Each HT1 also gets a Readings stale problem entity (diagnostic). It's on while the sensor still advertises but its readings haven't changed for 2 hours, which is what a reset clock looks like. It appears once an audit has identified the sensor as an HT1, and it's unavailable until Bluetooth has heard the sensor since Home Assistant started (like the core SensorPush entities). While it's on, its last_reading_change attribute says when the advertised readings last changed. Healthy HT1s in stable spots can repeat the same reading for over an hour (the longest seen in six months of 11 sensors was 84 minutes), which is why it waits 2 hours.
Each Battery voltage entity (in volts) carries these attributes for troubleshooting:
rssi_at_read: signal strength when the reading was taken.proxy_source: the Bluetooth adapter or proxy that took the reading, by its friendly name (e.g. "Living Room Hub"), or its raw identifier (e.g.hci0) if Home Assistant doesn't know the name.last_audit: ISO timestamp (UTC) of the last successful reading.raw_value: the raw millivolt count from the sensor firmware, before the HT1 voltage offset is applied. For an HT1 withbattery_flagset, it includes that flag bit (32768).battery_flag: HT1 only. The sensor sets this once its battery runs low (it has been seen once readings drop below about 2.85 V), and the voltage reading stops updating while it's set. It's an early warning, not a dead battery, but replace the battery soon. Taking the battery out and putting it back also clears the flag until the sensor flags again, so reseating it gets you live readings in the meantime. SensorPush doesn't document this flag.temp_at_read: the raw temperature value returned alongside the battery reading. Its units depend on the device; it isn't calibrated ยฐC.clock_offset: HT1 only. How far the sensor's clock was from Home Assistant's at the last audit, in seconds. A healthy HT1 reads up to a minute behind, because its clock tracks its latest sample.clock_set_at: HT1 only. ISO timestamp (UTC) of the last time an audit set the sensor's clock, because it had reset or was more than 5 minutes off.model_type: the detected hardware generation,Legacy (HT1)orModern (HT.w/HTP.xw).
Found a bug or have an idea? Open an issue on GitHub. If you can, attach the diagnostics download (Settings > Devices & services > SensorPush Local > โฎ > Download diagnostics). For development setup, see CONTRIBUTING.md.
MIT. See LICENSE.