Configure template sensor

Please see: