A custom Home Assistant integration for the Airversa Scenta BLE diffuser
(model SP3M). It keeps a persistent BLE connection open to each diffuser (with
keepalive and auto-reconnect) and exposes each one as a switch entity.
This is the successor to the
ha-airversa-diffuser
add-on. The big difference:
It works through Bluetooth proxies. The old add-on ran in its own container and could only talk to the Home Assistant host's internal Bluetooth adapter. This integration uses Home Assistant's native Bluetooth stack, so it can reach diffusers through any ESPHome / Shelly Bluetooth proxy on your network — no longer limited to the range of the host antenna.
| Add-on (old) | Integration (this repo) | |
|---|---|---|
| BLE access | Direct BlueZ in a container → host adapter only | Home Assistant bluetooth component → host adapters and proxies |
| Bluetooth proxies (ESPHome/Shelly) | ❌ not possible | ✅ supported |
| Control surface | A file in /share + shell_command glue |
A real switch entity per diffuser |
| Setup | Add-on store + edit configuration.yaml |
UI config flow (auto-discovery or MAC entry) |
| State | cat a file via command_line sensor |
Native entity state from BLE ACK frames |
| Multiple devices | devices: list in add-on options |
One config entry per diffuser |
The BLE protocol itself is unchanged — same characteristic, handshake (PIN
8888), keepalive, and on/off frames — so the same hardware works exactly as
before, just with a better transport and a cleaner Home Assistant surface.
- Home Assistant 2024.11 or newer.
- The Home Assistant Bluetooth integration set up with at least one adapter
or one Bluetooth proxy
(an ESPHome device with
bluetooth_proxy:+active: true, or a compatible Shelly). - The Airversa phone app closed — a diffuser only allows one BLE central at a time.
- HACS → ⋮ → Custom repositories.
- Add
https://github.com/ajachierno/ha-airversa-diffuser-intas an Integration. - Install Airversa Scenta Diffuser, then restart Home Assistant.
Copy custom_components/airversa_diffuser/ into your Home Assistant
config/custom_components/ folder and restart.
Most likely Home Assistant will auto-discover the diffuser via Bluetooth and offer it under Settings → Devices & services. Just confirm it.
If it isn't discovered automatically (the advertised name varies between units/firmware):
- Settings → Devices & services → Add integration → Airversa Scenta Diffuser.
- Enter the diffuser's Bluetooth MAC address (e.g.
24:42:E3:37:86:E7). Recently-seen Bluetooth devices are listed on the form to help you identify it. - Optionally give it a name.
Repeat once per diffuser — each becomes its own device with one switch.
Each diffuser is exposed as a single switch:
- On / Off maps to the diffuser's
2d13/2d12BLE commands. - State reflects the device's own ACK frames (
ad13/ad12), so it shows the confirmed state, not an assumed one. - The switch is
unavailablewhile the BLE link is down (out of range, off, or the phone app is holding it), and recovers automatically when it reconnects.
Per diffuser (Configure on the device):
- Keepalive interval (seconds) — default
2.0. How often the keepalive frame is sent over the open link. Lower it if a session ever times out.
- Install and set up this integration for each diffuser.
- Remove the old
shell_command:andcommand_line:entries you added for the add-on, and anyinput_boolean+ automation glue used to bridge them. - Point your automations/dashboards at the new
switch.<name>entities directly. - Uninstall the "Airversa Diffuser BLE Bridge" add-on so it stops holding the BLE adapter (only one central can hold a diffuser at a time).
| Frame | Bytes | Meaning |
|---|---|---|
| Characteristic | 0000fff6-0000-1000-8000-00805f9b34fb |
write + notify |
| Handshake | 8f383838384f4b3031 |
contains PIN 8888 |
| Keepalive | e0aa55 |
sent every keepalive seconds |
| On | 2d13 |
ACK ad13 |
| Off | 2d12 |
ACK ad12 |
- Never connects — confirm the MAC, close the Airversa phone app, and make sure an adapter or proxy is actually in range. Enable debug logging (below).
- Drops after N seconds — lower the keepalive interval in the device's options.
- Not auto-discovered — add it manually by MAC; discovery depends on the advertised name, which differs across units.
Enable debug logs by adding to configuration.yaml:
logger:
logs:
custom_components.airversa_diffuser: debugMIT — see LICENSE
Did you find this helpful? Consider supporting additional development: