How can change value of entity attributes via Lovelace or other way

Hi,

I have a entity with a state but two customs attributes (V_VAR1 and V_VAR2). I can get attribute in card but i want to change it with something like input_select or input_value.

How can do that ?

Regards

If this is an entities card, just add name: input select or name: input value to the configuraiton. Most other cards accept name as well, but it depends on which card you’re using. It’s always best to consult the docs on which fields the configuration accepts.

Hi,

Capture d’écran 2022-02-22 160925

Here is what I want to do. I am able to make a list of choices but I don’t know how to apply the result of my choice to my variable (here V_VAR2). I don’t know the code to do this.

Thank you