Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Consumed amp hours reported to HA #95

Open
ottoxgam opened this issue Aug 22, 2023 · 2 comments
Open

No Consumed amp hours reported to HA #95

ottoxgam opened this issue Aug 22, 2023 · 2 comments

Comments

@ottoxgam
Copy link

ottoxgam commented Aug 22, 2023

Version of the custom_component

99fd3cc

-->

Configuration

Added config via GUI

Describe the bug

Consumed AH shows in the debug log as a parsed value, but it appears it does not create a sensor item.

Debug log


2023-08-17 19:33:13.821 INFO (MainThread) [homeassistant.setup] Setting up victron_ble
2023-08-17 19:33:13.821 INFO (MainThread) [homeassistant.setup] Setup of domain victron_ble took 0.0 seconds
2023-08-17 19:33:15.658 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.victron_ble
2023-08-21 17:02:53.482 DEBUG (MainThread) [custom_components.victron_ble.device] Parsing Victron BLE advertisement data: {737: b'\x10\x02\x89\xa3\x02\x9e\x98\xb1|\xe8\xe2\xb5\xdbusg\x06\xd1a\xb5\xd5\x96n'}
2023-08-21 17:02:53.484 DEBUG (MainThread) [custom_components.victron_ble.device] Handle Victron BLE advertisement data: {'remaining_mins': 8623, 'aux_mode': <AuxMode.DISABLED: 3>, 'current': -1.175, 'voltage': 13.28, 'consumed_ah': 32.0, 'soc': 86.2, 'alarm': 0}
2023-08-21 17:02:53.484 DEBUG (MainThread) [custom_components.victron_ble.sensor] IN 2here: PassiveBluetoothDataUpdate(devices={None: {'name': 'SmartShunt HQ20489NKZ7', 'manufacturer': 'Victron', 'model': 'SmartShunt 500A/50mV'}}, entity_descriptions={PassiveBluetoothEntityKey(key='voltage', device_id=None): SensorEntityDescription(key='voltage_V', device_class=<SensorDeviceClass.VOLTAGE: 'voltage'>, entity_category=None, entity_registry_enabled_default=True, entity_registry_visible_default=True, force_update=False, icon=None, has_entity_name=False, name=<UndefinedType._singleton: 0>, translation_key=None, unit_of_measurement=None, last_reset=None, native_unit_of_measurement=<Units.ELECTRIC_POTENTIAL_VOLT: 'V'>, options=None, state_class=<SensorStateClass.MEASUREMENT: 'measurement'>, suggested_display_precision=None, suggested_unit_of_measurement=None), PassiveBluetoothEntityKey(key='current', device_id=None): SensorEntityDescription(key='current_A', device_class=<SensorDeviceClass.CURRENT: 'current'>, entity_category=None, entity_registry_enabled_default=True, entity_registry_visible_default=True, force_update=False, icon=None, has_entity_name=False, name=<UndefinedType._singleton: 0>, translation_key=None, unit_of_measurement=None, last_reset=None, native_unit_of_measurement=<Units.ELECTRIC_CURRENT_AMPERE: 'A'>, options=None, state_class=<SensorStateClass.MEASUREMENT: 'measurement'>, suggested_display_precision=None, suggested_unit_of_measurement=None), PassiveBluetoothEntityKey(key='battery', device_id=None): SensorEntityDescription(key='battery_%', device_class=<SensorDeviceClass.BATTERY: 'battery'>, entity_category=None, entity_registry_enabled_default=True, entity_registry_visible_default=True, force_update=False, icon=None, has_entity_name=False, name=<UndefinedType._singleton: 0>, translation_key=None, unit_of_measurement=None, last_reset=None, native_unit_of_measurement=<Units.PERCENTAGE: '%'>, options=None, state_class=<SensorStateClass.MEASUREMENT: 'measurement'>, suggested_display_precision=None, suggested_unit_of_measurement=None), PassiveBluetoothEntityKey(key=<VictronSensor.TIME_REMAINING: 'time_remaining'>, device_id=None): SensorEntityDescription(key=<VictronSensor.TIME_REMAINING: 'time_remaining'>, device_class=<SensorDeviceClass.DURATION: 'duration'>, entity_category=None, entity_registry_enabled_default=True, entity_registry_visible_default=True, force_update=False, icon=None, has_entity_name=False, name=<UndefinedType._singleton: 0>, translation_key=None, unit_of_measurement=None, last_reset=None, native_unit_of_measurement=<Units.TIME_MINUTES: 'min'>, options=None, state_class=<SensorStateClass.MEASUREMENT: 'measurement'>, suggested_display_precision=None, suggested_unit_of_measurement=None), PassiveBluetoothEntityKey(key=<VictronSensor.AUX_MODE: 'aux_mode'>, device_id=None): SensorEntityDescription(key=<VictronSensor.AUX_MODE: 'aux_mode'>, device_class=<SensorDeviceClass.ENUM: 'enum'>, entity_category=None, entity_registry_enabled_default=True, entity_registry_visible_default=True, force_update=False, icon=None, has_entity_name=False, name=<UndefinedType._singleton: 0>, translation_key=None, unit_of_measurement=None, last_reset=None, native_unit_of_measurement=None, options=['starter_voltage', 'midpoint_voltage', 'temperature', 'disabled'], state_class=None, suggested_display_precision=None, suggested_unit_of_measurement=None), PassiveBluetoothEntityKey(key='signal_strength', device_id=None): SensorEntityDescription(key='signal_strength_dBm', device_class=<SensorDeviceClass.SIGNAL_STRENGTH: 'signal_strength'>, entity_category=None, entity_registry_enabled_default=False, entity_registry_visible_default=True, force_update=False, icon=None, has_entity_name=False, name=<UndefinedType._singleton: 0>, translation_key=None, unit_of_measurement=None, last_reset=None, native_unit_of_measurement=<Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT: 'dBm'>, options=None, state_class=<SensorStateClass.MEASUREMENT: 'measurement'>, suggested_display_precision=None, suggested_unit_of_measurement=None)}, entity_names={PassiveBluetoothEntityKey(key='voltage', device_id=None): 'Voltage', PassiveBluetoothEntityKey(key='current', device_id=None): 'Current', PassiveBluetoothEntityKey(key='battery', device_id=None): 'Battery', PassiveBluetoothEntityKey(key=<VictronSensor.TIME_REMAINING: 'time_remaining'>, device_id=None): 'Time remaining', PassiveBluetoothEntityKey(key=<VictronSensor.AUX_MODE: 'aux_mode'>, device_id=None): 'Auxilliary Input Mode', PassiveBluetoothEntityKey(key='signal_strength', device_id=None): 'Signal Strength'}, entity_data={PassiveBluetoothEntityKey(key='voltage', device_id=None): 13.28, PassiveBluetoothEntityKey(key='current', device_id=None): -1.18, PassiveBluetoothEntityKey(key='battery', device_id=None): 86.2, PassiveBluetoothEntityKey(key=<VictronSensor.TIME_REMAINING: 'time_remaining'>, device_id=None): 8623, PassiveBluetoothEntityKey(key=<VictronSensor.AUX_MODE: 'aux_mode'>, device_id=None): 'disabled', PassiveBluetoothEntityKey(key='signal_strength', device_id=None): -64})

@preussal
Copy link

Same by me

2023-09-21 11:34:30.630 DEBUG (MainThread) [custom_components.victron_ble.device] Parsing Victron BLE advertisement data: {737: b'\x10\x02\x89\xa3\x02VELy\t\xf5S#\xb2lIp\x11\x8f\xb4\x14H\xf4'}
2023-09-21 11:34:30.631 DEBUG (MainThread) [custom_components.victron_ble.device] Handle Victron BLE advertisement data: {'remaining_mins': 65535, 'aux_mode': <AuxMode.DISABLED: 3>, 'current': 44.122, 'voltage': 53.49, 'consumed_ah': 351.9, 'soc': 38.2, 'alarm': 0}
2023-09-21 11:34:30.632 DEBUG (MainThread) [custom_components.victron_ble.sensor] IN 2here: PassiveBluetoothDataUpdate(devices={None: {'name': 'SmartShunt HQ2239RFZVW', 'manufacturer': 'Victron', 'model': 'SmartShunt 500A/50mV'}}, entity_descriptions={PassiveBluetoothEntityKey(key='voltage', device_id=None): SensorEntityDescription(key='voltage_V', device_class=<SensorDeviceClass.VOLTAGE: 'voltage'>, entity_category=None, entity_registry_enabled_default=True, entity_registry_visible_default=True, force_update=False, icon=None, has_entity_name=False, name=<UndefinedType._singleton: 0>, translation_key=None, unit_of_measurement=None, last_reset=None, native_unit_of_measurement=<Units.ELECTRIC_POTENTIAL_VOLT: 'V'>, options=None, state_class=<SensorStateClass.MEASUREMENT: 'measurement'>, suggested_display_precision=None, suggested_unit_of_measurement=None), PassiveBluetoothEntityKey(key='current', device_id=None): SensorEntityDescription(key='current_A', device_class=<SensorDeviceClass.CURRENT: 'current'>, entity_category=None, entity_registry_enabled_default=True, entity_registry_visible_default=True, force_update=False, icon=None, has_entity_name=False, name=<UndefinedType._singleton: 0>, translation_key=None, unit_of_measurement=None, last_reset=None, native_unit_of_measurement=<Units.ELECTRIC_CURRENT_AMPERE: 'A'>, options=None, state_class=<SensorStateClass.MEASUREMENT: 'measurement'>, suggested_display_precision=None, suggested_unit_of_measurement=None), PassiveBluetoothEntityKey(key='battery', device_id=None): SensorEntityDescription(key='battery_%', device_class=<SensorDeviceClass.BATTERY: 'battery'>, entity_category=None, entity_registry_enabled_default=True, entity_registry_visible_default=True, force_update=False, icon=None, has_entity_name=False, name=<UndefinedType._singleton: 0>, translation_key=None, unit_of_measurement=None, last_reset=None, native_unit_of_measurement=<Units.PERCENTAGE: '%'>, options=None, state_class=<SensorStateClass.MEASUREMENT: 'measurement'>, suggested_display_precision=None, suggested_unit_of_measurement=None), PassiveBluetoothEntityKey(key=<VictronSensor.TIME_REMAINING: 'time_remaining'>, device_id=None): SensorEntityDescription(key=<VictronSensor.TIME_REMAINING: 'time_remaining'>, device_class=<SensorDeviceClass.DURATION: 'duration'>, entity_category=None, entity_registry_enabled_default=True, entity_registry_visible_default=True, force_update=False, icon=None, has_entity_name=False, name=<UndefinedType._singleton: 0>, translation_key=None, unit_of_measurement=None, last_reset=None, native_unit_of_measurement=<Units.TIME_MINUTES: 'min'>, options=None, state_class=<SensorStateClass.MEASUREMENT: 'measurement'>, suggested_display_precision=None, suggested_unit_of_measurement=None), PassiveBluetoothEntityKey(key=<VictronSensor.AUX_MODE: 'aux_mode'>, device_id=None): SensorEntityDescription(key=<VictronSensor.AUX_MODE: 'aux_mode'>, device_class=<SensorDeviceClass.ENUM: 'enum'>, entity_category=None, entity_registry_enabled_default=True, entity_registry_visible_default=True, force_update=False, icon=None, has_entity_name=False, name=<UndefinedType._singleton: 0>, translation_key=None, unit_of_measurement=None, last_reset=None, native_unit_of_measurement=None, options=['starter_voltage', 'midpoint_voltage', 'temperature', 'disabled'], state_class=None, suggested_display_precision=None, suggested_unit_of_measurement=None), PassiveBluetoothEntityKey(key='signal_strength', device_id=None): SensorEntityDescription(key='signal_strength_dBm', device_class=<SensorDeviceClass.SIGNAL_STRENGTH: 'signal_strength'>, entity_category=None, entity_registry_enabled_default=False, entity_registry_visible_default=True, force_update=False, icon=None, has_entity_name=False, name=<UndefinedType._singleton: 0>, translation_key=None, unit_of_measurement=None, last_reset=None, native_unit_of_measurement=<Units.SIGNAL_STRENGTH_DECIBELS_MILLIWATT: 'dBm'>, options=None, state_class=<SensorStateClass.MEASUREMENT: 'measurement'>, suggested_display_precision=None, suggested_unit_of_measurement=None)}, entity_names={PassiveBluetoothEntityKey(key='voltage', device_id=None): 'Voltage', PassiveBluetoothEntityKey(key='current', device_id=None): 'Current', PassiveBluetoothEntityKey(key='battery', device_id=None): 'Battery', PassiveBluetoothEntityKey(key=<VictronSensor.TIME_REMAINING: 'time_remaining'>, device_id=None): 'Time remaining', PassiveBluetoothEntityKey(key=<VictronSensor.AUX_MODE: 'aux_mode'>, device_id=None): 'Auxilliary Input Mode', PassiveBluetoothEntityKey(key='signal_strength', device_id=None): 'Signal Strength'}, entity_data={PassiveBluetoothEntityKey(key='voltage', device_id=None): 53.49, PassiveBluetoothEntityKey(key='current', device_id=None): 44.12, PassiveBluetoothEntityKey(key='battery', device_id=None): 38.2, PassiveBluetoothEntityKey(key=<VictronSensor.TIME_REMAINING: 'time_remaining'>, device_id=None): 65535, PassiveBluetoothEntityKey(key=<VictronSensor.AUX_MODE: 'aux_mode'>, device_id=None): 'disabled', PassiveBluetoothEntityKey(key='signal_strength', device_id=None): -76})

@btraversjr21
Copy link

I have the same issue with my smartshunt. Is there a fix for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants