nicolargo / glances

Glances an Eye on your system. A top/htop alternative for GNU/Linux, BSD, Mac OS and Windows operating systems.
http://nicolargo.github.io/glances/
Other
26.81k stars 1.53k forks source link

Home Assistant not showing Battery % #1607

Open oneseventhree opened 4 years ago

oneseventhree commented 4 years ago

Hi,

Is there a way to show Battery percent on Home Assistant?

I can see these sensors but not Battery percent

disk_use_percent: The used disk space in percent. disk_use: The used disk space. disk_free: The free disk space. memory_use_percent: The used memory in percent. memory_use: The used memory. memory_free: The free memory. swap_use_percent: The used swap space in percent. swap_use: The used swap space. swap_free: The free swap space. processor_load: The load. process_running: The number of running processes. process_total: The total number of processes. process_thread: The number of threads. process_sleeping: The number of sleeping processes. cpu_use_percent: The used CPU in percent. cpu_temp: The CPU temperature (may not be available on all platforms). docker_active: The count of active Docker containers. docker_cpu_use: The total CPU usage in percent of Docker containers. docker_memory_use: The total memory used by Docker containers.

Thank you

nicolargo commented 4 years ago

Hi @oneseventhree

Glances uses BatInfo Python lib (https://pypi.org/project/batinfo/) to grab battery information. Is this lib installed on your system ?

Perhaps, the question should be asked to the Glances home assistant packet manager (open another issue here: https://github.com/home-assistant/home-assistant/tree/dev/homeassistant/components/glances) ?

skynet01 commented 4 years ago

I second this request for glances battery monitoring. It shows up in glances but i can't pull it into HA. This issue should be moved to glances integration and renamed :)