keshavdv / victron-hacs

Home Assistant plug-in for Victron Instant Readout compatible devices
46 stars 16 forks source link

SmartShunt 500/50 loses connection after configuration of AUX port #106

Open klehnst opened 5 months ago

klehnst commented 5 months ago

The connection to the SmartShunt works perfectly, when I have configured the battery the connection is still available. Then I set the aux port to starter battery and it immediately loses the connection and no more entities are updated. The only thing that helps is a factory reset. Then the integration re-establishes the connection. If I set the Aux Port to None, the shunt keeps its connection and delivers its data.

batuakan commented 1 month ago

I have the same issue as well, this is what the log is complaining about every 200msec

2024-05-16 22:20:27.954 ERROR (MainThread) [custom_components.victron_ble] Unexpected error updating Cookie Shunt data: (<VictronSensor.STARTER_BATTERY_VOLTAGE: 'starter_battery_voltage'>, <Units.ELECTRIC_POTENTIAL_VOLT: 'V'>)
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/homeassistant/components/bluetooth/passive_update_processor.py", line 587, in async_handle_update
    new_data = self.update_method(update)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/victron_ble/sensor.py", line 154, in sensor_update_to_bluetooth_data_update
    ): SENSOR_DESCRIPTIONS[
       ^^^^^^^^^^^^^^^^^^^^
KeyError: (<VictronSensor.STARTER_BATTERY_VOLTAGE: 'starter_battery_voltage'>, <Units.ELECTRIC_POTENTIAL_VOLT: 'V'>)