@rhizomatics/signalk-ble-sensors-plugin
v1.0.2
Published
Passive BLE sensor listening for SignalK (SwitchBot, RuuviTag, and others) via the SignalK BLE Manager API — no GATT connection required.
Maintainers
Readme
signalk-ble-sensors-plugin
This is a limited replacement for bt-sensors-plugin-sk that has SignalK BLE Manager support, with only a few sensors known to work and passive only BLE integration. It may work for other sensors not listed here, and PRs welcome to add or correct support.
Passive BLE sensor listening for SignalK — reads temperature, humidity and battery data broadcast by cheap, popular BLE sensors and republishes it to SignalK paths, without ever opening a Bluetooth connection to the device. Relies only on BLE Manager, so requires SignalK v2.31 or above with v2.34+ recommended.
How it works
Sensors like these broadcast their readings in plain BLE advertisement packets a few times a second. This plugin listens to that broadcast stream through the SignalK server's BLE Manager API and decodes it — there's no pairing, no GATT connection, and no battery drain on the sensor from being connected to.
Devices the plugin doesn't recognise (anything not in the supported list below — a phone, a fitness tracker, or a sensor type not yet supported) are ignored entirely; only useful advertisements from a recognised sensor type are ever surfaced, so there's noise from unknown devices reporting their Bluetooth signal strength.
Air Pressure Override
For boats that have IP68 RuuviTag Pro outside and RuuviTag inside, it can be handy to republish the inside pressure value as if it were outside, for example when using the Barometer Trend plugin, so there's an option now to pick a device to publish the pressure also to environment.outside.pressure.
Requirements
- SignalK server >= 2.31.0 with the BLE Manager enabled (Server → Bluetooth in the admin UI) and at least one BLE provider available — the server's own local Bluetooth adapter support is enough, or a BLE proxy.
- No other dependencies. This plugin never talks to Bluetooth hardware directly.
Supported sensors
| Sensor | Notes | | ------------------------------------------------ | ------------------------------------------------------ | | SwitchBot Meter (WoSensorTH) | Actively used, well tested | | SwitchBot Meter Plus | Actively used, well tested | | RuuviTag (data format 5) | Actively used, well tested | | Xiaomi LYWSD03MMC (pvvx/atc1441 custom firmware) | Best-effort — not actively used, contributions welcome | | Govee H5074 / H5075 | Best-effort — not actively used, contributions welcome |
Stock Xiaomi firmware (encrypted, not the ATC/pvvx custom firmware above) isn't supported. On the custom firmware, choose the custom (pvvx) or atc1441 advertising format; BTHome isn't decoded yet. Sensors that need a GATT connection to read (Victron, Renogy, most BMS chips, etc.) are out of scope for this plugin. Many of these already have plugins, such as signalk-bluetti-plugin or signalk-victron-ble.
Configuring a sensor
- Install and enable the plugin, then restart (or just start) the SignalK server.
- Make sure the sensor is powered on and within Bluetooth range for a minute or two.
- Open the plugin's configuration page and click + Add Item under "Registered sensors".
- Pick the sensor from the Device dropdown — it lists every recognised sensor the plugin has seen, labelled with its advertised name, sensor type, and MAC address. If it's not there yet, close the page, wait a bit longer, and reopen it.
- Fill in a Zone / location — this becomes part of the SignalK path (
environment.<zone>.temperature, etc.). The SignalK spec puts indoor zones underinside, so use e.g.inside.mainCabin,inside.refrigeratororinside.engineRoom(givingenvironment.inside.mainCabin.temperature), andoutsidefor the outside air — and optionally a Name override. - Save. Readings should start appearing within a few seconds.
If a sensor measures pressure (currently RuuviTag only), it can optionally also be picked as the Outside pressure source
(a plugin-level setting, above "Registered sensors") to additionally publish its reading to environment.outside.pressure —
the SignalK-standard path other plugins (e.g. barometer trend) expect — alongside its own environment.<zone>.pressure. The
sensor still needs to be added under "Registered sensors" as usual; picking it here doesn't register it on its own.
Published paths
| Value | Path | Unit |
| ---------------- | ------------------------------------- | ----------------------------------- |
| Temperature | environment.<zone>.temperature | K |
| Humidity | environment.<zone>.relativeHumidity | ratio (0-1) |
| Pressure | environment.<zone>.pressure | Pa |
| Battery strength | sensors.<name>.battery.strength | ratio (0-1), with low-battery zones |
| Battery voltage | sensors.<name>.battery.voltage | V |
| Signal strength | sensors.<name>.RSSI | dB |
| Reachable | sensors.<name>.reachable | boolean |
| Motion counter | sensors.<name>.motionCounter | count |
<name> is the sensor's name, lowercased and sanitized — give each registered sensor a distinct name, since
two sensors with the same name will collide on these paths. Not every sensor publishes every path above — only the values its
decoder actually supports (e.g. only RuuviTag currently reports pressure and a motion counter).
These path and unit conventions are reused from bt-sensors-plugin-sk so this plugin's output lines up with dashboards or alarms already built against that plugin's paths.
Relationship to bt-sensors-plugin-sk
bt-sensors-plugin-sk is the more complete, actively maintained BLE sensor plugin for SignalK, supporting many more sensors including ones that need a GATT connection. It doesn't yet have support for the BLE Manager, so can suffer the same issues as other dedicated Bluetooth plugins. This plugin exists to cover the gap in the meantime for a narrower set of passive, advertisement-only sensors, and is expected to be retired once that support lands upstream.
Bluetooth Issues
There's a long list of of advice and fixes for Bluetooth Low Energy on SignalK at the eInk Label Bluetooth page that covers Bluetti use too, although Bluetti isn't as tricky to work with as some eInk labels.
