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

Classes

class  DteEnergyBridgeSensor
 

Functions

None setup_platform (HomeAssistant hass, ConfigType config, AddEntitiesCallback add_entities, DiscoveryInfoType|None discovery_info=None)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
string CONF_IP_ADDRESS = "ip"
 
string CONF_VERSION = "version"
 
string DEFAULT_NAME = "Current Energy Usage"
 
int DEFAULT_VERSION = 1
 
string DOMAIN = "dte_energy_bridge"
 
 PLATFORM_SCHEMA
 

Detailed Description

Support for monitoring energy usage using the DTE energy bridge.

Function Documentation

◆ setup_platform()

None homeassistant.components.dte_energy_bridge.sensor.setup_platform ( HomeAssistant  hass,
ConfigType  config,
AddEntitiesCallback  add_entities,
DiscoveryInfoType | None   discovery_info = None 
)
Set up the DTE energy bridge sensor.

Definition at line 44 of file sensor.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 24 of file sensor.py.

◆ CONF_IP_ADDRESS

string homeassistant.components.dte_energy_bridge.sensor.CONF_IP_ADDRESS = "ip"

Definition at line 26 of file sensor.py.

◆ CONF_VERSION

string homeassistant.components.dte_energy_bridge.sensor.CONF_VERSION = "version"

Definition at line 27 of file sensor.py.

◆ DEFAULT_NAME

string homeassistant.components.dte_energy_bridge.sensor.DEFAULT_NAME = "Current Energy Usage"

Definition at line 29 of file sensor.py.

◆ DEFAULT_VERSION

int homeassistant.components.dte_energy_bridge.sensor.DEFAULT_VERSION = 1

Definition at line 30 of file sensor.py.

◆ DOMAIN

string homeassistant.components.dte_energy_bridge.sensor.DOMAIN = "dte_energy_bridge"

Definition at line 31 of file sensor.py.

◆ PLATFORM_SCHEMA

homeassistant.components.dte_energy_bridge.sensor.PLATFORM_SCHEMA
Initial value:
1 = SENSOR_PLATFORM_SCHEMA.extend(
2  {
3  vol.Required(CONF_IP_ADDRESS): cv.string,
4  vol.Optional(CONF_NAME, default=DEFAULT_NAME): cv.string,
5  vol.Optional(CONF_VERSION, default=DEFAULT_VERSION): vol.All(
6  vol.Coerce(int), vol.Any(1, 2)
7  ),
8  }
9 )

Definition at line 33 of file sensor.py.