Change variable value into Home Assistant



  • Hi,

    Somebody know how can change value in the persistence file via a card on Home Assistant for specific sensor node/id ?

                "5": {
                    "id": 5,
                    "type": 3,
                    "description": "",
                    "values": {
                        "24": "1", // Need change this value
                        "25": "5", // Need change this value
                        "2": "0"```


  • Bien,

    J'ai trouvé la manière d'aller chercher ces variables depuis Home Assistant. Je pense qu'il ne faut pas le faire par le fichier même mais par les attributs de l'entité. Reste pour moi de trouver un moyen de modifié ces variables.

    {{ state_attr('switch.relaisboard_2_2', 'V_VAR1') }}  // result 1
    {{ state_attr('switch.relaisboard_2_2', 'V_VAR2') }}  // result 5
    

    Je continue mes investigations.


  • Hardware Contributor

    @diltech
    glad to hear you found a way.

    Just a little note.. this is not a french forum 😉


Log in to reply
 

Suggested Topics

  • 1
  • 2
  • 3
  • 6
  • 8
  • 2

0
Online

11.2k
Users

11.1k
Topics

112.5k
Posts