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

Classes

class  AmberForecastSensor
 
class  AmberGridSensor
 
class  AmberPriceDescriptorSensor
 
class  AmberPriceSensor
 
class  AmberSensor
 

Functions

None async_setup_entry (HomeAssistant hass, AmberConfigEntry entry, AddEntitiesCallback async_add_entities)
 
float format_cents_to_dollars (float cents)
 
str friendly_channel_type (str channel_type)
 

Variables

string UNIT = f"{CURRENCY_DOLLAR}/{UnitOfEnergy.KILO_WATT_HOUR}"
 

Detailed Description

Amber Electric Sensor definitions.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.amberelectric.sensor.async_setup_entry ( HomeAssistant  hass,
AmberConfigEntry  entry,
AddEntitiesCallback  async_add_entities 
)
Set up a config entry.

Definition at line 197 of file sensor.py.

◆ format_cents_to_dollars()

float homeassistant.components.amberelectric.sensor.format_cents_to_dollars ( float  cents)
Return a formatted conversion from cents to dollars.

Definition at line 32 of file sensor.py.

◆ friendly_channel_type()

str homeassistant.components.amberelectric.sensor.friendly_channel_type ( str  channel_type)
Return a human readable version of the channel type.

Definition at line 37 of file sensor.py.

Variable Documentation

◆ UNIT

string homeassistant.components.amberelectric.sensor.UNIT = f"{CURRENCY_DOLLAR}/{UnitOfEnergy.KILO_WATT_HOUR}"

Definition at line 29 of file sensor.py.