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’.
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?
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.