Hi,
Maybe it was already pushed here somewhere but i can’t point to the right solution.
I’m trying to configure a cost for grid electricity depending on the state of a sensor which contains a space as like this 'HC ROUGE". So price is different regarding to the colour. I use template sensor to get this but can’t have correct answer as I think due to the space. I tryed already something like /nbsp; but it’s not working. So I am here if someone can helped me.
{{ states('sensor.linky_tarif_actuel')}}
{{is_state("sensor.linky_tarif_actuel",['HP ROUGE'])}}
It returns:
HP ROUGE
False