My phone battery sensor does not report battery level

Hello. I tried to create a template sensor to report battery level for my phone.

Phone Battery is {{ state_attr('sensor.pixel_4a_5g_battery_level',
        'battery')}} %

It always only reports ‘None’.

iPhone?
Android?
Nokia 3310? :slight_smile:

Search is your friend:

Android Pixel 4a5G

That entity has no such attribute

The entity’s state is the battery level

Thank you! That is what I was missing.