Hi,
i’ve created a command_line sensor and want to get the friendly_name from json value.
The icon_template works well but the shown name is still the entity_id.
Sorry, this does not look correct. I don’t think you can use wild cards in names like that, and if you could your sensor is incorrectly defined
Templates are self referential only, The values do not persist
Where did you get these templates?
What does jinja interpreter evaluate these to? (developer tools - template)
We have a feature request for friendly name template, but I don’t think it is yet implemented
So again I’d like to know where you got this from?
I was a bit surprised the icon template worked though. I don’t see how using value_json... in the customisation section is tied to the command line sensor. But if it works…
@schluggi what does the output of your command line sensor look like?
@tom_l
What should i say, icon_template works well.
After testing i can say friendly_name_template doesn’t work at all. Not in customize_glob.yaml and also not in customize.yaml even without a “real template”. In configuration.yaml it’s not allowed to use: [firendly_name_template] is an invalid option for [sensor.command_line].
Can anyone confirm this? If not, please post your configuration/customization.
Or in other words: How can i use friendly_name_template?