Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.sense.const Namespace Reference

Variables

string ACTIVE_NAME = "Energy"
 
string ACTIVE_TYPE = "active"
 
int ACTIVE_UPDATE_RATE = 60
 
string ATTRIBUTION = "Data provided by Sense.com"
 
string CONSUMPTION_ID = "usage"
 
string CONSUMPTION_NAME = "Energy"
 
string DEFAULT_NAME = "Sense"
 
int DEFAULT_TIMEOUT = 30
 
string DOMAIN = "sense"
 
string FROM_GRID_ID = "from_grid"
 
string FROM_GRID_NAME = "From Grid"
 
dictionary MDI_ICONS
 
string NET_PRODUCTION_ID = "net_production"
 
string NET_PRODUCTION_NAME = "Net Production"
 
string PRODUCTION_ID = "production"
 
string PRODUCTION_NAME = "Production"
 
string PRODUCTION_PCT_ID = "production_pct"
 
string PRODUCTION_PCT_NAME = "Net Production Percentage"
 
tuple SENSE_CONNECT_EXCEPTIONS
 
string SENSE_DEVICE_UPDATE = "sense_devices_update"
 
tuple SENSE_TIMEOUT_EXCEPTIONS = (TimeoutError, SenseAPITimeoutException)
 
tuple SENSE_WEBSOCKET_EXCEPTIONS = (socket.gaierror, SenseWebsocketException)
 
string SOLAR_POWERED_ID = "solar_powered"
 
string SOLAR_POWERED_NAME = "Solar Powered Percentage"
 
string TO_GRID_ID = "to_grid"
 
string TO_GRID_NAME = "To Grid"
 
int TREND_UPDATE_RATE = 300
 

Detailed Description

Constants for monitoring a Sense energy sensor.

Variable Documentation

◆ ACTIVE_NAME

string homeassistant.components.sense.const.ACTIVE_NAME = "Energy"

Definition at line 18 of file const.py.

◆ ACTIVE_TYPE

string homeassistant.components.sense.const.ACTIVE_TYPE = "active"

Definition at line 19 of file const.py.

◆ ACTIVE_UPDATE_RATE

int homeassistant.components.sense.const.ACTIVE_UPDATE_RATE = 60

Definition at line 13 of file const.py.

◆ ATTRIBUTION

string homeassistant.components.sense.const.ATTRIBUTION = "Data provided by Sense.com"

Definition at line 21 of file const.py.

◆ CONSUMPTION_ID

string homeassistant.components.sense.const.CONSUMPTION_ID = "usage"

Definition at line 24 of file const.py.

◆ CONSUMPTION_NAME

string homeassistant.components.sense.const.CONSUMPTION_NAME = "Energy"

Definition at line 23 of file const.py.

◆ DEFAULT_NAME

string homeassistant.components.sense.const.DEFAULT_NAME = "Sense"

Definition at line 15 of file const.py.

◆ DEFAULT_TIMEOUT

int homeassistant.components.sense.const.DEFAULT_TIMEOUT = 30

Definition at line 12 of file const.py.

◆ DOMAIN

string homeassistant.components.sense.const.DOMAIN = "sense"

Definition at line 11 of file const.py.

◆ FROM_GRID_ID

string homeassistant.components.sense.const.FROM_GRID_ID = "from_grid"

Definition at line 34 of file const.py.

◆ FROM_GRID_NAME

string homeassistant.components.sense.const.FROM_GRID_NAME = "From Grid"

Definition at line 33 of file const.py.

◆ MDI_ICONS

dictionary homeassistant.components.sense.const.MDI_ICONS

Definition at line 47 of file const.py.

◆ NET_PRODUCTION_ID

string homeassistant.components.sense.const.NET_PRODUCTION_ID = "net_production"

Definition at line 30 of file const.py.

◆ NET_PRODUCTION_NAME

string homeassistant.components.sense.const.NET_PRODUCTION_NAME = "Net Production"

Definition at line 29 of file const.py.

◆ PRODUCTION_ID

string homeassistant.components.sense.const.PRODUCTION_ID = "production"

Definition at line 26 of file const.py.

◆ PRODUCTION_NAME

string homeassistant.components.sense.const.PRODUCTION_NAME = "Production"

Definition at line 25 of file const.py.

◆ PRODUCTION_PCT_ID

string homeassistant.components.sense.const.PRODUCTION_PCT_ID = "production_pct"

Definition at line 28 of file const.py.

◆ PRODUCTION_PCT_NAME

string homeassistant.components.sense.const.PRODUCTION_PCT_NAME = "Net Production Percentage"

Definition at line 27 of file const.py.

◆ SENSE_CONNECT_EXCEPTIONS

tuple homeassistant.components.sense.const.SENSE_CONNECT_EXCEPTIONS
Initial value:
1 = (
2  socket.gaierror,
3  TimeoutError,
4  SenseAPITimeoutException,
5  SenseAPIException,
6 )

Definition at line 40 of file const.py.

◆ SENSE_DEVICE_UPDATE

string homeassistant.components.sense.const.SENSE_DEVICE_UPDATE = "sense_devices_update"

Definition at line 16 of file const.py.

◆ SENSE_TIMEOUT_EXCEPTIONS

tuple homeassistant.components.sense.const.SENSE_TIMEOUT_EXCEPTIONS = (TimeoutError, SenseAPITimeoutException)

Definition at line 38 of file const.py.

◆ SENSE_WEBSOCKET_EXCEPTIONS

tuple homeassistant.components.sense.const.SENSE_WEBSOCKET_EXCEPTIONS = (socket.gaierror, SenseWebsocketException)

Definition at line 39 of file const.py.

◆ SOLAR_POWERED_ID

string homeassistant.components.sense.const.SOLAR_POWERED_ID = "solar_powered"

Definition at line 36 of file const.py.

◆ SOLAR_POWERED_NAME

string homeassistant.components.sense.const.SOLAR_POWERED_NAME = "Solar Powered Percentage"

Definition at line 35 of file const.py.

◆ TO_GRID_ID

string homeassistant.components.sense.const.TO_GRID_ID = "to_grid"

Definition at line 32 of file const.py.

◆ TO_GRID_NAME

string homeassistant.components.sense.const.TO_GRID_NAME = "To Grid"

Definition at line 31 of file const.py.

◆ TREND_UPDATE_RATE

int homeassistant.components.sense.const.TREND_UPDATE_RATE = 300

Definition at line 14 of file const.py.