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

Classes

class  ComedHourlyPricingSensor
 

Functions

None async_setup_platform (HomeAssistant hass, ConfigType config, AddEntitiesCallback async_add_entities, DiscoveryInfoType|None discovery_info=None)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
string _RESOURCE = "https://hourlypricing.comed.com/api"
 
string CONF_CURRENT_HOUR_AVERAGE = "current_hour_average"
 
string CONF_FIVE_MINUTE = "five_minute"
 
string CONF_MONITORED_FEEDS = "monitored_feeds"
 
string CONF_SENSOR_TYPE = "type"
 
 PLATFORM_SCHEMA
 
 SCAN_INTERVAL = timedelta(minutes=5)
 
 SENSORS_SCHEMA
 
 TYPES_SCHEMA = vol.In(SENSOR_KEYS)
 

Detailed Description

Support for ComEd Hourly Pricing data.

Function Documentation

◆ async_setup_platform()

None homeassistant.components.comed_hourly_pricing.sensor.async_setup_platform ( HomeAssistant  hass,
ConfigType  config,
AddEntitiesCallback  async_add_entities,
DiscoveryInfoType | None   discovery_info = None 
)
Set up the ComEd Hourly Pricing sensor.

Definition at line 65 of file sensor.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.comed_hourly_pricing.sensor._LOGGER = logging.getLogger(__name__)
private

Definition at line 25 of file sensor.py.

◆ _RESOURCE

string homeassistant.components.comed_hourly_pricing.sensor._RESOURCE = "https://hourlypricing.comed.com/api"
private

Definition at line 26 of file sensor.py.

◆ CONF_CURRENT_HOUR_AVERAGE

string homeassistant.components.comed_hourly_pricing.sensor.CONF_CURRENT_HOUR_AVERAGE = "current_hour_average"

Definition at line 30 of file sensor.py.

◆ CONF_FIVE_MINUTE

string homeassistant.components.comed_hourly_pricing.sensor.CONF_FIVE_MINUTE = "five_minute"

Definition at line 31 of file sensor.py.

◆ CONF_MONITORED_FEEDS

string homeassistant.components.comed_hourly_pricing.sensor.CONF_MONITORED_FEEDS = "monitored_feeds"

Definition at line 32 of file sensor.py.

◆ CONF_SENSOR_TYPE

string homeassistant.components.comed_hourly_pricing.sensor.CONF_SENSOR_TYPE = "type"

Definition at line 33 of file sensor.py.

◆ PLATFORM_SCHEMA

homeassistant.components.comed_hourly_pricing.sensor.PLATFORM_SCHEMA
Initial value:
1 = SENSOR_PLATFORM_SCHEMA.extend(
2  {vol.Required(CONF_MONITORED_FEEDS): [SENSORS_SCHEMA]}
3 )

Definition at line 60 of file sensor.py.

◆ SCAN_INTERVAL

homeassistant.components.comed_hourly_pricing.sensor.SCAN_INTERVAL = timedelta(minutes=5)

Definition at line 28 of file sensor.py.

◆ SENSORS_SCHEMA

homeassistant.components.comed_hourly_pricing.sensor.SENSORS_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  vol.Required(CONF_SENSOR_TYPE): TYPES_SCHEMA,
4  vol.Optional(CONF_NAME): cv.string,
5  vol.Optional(CONF_OFFSET, default=0.0): vol.Coerce(float),
6  }
7 )

Definition at line 52 of file sensor.py.

◆ TYPES_SCHEMA

homeassistant.components.comed_hourly_pricing.sensor.TYPES_SCHEMA = vol.In(SENSOR_KEYS)

Definition at line 50 of file sensor.py.