stefanor / signalk-victron-ble

Simple Signal K Node server plugin to read data from Victron devices using Instant Data over BLE
Apache License 2.0
6 stars 2 forks source link

Victron Smart Battery Sense - not reconised #8

Closed raytechnical closed 9 months ago

raytechnical commented 12 months ago

I am running version 0.0.5 of the application on a Raspberry Pi 4. The Smart Solar and BMV712 is working well with the app, I have since added a Smart Battery Sense to the system but it is not showing up in the system.

I have had a look on Bluetoothctl on the Pi and can see the Smart Sense appearing on the screen with the rest of the devices on the system.

I have checked the SignalK logs and there is no errors or any mention of the Smart battery sense device.

Any pointers would be useful as to why the device is not being seen by the application?

Many thanks.

raytechnical commented 12 months ago

I have since run victron_ble on the Pi and I was able to read the data direct from the Battery Smart Sense sensor if that helps?

LasseFrisk commented 12 months ago

I am having the same issue.

Is "BatterySenseData: self.transform_battery_sense_data" missing in the callback function (or whatever it is called in python) at row 57 transformer={... in plugin.py?

plugin.py row 57:

transformers = {
    BatteryMonitorData: self.transform_battery_data,
    SolarChargerData: self.transform_solar_charger_data,
    DcDcConverterData: self.transform_dcdc_converter_data,
}

I forgot to bring my pi and smart battery sense from the boat yesterday so unfortunately I can not test this.

kmon6369 commented 9 months ago

The DC to DC is working great. I have not been able to get the data from the Battery Sense. Have tried the MPPT controllers but that is not working and understand that it has not been tested.

LasseFrisk commented 9 months ago

With the change in my previous post the smart battery sense is now working. About the MPPT controllers, my smart solar 100/20 is working.

kmon6369 commented 9 months ago

I will try the battery sense again and see if maybe I need to wait longer for it to connect. The DC to DC can take up to 15 minutes for the plugin to see it. I will also try again with the MPPT controllers. I have 5. 3 are 100/30 and two are 100/50.

stefanor commented 9 months ago

Sorry, I missed a line of code. Bought a battery sense and immediately spotted the problem :)