home-assistant.io/source/_integrations/linux_battery.markdown
c0ffeeca7 7115a66b27
h-l integrations: apply sentence-style caps in categories (#29903)
* h-l integrations: apply sentence-style caps in categories

* Apply suggestions from code review

Co-authored-by: Joakim Sørensen <joasoe@gmail.com>

---------

Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2023-11-20 09:02:30 +01:00

1.0 KiB

title, description, ha_category, ha_release, ha_iot_class, ha_codeowners, ha_domain, ha_platforms, ha_integration_type
title description ha_category ha_release ha_iot_class ha_codeowners ha_domain ha_platforms ha_integration_type
Linux Battery Instructions on how to integrate Linux Battery information into Home Assistant.
System monitor
0.28 Local Polling
@fabaff
linux_battery
sensor
integration

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 %}