Passer une valeur à un script

Bonjour,
regarde un peu mon post si cela peut t’aider:
https://forum.hacf.fr/t/couleur-button-card-thermostat/45955/8