home-assistant.io/source/_components/linux_battery.markdown
Piotr Żuralski 6cbcc1acdc fixing ha_category components annotation (#9432)
* fixing ha_category components annotation

Signed-off-by: Piotr Żuralski <piotr.zuralski@gmail.com>

* ✏️ Tweak
2019-05-11 09:46:28 +02:00

1.1 KiB

layout title description date sidebar comments sharing footer logo ha_category ha_release ha_iot_class redirect_from
page Linux Battery Instructions on how to integrate Linux Battery information into Home Assistant. 2016-09-06 07:00 true false true true linux_battery.png
System Monitor
0.28 Local Polling
/components/sensor.linux_battery/

The linux_battery sensor platform is using the information stored in /sys/class/power_supply/ on your local Linux system to display details about the current state of your battery.

To setup a battery sensor to your installation, add the following to your configuration.yaml file:

# Example configuration.yaml entry
sensor:
  - platform: linux_battery

{% configuration %} name: description: Friendly name to use for the frontend. required: false default: Battery type: string battery: description: Number of the battery. required: false default: 1 type: integer system: description: "The local system type. Support linux and android." required: false default: linux type: string {% endconfiguration %}