Iphone battery as a graph

Hi

How I can show iphone battery level as graph instead of blocks?

Install influxdb and grafana.

1 Like

Do you know of a good guide for this?

Mine is displayed as a graph… did nothing special. I see you are missing the percentage. Did you customize it or something?

Take a look at this blogpost

2 Likes

Thanks!
I am using docker, so I will need to interpret the guide to some extent I think.

Grafana work with a couple of services, not only InfludDB. Found this one, maby this will help you?

1 Like

I am using docker on unRAID. After I installed the influxdb and grafana docker it all came together nicely.

Good to know - thanks.
I am currently using freenas 9.x in a VM with docker running on another (Ubuntu) VM.
Freenas 10 was released recently and supports docker natively, so I will probably locate DBs directly on the freenas docker once I upgrade.

Yes, missing percentage (measuring unit) was an issue

Someone just wrote a blog post today…

I’m having the same thing. You put unit_of_measure somewhere under the ios component?

Seems like this obviously should default to a percentage and not need a customization.

1 Like

What and where should I put a line in config to get it in %?

You should update it in the customize section.
Here’s the part from my customize.yaml:

sensor.myphone_battery_level:
  friendly_name: iPhone Battery
  homebridge_hidden: true
  unit_of_measurement: '%'
1 Like

This has been fixed for the next version of Home Assistant.

1 Like