keshavdv / victron-ble

A Python API to parse Victron Instant Readout BLE advertisements
The Unlicense
102 stars 34 forks source link

Smart shunt tweaks #51

Closed stefanor closed 5 months ago

stefanor commented 8 months ago

Summary :memo:

The meter type ENUM seemed a little off. I've tested all the values and corrected it. Also adjusted how we parse the bitstream, and added a new model.

Details

Describe more what you did on changes.

  1. Correct the meter type ENUM. Note: This required changing a value in a unit-test, we assume the test was incorrect.
  2. Add SmartShunt IP65 500A/50mV
  3. Parse DC Energy Meter as a BitStruct
  4. Check invalid temperature
  5. Add another test case.

Checks