I have a sensor sensor.incidents which give this info: P 1 BNN-03 Persoon te water N363 - Winsumerweg Baflo 011411 011810 011871 013493 011531
I use it for text to speach and I would like to replace some words. Like '011810' to 'Flipper' and delete some, for me unnecessary, numbers.
I did some research and found several info and created these lines in my 'configuration.yaml':
platform: template
sensors:
incidents:
friendly_name: “Incidenten”
value_template:
state: >
{{ states('sensor.incidents') | replace("011810", "Flipper",) | }}
Although I don't get an error when I reboot HA, this doesn't work. Also not after a 'clear cache' so I do something wrong.
Can someone help me with this?