home-assistant.io/source/_components/sensor.linux_battery.markdown
Fabian Affolter 3ebaef2102 Add batinfo sensor docs (#903)
* Add batinfo sensor docs

* Fix typo

* Rename to linux_battery

* Add new configuration variable and update description
2016-09-07 16:32:55 +02:00

877 B

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

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
    name: Laptop
    battery: 1

Configuration variables:

  • name (Optional): Friendly name to use for the frontend. Default to "Battery".
  • battery (Optional): Number of the battery. Default to 1.