Hi,
I’m trying to do template sensor where I need to know the sensor name. I’m just starting with the test template.
sensor:
- platform: "template"
sensors:
test_template:
friendly_name: "Test template"
unique_id: "test_template"
unit_of_measurement: 'my own'
value_template: "Hello from {{ some_way_how_to_get_sensor_name }}"
My plan is to use the same value_template in several sensors (by using !include ../my_templates/myFancyTemplate.yaml
).
Is it possible or the template engine is separated form the sensor itself ?