Just finished my quest to get the battery-level of my HASSIO ubuntu-laptop available in HASSIO for automating the charging-cycle. The idea I have is to keep the battery-level between 80% and 20%, to minimize wear from charging/decharging. So I need the battery-level to get an automation switching power on when the level reaches 20% and of when the battery is charged to 80%.
Because the examples in the InfluxDB-sensor documentation where not all that clear te me, I spend the last few days struggling to get this working.
This is how I finally got it working:
Hello @jpduhen , I try your example, but I get no Battery.value in my glances database.
Have you done something special to get this ?
Are you running HAOS in a VM ?
If I look at Glances, all the way down at Sensors you see the Battery %. InfluxDB sensor is called ‘Battery.value’ and it’s measurement is found at ‘localhost.sensors’.