Change variable for whole HA

Let’s say I have 5 names

      - type: custom:mushroom-template-card
        primary: "NAME1"
      - type: custom:mushroom-template-card
        primary: "NAME2"
      - type: custom:mushroom-template-card
        primary: "NAME3"

Is it possible to configurate those names somewhere, when changed it changes in the whole setup ?

so NAME1= Oliver
Name2= Bertrand
Name3=blalbalb

so when changed, it is changed in the whole HA setup ?

You could create a text helper.

1 Like

thats cool !

Or simply !include or !secrets (yaml-mode only):

      - type: custom:mushroom-template-card
        primary: !include .....
      - type: custom:mushroom-template-card
        primary: !include .....
      - type: custom:mushroom-template-card
        primary: !include .....

(1 included file contains one definition)

      - type: custom:mushroom-template-card
        primary: !secret name_1
      - type: custom:mushroom-template-card
        primary: !secret name_2
      - type: custom:mushroom-template-card
        primary: !secret name_3

(1 “secret.yaml” file may contain many definitions)

1 Like