Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.electric_kiwi.sensor Namespace Reference

Classes

class  ElectricKiwiAccountEntity
 
class  ElectricKiwiAccountSensorEntityDescription
 
class  ElectricKiwiHOPEntity
 
class  ElectricKiwiHOPSensorEntityDescription
 

Functions

datetime _check_and_move_time (Hop hop, str time)
 
None async_setup_entry (HomeAssistant hass, ConfigEntry entry, AddEntitiesCallback async_add_entities)
 

Variables

string ATTR_EK_HOP_END = "hop_power_end"
 
string ATTR_EK_HOP_START = "hop_power_start"
 
string ATTR_HOP_PERCENTAGE = "hop_percentage"
 
string ATTR_NEXT_BILLING_DATE = "next_billing_date"
 
string ATTR_TOTAL_CURRENT_BALANCE = "total_account_balance"
 
string ATTR_TOTAL_RUNNING_BALANCE = "total_running_balance"
 

Detailed Description

Support for Electric Kiwi sensors.

Function Documentation

◆ _check_and_move_time()

datetime homeassistant.components.electric_kiwi.sensor._check_and_move_time ( Hop  hop,
str  time 
)
private
Return the time a day forward if HOP end_time is in the past.

Definition at line 89 of file sensor.py.

◆ async_setup_entry()

None homeassistant.components.electric_kiwi.sensor.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  entry,
AddEntitiesCallback   async_add_entities 
)
Electric Kiwi Sensors Setup.

Definition at line 124 of file sensor.py.

Variable Documentation

◆ ATTR_EK_HOP_END

string homeassistant.components.electric_kiwi.sensor.ATTR_EK_HOP_END = "hop_power_end"

Definition at line 31 of file sensor.py.

◆ ATTR_EK_HOP_START

string homeassistant.components.electric_kiwi.sensor.ATTR_EK_HOP_START = "hop_power_start"

Definition at line 30 of file sensor.py.

◆ ATTR_HOP_PERCENTAGE

string homeassistant.components.electric_kiwi.sensor.ATTR_HOP_PERCENTAGE = "hop_percentage"

Definition at line 35 of file sensor.py.

◆ ATTR_NEXT_BILLING_DATE

string homeassistant.components.electric_kiwi.sensor.ATTR_NEXT_BILLING_DATE = "next_billing_date"

Definition at line 34 of file sensor.py.

◆ ATTR_TOTAL_CURRENT_BALANCE

string homeassistant.components.electric_kiwi.sensor.ATTR_TOTAL_CURRENT_BALANCE = "total_account_balance"

Definition at line 33 of file sensor.py.

◆ ATTR_TOTAL_RUNNING_BALANCE

string homeassistant.components.electric_kiwi.sensor.ATTR_TOTAL_RUNNING_BALANCE = "total_running_balance"

Definition at line 32 of file sensor.py.