Replies: 1 comment
-
Möglicherweise stehe ich (Aufgrund von kaputtem Schlafrhythmus) etwas auf dem Schlauch... aber ich versehe nix :-) Ich würde das vermutlich über einen eigenen separaten REST-Template Sensor angehen - anstatt mir von HintenDurchDieBrustInsAuge die namen über die evcc integration zu ziehen... Zur alternative - wenn bei mir das Auto angeschlossen ist, zeigt die 'select.evcc_[lp-name]_vehicle_name` mir meinen Ford an - wenn er aus gestöpselt ist ist der Wert "Unbekannt"... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
do you have an idea how I can get the plaintext names of the vehicles in automations and scripts?
Currently, I'm using this somewhat inflexible dictionary:
variables: options_list: > {% set options = state_attr('select.evcc_garage_vehicle_name', 'options') %} {% if is_state('binary_sensor.evcc_garage_connected', 'on') %} {% set friendly_name = ['Guest Vehicle', 'iV50'] %} {% else %} {% set friendly_name = ['No Vehicle', 'iV50'] %} {% endif %} {{ dict(zip(options, friendly_name)) }}
Behind 'iV50' is 'db:1' for me.
Alternatively, you could also adjust the display of the select for the vehicle name so that it shows 'Guest Vehicle' when a vehicle is connected, or 'No Vehicle' when it's not, just like in the original EVCC GUI.
Thank you very much!
Beta Was this translation helpful? Give feedback.
All reactions