Hi,
first at all: great work, very helpful card.
But templating gives me a headache ;-)
I've got alarm entitie with the {name} like 'Garage Door State Volvo'. I'd like to implement the message to include only the 'Volvo' part to display "Garage door Volvo is open for 5min".
I was able to achieve this by using
Garage door {{ '{name}'|replace('Garage Door State ', '') }} is open for 5min
but the card then starts to flicker.
BTW: I had expected to use a template like {{ name | replace('Garage Door State ', '') }}
Hi,
first at all: great work, very helpful card.
But templating gives me a headache ;-)
I've got alarm entitie with the {name} like 'Garage Door State Volvo'. I'd like to implement the message to include only the 'Volvo' part to display "Garage door Volvo is open for 5min".
I was able to achieve this by using
Garage door {{ '{name}'|replace('Garage Door State ', '') }} is open for 5minbut the card then starts to flicker.
BTW: I had expected to use a template like
{{ name | replace('Garage Door State ', '') }}