Home Assistant Battery Monitoring on X86 Tablet

Hi Guys,

I’ve been trying all day to get the battery information from our X86 tablet into Home Assistant running HAOS, but haven’t had any success. The tablet does have a battery, and I can see its status when running commands on the host, for example:

cat /sys/class/power_supply/BAT0/capacity

However, creating a sensor in YAML in Home Assistant does not generate entities like sensor.battery or sensor.battery_status. It seems HAOS is not exposing the host battery to the container, so the standard Linux integration doesn’t see it. anyone have anything. I’ve added all the YAML code and still nothing: Any assistant appreciated: Here’s whatI added to YAML:
sensor:

  • platform: command_line
    name: Host Battery Level
    command: “cat /sys/class/power_supply/BAT0/capacity”
    unit_of_measurement: “%”
    scan_interval: 60

  • platform: command_line
    name: Host Battery Status
    command: “cat /sys/class/power_supply/BAT0/status”

Oh, never mind. Not what you want/need.