Hi, how do I have multiple templates in a yaml config file. In the following, if I comment out the 2nd one then the first will work, but if I remove this then only the second one works.
template:
sensor:
- name: 'Distance'
unique_id: bmw_distance
device_class: distance
unit_of_measurement: mi
state: "{{ (states('sensor.330e_remaining_range_fuel')|float * 0.62 ) |round(0) }}"
sensor:
- name: 'Garage Temperature'
unique_id: rounded_garage_temp
device_class: temperature
unit_of_measurement: °C
state: "{{ (states('sensor.garage_temperature')) |round(0) }}"