Hi. I see that battery level is reported by the device and I would like to display it on lovelace. I tried the script bellow but it returns unknown. Any ideas?
There is also a HACS plugin, “Attributes” that “Breaks out specified attribute from other entities to a sensor”. Super easy to do. I used to have a template working but then I changed something and it stopped working. I got lazy and moved over to the plugin.
I’m kind of surprised that one worked either. Usually the quotes outside the template need to be the opposite type of the ones inside the template brackets or the template parser throws an error.