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

Classes

class  VeSyncSensorEntity
 
class  VeSyncSensorEntityDescription
 

Functions

def _setup_entities (devices, async_add_entities)
 
None async_setup_entry (HomeAssistant hass, ConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 
def ha_dev_type (device)
 
def sku_supported (device, supported)
 
def update_energy (device)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
list AIR_QUALITY_SUPPORTED
 
list FILTER_LIFE_SUPPORTED
 
list PM25_SUPPORTED
 

Detailed Description

Support for voltage, power & energy sensors for VeSync outlets.

Function Documentation

◆ _setup_entities()

def homeassistant.components.vesync.sensor._setup_entities (   devices,
  async_add_entities 
)
private
Check if device is online and add entity.

Definition at line 203 of file sensor.py.

◆ async_setup_entry()

None homeassistant.components.vesync.sensor.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up switches.

Definition at line 183 of file sensor.py.

◆ ha_dev_type()

def homeassistant.components.vesync.sensor.ha_dev_type (   device)
Get the homeassistant device_type for a given device.

Definition at line 64 of file sensor.py.

◆ sku_supported()

def homeassistant.components.vesync.sensor.sku_supported (   device,
  supported 
)
Get the base device of which a device is an instance.

Definition at line 59 of file sensor.py.

◆ update_energy()

def homeassistant.components.vesync.sensor.update_energy (   device)
Update outlet details and energy usage.

Definition at line 53 of file sensor.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 36 of file sensor.py.

◆ AIR_QUALITY_SUPPORTED

list homeassistant.components.vesync.sensor.AIR_QUALITY_SUPPORTED
Initial value:
1 = [
2  "LV-PUR131S",
3  "Core300S",
4  "Core400S",
5  "Core600S",
6  "Vital100S",
7  "Vital200S",
8 ]

Definition at line 79 of file sensor.py.

◆ FILTER_LIFE_SUPPORTED

list homeassistant.components.vesync.sensor.FILTER_LIFE_SUPPORTED
Initial value:
1 = [
2  "LV-PUR131S",
3  "Core200S",
4  "Core300S",
5  "Core400S",
6  "Core600S",
7  "EverestAir",
8  "Vital100S",
9  "Vital200S",
10 ]

Definition at line 69 of file sensor.py.

◆ PM25_SUPPORTED

list homeassistant.components.vesync.sensor.PM25_SUPPORTED
Initial value:
1 = [
2  "Core300S",
3  "Core400S",
4  "Core600S",
5  "EverestAir",
6  "Vital100S",
7  "Vital200S",
8 ]

Definition at line 87 of file sensor.py.