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

mppt connect gone / no entities #99

Open
gkathan opened this issue Sep 17, 2023 · 4 comments
Open

mppt connect gone / no entities #99

gkathan opened this issue Sep 17, 2023 · 4 comments

Comments

@gkathan
Copy link

gkathan commented Sep 17, 2023

hi,
I had my mppt 75/15 integrated successfully and saw values coming from the entity ... but yesterday suddenly the connect was gone / lost ... tried to remove the integration and re-add it with no success ... quite puzzling as it still works fine when I directly connect via victron-connect app
any hints?

@gkathan
Copy link
Author

gkathan commented Sep 18, 2023

...having fiddled around now to understand my issue better - the current state looks like:

  • have completely deleted all victron devices and victron integration
  • freshly added the victron integration via HACS link
  • it detects my victron mppt 75/15 charger device
  • gave it the correct advertisment key
  • !! it does NOT list eny entities in the overview !!
  • in the debug log it shows (blue lines) that it successfully sends advertisment key and gets in second blue line the correct paylod data from victron device

2023-09-18 17:03:47.024 DEBUG (MainThread) [custom_components.victron_ble.device] Parsing Victron BLE advertisement data: {737: b"\x10\x02S\xa0\x01\xed/\xce'\x82\xbb\x93\x1a\xae\x9aS\n\x1afk"}
2023-09-18 17:03:47.026 DEBUG (MainThread) [custom_components.victron_ble.device] Handle Victron BLE advertisement data: {'charge_state': <OperationMode.OFF: 0>, 'battery_voltage': 13.32, 'battery_charging_current': 0.0, 'yield_today': 0, 'solar_power': 0, 'external_device_load': 65025}

  • !! BUT then something (redline) happens which i do not understand

2023-09-18 17:03:47.027 ERROR (MainThread) [custom_components.victron_ble] Unexpected error updating smartsolar hamburgT3 data: (<VictronSensor.EXTERNAL_DEVICE_LOAD: 'external_device_load'>, <Units.ELECTRIC_CURRENT_AMPERE: 'A'>)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/bluetooth/passive_update_processor.py", line 535, in async_handle_update
new_data = self.update_method(update)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/victron_ble/sensor.py", line 151, in sensor_update_to_bluetooth_data_update
entity_descriptions={
^
File "/config/custom_components/victron_ble/sensor.py", line 154, in
): SENSOR_DESCRIPTIONS[

@gkathan gkathan changed the title mppt connect gone mppt connect gone / no entities Sep 19, 2023
@coinprotagonist
Copy link

I also have the MPPT 75/15 - what did you put for the address field and where did you find the "Advertisement Key"?

I thought this connected over bluetooth so where would it have an IP address?

@herrfeuer
Copy link

You have to connect it with the Cellphone APP first, then click the Gear Wheel, Top next to the Device Name,
in Settings Window click the 3 Dots -> Product info, scroll down to Instant readout details, Encryption Data > Show
MAC Adress is the Address you need, Encryption Key is the Key.

But sadly its not will Crash then if the Load Current is not 0.

16:31:01.306 ERROR (MainThread) [custom_components.victron_ble] Unexpected error updating SmartSolar HQ2230AMMYX data: (<VictronSensor.EXTERNAL_DEVICE_LOAD: 'external_device_load'>, <Units.ELECTRIC_CURRENT_AMPERE: 'A'>)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/bluetooth/passive_update_processor.py", line 555, in async_handle_update
new_data = self.update_method(update)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/victron_ble/sensor.py", line 151, in sensor_update_to_bluetooth_data_update
entity_descriptions={
^
File "/config/custom_components/victron_ble/sensor.py", line 154, in
): SENSOR_DESCRIPTIONS[
^^^^^^^^^^^^^^^^^^^^
KeyError: (<VictronSensor.EXTERNAL_DEVICE_LOAD: 'external_device_load'>, <Units.ELECTRIC_CURRENT_AMPERE: 'A'>)

I tried it to fix by myself, but my python skills aren't that good.
It would have been working in earlier versions, but the the last changes may broke it.

herrfeuer added a commit to herrfeuer/victron-hacs that referenced this issue Oct 7, 2023
fixes Issue keshavdv#99
KeyError: (<VictronSensor.EXTERNAL_DEVICE_LOAD: 'external_device_load'>, <Units.ELECTRIC_CURRENT_AMPERE: 'A'>
@jamezpolley
Copy link

@herrfeuer's change #101 works for me.

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

4 participants