Fabian-Schmidt / esphome-victron_ble

Use official Victron BLE endpoint for fetching data from Victron devices via Bluetooth LE via ESPHome.
GNU General Public License v3.0
152 stars 15 forks source link

Victron Muliplus Compact 12/2000/80 120V VE.Bus #37

Closed ottoxgam closed 7 months ago

ottoxgam commented 8 months ago

Hello,

I'm trying to integrate my Multiplus Compact through ESP Home to track Wattage, SOC, and Battery Voltage in HA but I keep running into a "Record type 0C message is too short (13)" Error.

[05:13:22][VV][scheduler:032]: set_timeout(name='VictronBle0', timeout=0)

[05:13:22][VV][esp32_ble_tracker:423]: Parse Result:

[05:13:22][VV][esp32_ble_tracker:440]: Address: CB:53:E9:0F:D7:12 (RANDOM)

[05:13:22][VV][esp32_ble_tracker:442]: RSSI: -56

[05:13:22][VV][esp32_ble_tracker:443]: Name: 'VE.Bus Smart HQ213322AJ4'

[05:13:22][VV][esp32_ble_tracker:451]: Ad Flag: 6

[05:13:22][VV][esp32_ble_tracker:457]: Manufacturer data: 10.03.08.27.0C.1C.3F.69.28.CF.7F.C4.CD.6A.A2.D3.FF.85.EB.DB.ED (21)

[05:13:22][VV][esp32_ble_tracker:473]: Adv data: 02.01.06.18.FF.E1.02.10.03.08.27.0C.1C.3F.69.28.CF.7F.C4.CD.6A.A2.D3.FF.85.EB.DB.ED.19.09.56.45.2E.42.75.73.20.53.6D.61.72.74.20.48.51.32.31.33.33.32.32.41.4A.34 (54)

[05:13:22][VV][victron_ble:152]: [CB:53:E9:0F:D7:12] Cryted message: 28.CF.7F.C4.CD.6A.A2.D3.FF.85.EB.DB.ED (13)

[05:13:22][W][victron_ble:271]: [CB:53:E9:0F:D7:12] Record type 0C message is too short (13).

Fabian-Schmidt commented 8 months ago

Hi @ottoxgam, I think I copied a wrong type from the victron PDF.

Can you please validate that it is working correctly after the change I made?

You might need to include refresh: 0s to the external_components to ensure it loads the updated version.

ottoxgam commented 7 months ago

Everything is looking good on my end! Thanks for the update!

Fabian-Schmidt commented 7 months ago

Everything is looking good on my end! Thanks for the update!

That's great to hear.

Can you assist me with some testing with the Multiplus as I don't have access to such a device.

I am missing some information for the fields ERROR and DEVICE_STATE.

Can you please report some values and what the representation within the Victron App is?

ottoxgam commented 7 months ago

Absolutely! I'll have to re-patch the inverter to the VE.Bus cable when I get home this evening. I have noticed that the SOC from the multiplus seems to be formatted wrong. Photo attached.

Screen Shot 2023-12-23 at 5 18 13 PM
Fabian-Schmidt commented 7 months ago

I changed the sensor reading of SOC. This should fix the issue.

ottoxgam commented 7 months ago

absorbtion Charge: [13:08:52][VV][esp32_ble_tracker:457]: Manufacturer data: 10.03.08.27.0C.12.E9.69.D6.59.8A.43.0E.9B.6A.44.22.5A.CF.4D.38 (21) [13:08:52][VV][esp32_ble_tracker:473]: Adv data: 02.01.06.18.FF.E1.02.10.03.08.27.0C.12.E9.69.D6.59.8A.43.0E.9B.6A.44.22.5A.CF.4D.38.19.09.56.45.2E.42.75.73.20.53.6D.61.72.74.20.48.51.32.31.33.33.32.32.41.4A.34 (54) [13:08:52][VV][victron_ble:152]: [CB:53:E9:0F:D7:12] Cryted message: D6.59.8A.43.0E.9B.6A.44.22.5A.CF.4D.38 (13) [13:08:52][V][victron_ble:204]: [CB:53:E9:0F:D7:12] Enrypted message: 04.00.00.00.99.05.BC.02.B0.15.00.40.F2 (13)

Inverting: [13:09:38][VV][esp32_ble_tracker:457]: Manufacturer data: 10.03.08.27.0C.3F.E9.69.BA.2C.81.23.99.F7.28.BA.D7.55.21.67.33 (21) [13:09:38][VV][esp32_ble_tracker:473]: Adv data: 02.01.06.18.FF.E1.02.10.03.08.27.0C.3F.E9.69.BA.2C.81.23.99.F7.28.BA.D7.55.21.67.33.19.09.56.45.2E.42.75.73.20.53.6D.61.72.74.20.48.51.32.31.33.33.32.32.41.4A.34 (54) [13:09:38][VV][victron_ble:152]: [CB:53:E9:0F:D7:12] Cryted message: BA.2C.81.23.99.F7.28.BA.D7.55.21.67.33 (13) [13:09:38][V][victron_ble:204]: [CB:53:E9:0F:D7:12] Enrypted message: 09.00.E4.FD.69.85.00.00.88.15.00.40.F2 (13)

Once the battery gets back to float, I can get you those as well.