mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-04-25 13:57:37 +00:00
1.2 KiB
1.2 KiB
title | description | ha_category | ha_release | ha_iot_class | ha_codeowners | ha_domain | ha_platforms | ha_integration_type | related | ha_quality_scale | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Linux Battery | Instructions on how to integrate Linux Battery information into Home Assistant. |
|
0.28 | Local Polling |
|
linux_battery |
|
integration |
|
legacy |
The linux_battery
sensor {% term integration %} 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 {% term "configuration.yaml
" %} file.
{% include integrations/restart_ha_after_config_inclusion.md %}
# 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 %}