Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.rpi_power.binary_sensor Namespace Reference

Classes

class  RaspberryChargerBinarySensor
 

Functions

None async_setup_entry (HomeAssistant hass, ConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
string DESCRIPTION_NORMALIZED = "Voltage normalized. Everything is working as intended."
 
tuple DESCRIPTION_UNDER_VOLTAGE
 

Detailed Description

A sensor platform which detects underruns and capped status from the official Raspberry Pi Kernel.

Minimal Kernel needed is 4.14+

Function Documentation

◆ async_setup_entry()

None homeassistant.components.rpi_power.binary_sensor.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up rpi_power binary sensor.

Definition at line 28 of file binary_sensor.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.rpi_power.binary_sensor._LOGGER = logging.getLogger(__name__)
private

Definition at line 19 of file binary_sensor.py.

◆ DESCRIPTION_NORMALIZED

string homeassistant.components.rpi_power.binary_sensor.DESCRIPTION_NORMALIZED = "Voltage normalized. Everything is working as intended."

Definition at line 21 of file binary_sensor.py.

◆ DESCRIPTION_UNDER_VOLTAGE

tuple homeassistant.components.rpi_power.binary_sensor.DESCRIPTION_UNDER_VOLTAGE
Initial value:
1 = (
2  "Under-voltage was detected. Consider getting a uninterruptible power supply for"
3  " your Raspberry Pi."
4 )

Definition at line 22 of file binary_sensor.py.