How to add template sensor and change it with node red

how to add template sensor and change it with node red

for exemple change the value of sensor with ui node red dash board