Skip to content

Conversation

@Naiki92
Copy link

@Naiki92 Naiki92 commented Mar 15, 2024

If you're using more than one instance, it may be useful to set an initial custom name. This PR reads the title from EVCC and sets it as the custom name. Changes in EVCC would then be reflected in VRM:

Bildschirmfoto 2024-03-15 um 13 15 44

@Naiki92 Naiki92 changed the title Add initial custom name property Add initial custom name property and support for more than one loadpoints Mar 15, 2024
@tm-107
Copy link

tm-107 commented Jan 18, 2025

I had to add these additional lines before line 140 to make it work:

config = self._getConfig()
deviceinstance = int(config['DEFAULT']['Deviceinstance'])
lpInstance = int(config['DEFAULT']['LoadpointInstance'])

Without these lines I always had the following error in the current.log:

2025-01-18 17:50:23,783 root CRITICAL Error at _update
Traceback (most recent call last):
  File "/data/dbus-evcc2/dbus-evcc.py", line 140, in _update
    loadpoint = result["loadpoints"][lpInstance]
NameError: name 'lpInstance' is not defined

Or have I overlooked something else?

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

Successfully merging this pull request may close these issues.

2 participants