I've made a card that shows temps for all the drives in my NAS.
Unfortunately the friendly_name is very long, "Private Temperature (Drive0:1)".
I would very much like to have it just show Drive 1 or something like that.
How do I do that?
If I put this in the template in developer tools it gives me what I want:
{{state_attr("sensor.private_temperature_drive_0_1","friendly_name") | regex_replace( find='Private Temperature \(|\)|0:', replace='' ) }}
But how do I transfer that to the auto-entitites card?
I've made a card that shows temps for all the drives in my NAS. Unfortunately the friendly_name is very long, "Private Temperature (Drive0:1)". I would very much like to have it just show Drive 1 or something like that. How do I do that?
If I put this in the template in developer tools it gives me what I want:
{{state_attr("sensor.private_temperature_drive_0_1","friendly_name") | regex_replace( find='Private Temperature \(|\)|0:', replace='' ) }}
But how do I transfer that to the auto-entitites card?