SK
Signal K•2mo ago
naugehyde

New Beta release of bt-sensors-plugin-sk

New Beta release of bt-sensors-plugin-sk 1.1.0-beta-2.2.3 available in SK appstore and NPM See: https://github.com/naugehyde/bt-sensors-plugin-sk/blob/1.1.0/README.md
No description
14 Replies
PaddyB
PaddyB•3w ago
Looks great! Anyone tried sending data to the app over bluetooth (BLE?) from an esp32? And would it be a better option so the raspberry pi has less wifi connections to deal with? I've 3 esp32's sending data over udp to a Pi4. So far..... 😂
naugehyde
naugehydeOP•3w ago
FWIW the plugin is agnostic when it comes to device platform. Although you would have to add a custom sensor class for your custom ESP32.
Chris BHR
Chris BHR•3w ago
I have installed the plugin but when i try to add one of my Victron MPPT controllers i get this error. Any ideas? Its running on a Cerbo if that makes any difference
No description
naugehyde
naugehydeOP•2w ago
@Chris BHR Turn on debug and send me the server log. Not sure what's going on there. What happens when you refresh the screen? Do you see your config paths? Also, running on a Cerbo shouldn't make any difference. To create a server log file, turn debug on for the plugin then from a command line execute the following: journalctl -u signalk.service --since "today" > ~/chrisbhr-sk.log Attach or DM the ~/chrisbhr-sk.log file so I can see if there are any errors.
Chris BHR
Chris BHR•2w ago
Hi, sorry for the slow reply. Here's the log
naugehyde
naugehydeOP•2w ago
Looks like the encryption key for the device with Mac Address DB:78:EF:5A:DB:81 is not valid. Apr 20 19:41:43 2025-04-20T19:41:43.383Z bt-sensors-plugin-sk Unable to instantiate DB:78:EF:5A:DB:81: Invalid key length Check the value and update the configuration. If for some reason you can't edit the value using the configuration screen, edit the config file directly. It's located at ~/.signalk/plugin-config-data/bt-sensors-plugin-sk.json
Chris BHR
Chris BHR•2w ago
I did have a box to enter the encryption key but its since disappeared (which presumably is just the bluetooth passkey?). Sorry, excuse my ignorance but i've got SSH access to the Cerbo but i dont have a ~/.signalk folder. Should i be logged in under a different user? (currently root)
naugehyde
naugehydeOP•2w ago
Root is fine. Look for .signalk folder in the root "/" folder ls /.signalk to list files if they exist. If it's not there it might be in a subfolder under a user in the home folder. To read the home folder ls /home For example if Victron installs SK under the signalk user the file will be located in /home/signalk/.signalk/config-plugin-data
Chris BHR
Chris BHR•2w ago
I found it in the end it was located here (./data/conf/signalk/plugin-config-data) I've looked in the json and the encryption key is correct in there (set to the same as the bluetooth password on the device)
naugehyde
naugehydeOP•2w ago
can you upload the config file? thank you.
Chris BHR
Chris BHR•2w ago
{ "configuration": { "adapter": "hci0", "transport": "auto", "discoveryTimeout": 30, "discoveryInterval": 10, "peripherals": [ { "active": true, "mac_address": "DB:78:EF:5A:DB:81", "discoveryTimeout": 30, "params": { "name": "Test", "encryptionKey": "123456", "sensorClass": "VictronBatteryMonitor" } } ] }, "enabled": true, "enableDebug": false }
naugehyde
naugehydeOP•2w ago
123456 is not a correct encryption key Save the config file as: { "configuration": { "adapter": "hci0", "transport": "auto", "discoveryTimeout": 30, "discoveryInterval": 10, "peripherals": [ ] }, "enabled": true, "enableDebug": false } and restart Signalk.
Chris BHR
Chris BHR•2w ago
Ah, sorry just found where the encryption key is on VictronConnect I added the encryption key but after i restarted SK the plugin had been disabled and the device was no longer saved. So i've resaved the config file with it removed as per your instructions gone through the process and all is working. Thank you!!

Did you find this page helpful?