Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.huisbaasje Namespace Reference

Namespaces

 config_flow
 
 const
 
 sensor
 

Functions

def _get_cumulative_value (dict current_measurements, str source_type, str period_type)
 
def _get_measurement_rate (dict current_measurements, str source_type)
 
bool async_setup_entry (HomeAssistant hass, ConfigEntry entry)
 
bool async_unload_entry (HomeAssistant hass, ConfigEntry entry)
 
dict[str, dict[str, Any]] async_update_energyflip (EnergyFlip energyflip)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
list PLATFORMS = [Platform.SENSOR]
 

Detailed Description

The EnergyFlip integration.

Function Documentation

◆ _get_cumulative_value()

def homeassistant.components.huisbaasje._get_cumulative_value ( dict  current_measurements,
str  source_type,
str  period_type 
)
private
Get the cumulative energy consumption for a certain period.

:param current_measurements: The result from the EnergyFlip client
:param source_type: The source of energy (electricity or gas)
:param period_type: The period for which cumulative value should be given.

Definition at line 122 of file __init__.py.

◆ _get_measurement_rate()

def homeassistant.components.huisbaasje._get_measurement_rate ( dict  current_measurements,
str  source_type 
)
private

Definition at line 146 of file __init__.py.

◆ async_setup_entry()

bool homeassistant.components.huisbaasje.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  entry 
)
Set up EnergyFlip from a config entry.

Definition at line 33 of file __init__.py.

◆ async_unload_entry()

bool homeassistant.components.huisbaasje.async_unload_entry ( HomeAssistant  hass,
ConfigEntry  entry 
)
Unload a config entry.

Definition at line 74 of file __init__.py.

◆ async_update_energyflip()

dict[str, dict[str, Any]] homeassistant.components.huisbaasje.async_update_energyflip ( EnergyFlip  energyflip)
Update the data by performing a request to EnergyFlip.

Definition at line 86 of file __init__.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.huisbaasje._LOGGER = logging.getLogger(__name__)
private

Definition at line 30 of file __init__.py.

◆ PLATFORMS

list homeassistant.components.huisbaasje.PLATFORMS = [Platform.SENSOR]

Definition at line 28 of file __init__.py.