# Bluetooth Sensors for [Signal K](http://www.signalk.org)
## WHAT'S NEW
# Version 1.3.8.beta11
- Add runtime variables to BTSensor notifications.
- Normalize Aranet batteryStrength tags.
- Fix RuuviTag timeout and reduce log spam.
- Add Gobius Pro binary tank level sensor support.
- Fix ECO-WORTHY BW02 telemetry bugs: energy units, temperature handling, and indexing.
# Version 1.3.8.beta10
- Add Cyclops Marine Smartload Bluetooth load sensor support.
- Fix JKBMS configuration regression error
# Version 1.3.8.beta9
- Discard invalid/garbage Victron advertisements (device-state 0xFF, key mismatch, duplicate IV).
- Return null for Operation Mode / Charger Error when the code is 0xFF.
- Clear all registered paths when a device becomes unreachable or out of contact.
- Re-emit RSSI on reconnect and fix sensor-list ordering so RSSI updates flow.
- Retry Bluetooth adapter acquisition instead of failing immediately.
- Revert previous path name rewrite
- Sanitize macAndName value only
- Add Cyclops Marine Smartload Bluetooth load sensor support.
# Version 1.3.8.beta8
- Create valid Signal K path names
- Improve `emitAlarm` handling so null-clear is only sent after a prior alarm was emitted during the session
- Fix reachable handling and add `reachable` path/property support
- Add early return for undefined values in `updatePath`
- Update JikongBMS voltage metadata
- Fix current parsing in `VictronDCEnergyMeter`
- Restore GATT contact heartbeat after `emit()` rename
- Add Bluetooth adapter selection by MAC address
- Mirror battery and inverter alarms to `notifications.*` per spec
- Keep plugin alive with `MissingAdapter` when the configured adapter is missing
# Version 1.3.8.beta7
- multiple stability changes throughout with abundant thanks @nearlcrews (see PRs #142, #143, #144 #145 and #146)
- WattCycle battery support (see PR #139) Kudos to @elliotmoso
- Enhancements to JBMBMS and RenogyRoverClient courtesy of the ever industrious @Techstyleuk (PR #149)
# Version.1.3.8.beta6
- regression error in VictronDCDCConverter fixed
# Jikong fixes (https://github.com/naugehyde/bt-sensors-plugin-sk/pull/138)
- JBDBMS fixes (https://github.com/naugehyde/bt-sensors-plugin-sk/pull/130)
- HumsienkBMS fixes (https://github.com/naugehyde/bt-sensors-plugin-sk/pull/131)
- Generic BTSensor state decoupled from Victron and other device's with state events
# Version 1.3.8-beta2/3/4
- SensorPush fixes
- Error/state code and description for Victron devices per issue #124
- More descriptive notifications per issue #126
- V19 Jikong BMS support
## New sensors
- Shelly/Ecowitt WS90 weather station
# Version 1.3.8-beta1
## New sensors
- MicrotikTag
- SensorPush
## New features
- Rate limiter
# Version 1.3.7
### Issues Addressed
- https://github.com/naugehyde/bt-sensors-plugin-sk/issues/113
- https://github.com/naugehyde/bt-sensors-plugin-sk/issues/108
- https://github.com/naugehyde/bt-sensors-plugin-sk/issues/107
- https://github.com/naugehyde/bt-sensors-plugin-sk/issues/106
- https://github.com/naugehyde/bt-sensors-plugin-sk/issues/103
### Pull Requests included
- https://github.com/naugehyde/bt-sensors-plugin-sk/pull/97
- https://github.com/naugehyde/bt-sensors-plugin-sk/pull/104
- https://github.com/naugehyde/bt-sensors-plugin-sk/pull/111
- https://github.com/naugehyde/bt-sensors-plugin-sk/pull/114
# Version 1.3.6
- New sensor parameter: no contact threshhold.
- Notification if no contact threshhold exceeded for sensor
- Smaller install footprint (moved rjsf dependencies to dev)
# Version 1.3.5
- Battery strength notification for supported sensors
- Battery strength value/icon displayed on config page
- MicrotikTag TG-BT5 environment sensor support
# Version 1.3.4
- Inactivity timeout configuration option. If > 0 and there's been no contact with any Bluetooth device, the plugin will power cycle the bluetooth adapter.
- Exclude non-active devices that are Out of Range from Last Error and Status on SignalK Dashboard
# Version 1.3.3
- Support for additional Xiaomi environmental sensors
- Out Of Range device automatic retry
- [Device pairing guide](./pairing.md)
# Version 1.3.2-1
- VictronSmartBatteryProtect fix
- RenogyRoverClient deviceID clarity
# Version 1.3.2
- Victron Alarm Reason improvements
- VictronOrionXS offReason text implementation
- Shelly Blu H&T description changes
# Version 1.3.1
- JBD Protection status
- SensorPush devices (untested)
# Version 1.3.0
- JikongBMS support (aka JKBMS)
- EcoWorthyBW02 Batteries/BMS support (need testers)
- Ective, Topband, Skanbatt etc LiFePo4 BMS support (ective.de BMS manufacturer)
- FeasyCom BP108B support -- iBeacon/Eddystone protocols
- Refactored code for connected devices
- Display connection/active state in config
- DBus resource issues addressed
- dbus-next package replaced with @jellybrick/dbus-next
- Improved reconnect logic for connected devices
- UI improvements for selecting Sensor Class (if available, paths appear immediately upon selection)
- Mopeka examples not defaults in config for underused paths
- Fix so no plugin restart required after selecting sensor class for an unidentified device
- Fixed Junctek chargeDirection at start (amps will not reported until chargeDirection is known)
- auxMode detection fixes for Victron SmartBatteryMonitor devices
# Version 1.2.5-1
- Reverted change from 1.2.5 to path's source field
- Victron Sensor model ID and name improvements to constistency for VE Smart Networking enabled devices
- Improved initial startup responsiveness
# Version 1.2.5
- On initial startup, plugin saves default configuration. Fixing the "missing" configured devices after restart.
- Mopeka Tank Sensor configuration fix
- Added number of found devices in a domain in the configuration screen's domain tab
# Version 1.2.4-4
Junctek support (tested)
# Version 1.2.4-3
- Mercury Smartcraft fixes (working now!)
- Govee 510x regression errors fixed
# Version 1.2.4-2
- RenogyRoverClient fix to Battery SOC calculation
- VictronBatteryMonitor set default aux mode to secondary voltage
- SwitchBotTH and Meter Plus ::identify errors fixed
- MercurySmartcraft::identify method fix
# Version 1.2.4-1
- **NEW SENSOR** [Bank Manager](https://marinedcac.com/pages/bankmanager) (tested)
- **NEW SENSOR** [Mercury Smartcraft](https://www.mercurymarine.com/us/en/gauges-and-controls/displays/smartcraft-connect) (untested)
- Fixed Govee 5075 parsing
- Added defaults for Renogy Rover Client
- Automatic reconnect for GATT connected devices
### Version 1.2.3
Bug fixes Remoran Wave.3, JunctekBMS, and ShenzhenLiOn
### Version 1.2.2
- Junctek BMS and Remoran Wave 3 support (Note: both are not currently field tested)
- Fixes to ShenzhenLiOn BMS, Victron Orion XS, Victron DC DC Converter, Victron Smart Lithium Classes
### Version 1.2.1
- Dynamic configuration screen. The Device list automatically updates when new devices are found by the BT scanner. (No more annoying screen refresh necessary!).
- Sensors appear under tabs indicating their domain (Environmental, Electrical etc.)
- Support added for [Shelly Blu Motion sensor ](https://us.shelly.com/products/shelly-blu-motion), Gobius C tank meter and LiTime/Rebodo Smart Batteries.
- Default values for paths for most sensor classes.
- Support for multiple simultaneous GATT connections.
## WHAT IT IS
BT Sensors Plugin for Signalk is a lightweight BLE (Bluetooth Low Energy) framework for listening and connecting to Bluetooth sensors on your boat. After discovery and configuration the plugin sends deltas to Signalk paths with values your sensor reports.
It runs on any 2.0 or greater SignalK installation but on Linux only. It's been tested on Desktop and headless RPis, OpenPlotter, and Cerbo GX/Ekrano.
A typical use case is a Bluetooth thermometer like the Xiaomi LYWSD03MMC, an inexpensive Bluetooth thermometer that runs on a 3V watch battery that can report the current temperature and humidity in your refrigerator or cabin or wherever you want to stick it (no judgement.)
The reported temperature can then be displayed on a Signalk app like Kip, WilhelmSK or, with appropriate mapping to NMEA-2000, a NMEA 2000 Multi-function display.
It's pretty easy to write and deploy your own sensor class for any currently unsupported sensor. More on that in [the development README](./sensor_classes/DEVELOPMENT.md).
## SUPPORTED SENSORS
### NOTE
- Not all listed devices and variants have been thoroughly tested. If you encounter any issues, please report on github.
- Some supported devices cannot be automatically identified -- at least not reliably. You'll need to select the sensor class configuration variable manually.
- Not all supported devices are enumerated under their manufacturer. Some device models that are not known to this developer may share a protocol with another brand/model and in fact be supported. Please raise an issue on github if you discover a supported device that's not listed or implied below.
### Electrical
| Manufacturer | Devices |
|--------------|---------|
|[Victron](https://www.victronenergy.com/)|All documented (as of May 2025) devices that support instant readout (AC Charger, Battery Monitor, DC-DC Converter, DC Energy Meter, GX Device, Inverter, Inverter RS, Lynx Smart BMS, Orion XS, Smart Battery Protect, Smart Lithium and VE Bus) See: https://www.victronenergy.com/panel-systems-remote-monitoring/victronconnect|
|[Renogy](https://www.renogy.com/)| Renogy Smart Batteries, Inverters and Rover Client |
|[JBD/Jibada](https://www.jbdbms.com/)| Smart BMS devices see: https://www.jbdbms.com/collections/smart-bms |
|Xiaoxiang| Rebranded JBD/Jibada |
|[LiTime](https://www.litime.com/)| LifePo4 Smart Batteries |
|Redodo| Rebranded LiTime |
|Kilovault| [Kilovault HLX+ smart batteries ](https://sunwatts.com/content/manual/KiloVault_HLX_PLUS_Datasheet_06252021%20%281%29.pdf?srsltid=AfmBOooY-cGnC_Qm6V1T9Vg5oZzBCJurS0AOGoWqWeyy-dwz2vA-l1Jb) (Note: Kilovault appears to be out of business as of March 2024) |
|[Lancol](www.Lancol.com)| [Micro 10C 12V Car Battery Monitor](https://www.lancol.com/product/12v-bluetooth-4-0-battery-tester-micro-10-c/)|
|[Jikong](https://jikongbms.com/)| https://jikongbms.com/product/ |
|[Junctek](https://www.junteks.com)|[Junctek BMS](https://www.junteks.com/pages/product/index) |
|[Remoran](https://remoran.eu)| [Remoran Wave.3](https://remoran.eu/wave.html)|
|[AC DC Systems](https://marinedcac.com) | [Bank Manager](https://marinedcac.com/pages/bankmanager) hybrid (Pb and Li) charger|
|[Ective](https://ective.de/)| Also Topband(?), Skanbatt and others |
|[Leagend](https://leagend.com)| BM 2/6/7 Battery Monitors aka Alcel BM200 and others. See: https://leagend.com/products/bm6|
|[WattCycle](https://wattcycle.com/) / XDZN | LiFePO4 smart batteries (XDZN/WT-prefixed BLE name, BMS service `0xFFF0`). Reverse-engineered from `com.gz.wattcycle` Android APK via [wattcycle_ble](https://github.com/qume/wattcycle_ble). |
### Environmental
| Manufacturer | Devices |
|--------------|----------|
|[Ruuvi](https://ruuvi.com/)| Ruuvi Tag and Ruuvi Tag Pro|
|[Switch Bot](https://www.switch-bot.com/)| Meter Plus and TH devices |
|[Xiaomi](https://www.mi.com/global/)| LYWSD03MMC (and variants) Temp and Humidity Sensor |
|[ATC](https://github.com/atc1441/ATC_MiThermometer)| Custom firmware for LYWSD03MMC |
|[Shelly](https://www.shelly.com/)| Shelly SBHT003C Temperature and Humidity Sensor and Shelly SBMO003Z Motion Sensor |
|[Calypso Instruments](https://calypsoinstruments.com)| [Wireless Wind Meters](https://calypsoinstruments.com/sailing) |
|[Aranet](https://www.aranet.com)| Aranet 2 Temp and Humidity Sensor. Aranet 4 Temp/Humidity/Co2 Sensor. |
|[Govee](http://www.govee.com)| Govee H50xx and H510x Temperature and humidity sensors |
|[BTHome](https://bthome.io/)| NOTE: Framework for IOT sensor devices. |
|[Inkbird](https://inkbird.com/)| TH-2 Temp and Humidity Sensor |
|[SensorPush](https://www.sensorpush.com/)| Temperature, Humidity and Atmospheric Pressure sensor|
|[MicrotikTag](https://mikrotik.com/products/group/iot-products)| TG-BT5 Temperature and Humidity and sensor|
### Tanks
| Manufacturer | Devices |
|--------------|----------|
| [Gobius](https://gobiusc.com/) | Gobius-C Tank level sensor|
| [Mopeka](https://www.mopeka.com) | [Mopeka Pro Chek](https://mopeka.com/product-category/recreational-sensors-rv-bbq-etc/) ultrasonic tank level sensor |
### Load
| Manufacturer | Devices |
|--------------|----------|
| [Cyclops Marine](https://www.cyclopsmarine.com/) | Smartload Bluetooth load sensor |
### Propulsion
| Manufacturer | Devices |
|--------------|----------|
| [Mercury](https://www.mercurymarine.com)| [Mercury Smartcraft](https://www.mercurymarine.com/us/en/gauges-and-controls/displays/smartcraft-connect) connect engine sensor|
### Beacons
| Manufacturer | Devices |
|--------------|----------|
|[FeasyCom](https://www.feasycom.com/)| [BP108B](https://www.feasycom.com/product/fsc-bp108b/) |
## WHO IT'S FOR
Signalk users with a Linux boat-puter (Windows and MacOS are NOT currently supported) and Bluetooth sensors they'd like to integrate into their Signalk datastream.
## REQUIREMENTS
* A Linux Signalk boat-puter with bluetooth-DBUS support
* A Bluetooth adapter, either built-in or a USB external adapter
* [Bluez](https://www.bluez.org) installed
(Go here for [Snap installation instructions](https://snapcraft.io/bluez))
* [Node-ble](https://www.npmjs.com/package/node-ble) (installs with the plugin)
## INSTALLATION
### Signalk Appstore
The plugin is available in the Signalk Appstore. Yay.
### Signal K Server in Docker
If you are running SK Server in a Docker container you'll need to mount the dbus system from the host and run as privileged.
Add the following lines `docker-compose.yml`:
```
volumes:
- /var/run/dbus:/var/run/dbus
privileged: true
```
### NPM Installation
Go to you signalk home (usually ~/.signalk) and run:
npm i bt-sensors-plugin-sk@latest
### Linux
If you want to install directly from source (this is mostly of interest to custom sensor class developers) execute the following from a command prompt:
cd ~/[some_dir] git clone https://github.com/naugehyde/bt-sensors-plugin-sk cd bt-sensors-plugin-sk git pull npm i [sudo] npm link cd [signalk_home] npm link bt-sensors-plugin-skFinally, restart SK. Plugin should appear in your server plugins list.