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

Classes

class  NeurioData
 
class  NeurioEnergy
 

Functions

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

Variables

 _LOGGER = logging.getLogger(__name__)
 
string ACTIVE_NAME = "Energy Usage"
 
string ACTIVE_TYPE = "active"
 
string CONF_API_SECRET = "api_secret"
 
string CONF_SENSOR_ID = "sensor_id"
 
string DAILY_NAME = "Daily Energy Usage"
 
string DAILY_TYPE = "daily"
 
 MIN_TIME_BETWEEN_ACTIVE_UPDATES = timedelta(seconds=10)
 
 MIN_TIME_BETWEEN_DAILY_UPDATES = timedelta(seconds=150)
 
 PLATFORM_SCHEMA
 

Detailed Description

Support for monitoring a Neurio energy sensor.

Function Documentation

◆ setup_platform()

None homeassistant.components.neurio_energy.sensor.setup_platform ( HomeAssistant  hass,
ConfigType  config,
AddEntitiesCallback  add_entities,
DiscoveryInfoType | None   discovery_info = None 
)
Set up the Neurio sensor.

Definition at line 50 of file sensor.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 26 of file sensor.py.

◆ ACTIVE_NAME

string homeassistant.components.neurio_energy.sensor.ACTIVE_NAME = "Energy Usage"

Definition at line 31 of file sensor.py.

◆ ACTIVE_TYPE

string homeassistant.components.neurio_energy.sensor.ACTIVE_TYPE = "active"

Definition at line 34 of file sensor.py.

◆ CONF_API_SECRET

string homeassistant.components.neurio_energy.sensor.CONF_API_SECRET = "api_secret"

Definition at line 28 of file sensor.py.

◆ CONF_SENSOR_ID

string homeassistant.components.neurio_energy.sensor.CONF_SENSOR_ID = "sensor_id"

Definition at line 29 of file sensor.py.

◆ DAILY_NAME

string homeassistant.components.neurio_energy.sensor.DAILY_NAME = "Daily Energy Usage"

Definition at line 32 of file sensor.py.

◆ DAILY_TYPE

string homeassistant.components.neurio_energy.sensor.DAILY_TYPE = "daily"

Definition at line 35 of file sensor.py.

◆ MIN_TIME_BETWEEN_ACTIVE_UPDATES

homeassistant.components.neurio_energy.sensor.MIN_TIME_BETWEEN_ACTIVE_UPDATES = timedelta(seconds=10)

Definition at line 39 of file sensor.py.

◆ MIN_TIME_BETWEEN_DAILY_UPDATES

homeassistant.components.neurio_energy.sensor.MIN_TIME_BETWEEN_DAILY_UPDATES = timedelta(seconds=150)

Definition at line 38 of file sensor.py.

◆ PLATFORM_SCHEMA

homeassistant.components.neurio_energy.sensor.PLATFORM_SCHEMA
Initial value:
1 = SENSOR_PLATFORM_SCHEMA.extend(
2  {
3  vol.Required(CONF_API_KEY): cv.string,
4  vol.Required(CONF_API_SECRET): cv.string,
5  vol.Required(CONF_SENSOR_ID): cv.string,
6  }
7 )

Definition at line 41 of file sensor.py.