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

Classes

class  OpenHardwareMonitorData
 
class  OpenHardwareMonitorDevice
 

Functions

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

Variables

 _LOGGER = logging.getLogger(__name__)
 
string CONF_INTERVAL = "interval"
 
 MIN_TIME_BETWEEN_UPDATES = timedelta(seconds=15)
 
string OHM_CHILDREN = "Children"
 
string OHM_MAX = "Max"
 
string OHM_MIN = "Min"
 
string OHM_NAME = "Text"
 
string OHM_VALUE = "Value"
 
 PLATFORM_SCHEMA
 
 RETRY_INTERVAL = timedelta(seconds=30)
 
 SCAN_INTERVAL = timedelta(seconds=30)
 
string STATE_MAX_VALUE = "maximum_value"
 
string STATE_MIN_VALUE = "minimal_value"
 
string STATE_OBJECT = "object"
 
string STATE_VALUE = "value"
 

Detailed Description

Support for Open Hardware Monitor Sensor Platform.

Function Documentation

◆ setup_platform()

None homeassistant.components.openhardwaremonitor.sensor.setup_platform ( HomeAssistant  hass,
ConfigType  config,
AddEntitiesCallback  add_entities,
DiscoveryInfoType | None   discovery_info = None 
)
Set up the Open Hardware Monitor platform.

Definition at line 48 of file sensor.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 25 of file sensor.py.

◆ CONF_INTERVAL

string homeassistant.components.openhardwaremonitor.sensor.CONF_INTERVAL = "interval"

Definition at line 31 of file sensor.py.

◆ MIN_TIME_BETWEEN_UPDATES

homeassistant.components.openhardwaremonitor.sensor.MIN_TIME_BETWEEN_UPDATES = timedelta(seconds=15)

Definition at line 33 of file sensor.py.

◆ OHM_CHILDREN

string homeassistant.components.openhardwaremonitor.sensor.OHM_CHILDREN = "Children"

Definition at line 40 of file sensor.py.

◆ OHM_MAX

string homeassistant.components.openhardwaremonitor.sensor.OHM_MAX = "Max"

Definition at line 39 of file sensor.py.

◆ OHM_MIN

string homeassistant.components.openhardwaremonitor.sensor.OHM_MIN = "Min"

Definition at line 38 of file sensor.py.

◆ OHM_NAME

string homeassistant.components.openhardwaremonitor.sensor.OHM_NAME = "Text"

Definition at line 41 of file sensor.py.

◆ OHM_VALUE

string homeassistant.components.openhardwaremonitor.sensor.OHM_VALUE = "Value"

Definition at line 37 of file sensor.py.

◆ PLATFORM_SCHEMA

homeassistant.components.openhardwaremonitor.sensor.PLATFORM_SCHEMA
Initial value:
1 = SENSOR_PLATFORM_SCHEMA.extend(
2  {vol.Required(CONF_HOST): cv.string, vol.Optional(CONF_PORT, default=8085): cv.port}
3 )

Definition at line 43 of file sensor.py.

◆ RETRY_INTERVAL

homeassistant.components.openhardwaremonitor.sensor.RETRY_INTERVAL = timedelta(seconds=30)

Definition at line 35 of file sensor.py.

◆ SCAN_INTERVAL

homeassistant.components.openhardwaremonitor.sensor.SCAN_INTERVAL = timedelta(seconds=30)

Definition at line 34 of file sensor.py.

◆ STATE_MAX_VALUE

string homeassistant.components.openhardwaremonitor.sensor.STATE_MAX_VALUE = "maximum_value"

Definition at line 28 of file sensor.py.

◆ STATE_MIN_VALUE

string homeassistant.components.openhardwaremonitor.sensor.STATE_MIN_VALUE = "minimal_value"

Definition at line 27 of file sensor.py.

◆ STATE_OBJECT

string homeassistant.components.openhardwaremonitor.sensor.STATE_OBJECT = "object"

Definition at line 30 of file sensor.py.

◆ STATE_VALUE

string homeassistant.components.openhardwaremonitor.sensor.STATE_VALUE = "value"

Definition at line 29 of file sensor.py.