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

Classes

class  ParticulateMatterSensor
 

Functions

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

Variables

 _LOGGER = logging.getLogger(__name__)
 
string CONF_BRAND = "brand"
 
string CONF_SERIAL_DEVICE = "serial_device"
 
 PLATFORM_SCHEMA
 

Detailed Description

Support for particulate matter sensors connected to a serial port.

Function Documentation

◆ setup_platform()

None homeassistant.components.serial_pm.sensor.setup_platform ( HomeAssistant  hass,
ConfigType  config,
AddEntitiesCallback  add_entities,
DiscoveryInfoType | None   discovery_info = None 
)
Set up the available PM sensors.

Definition at line 34 of file sensor.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 20 of file sensor.py.

◆ CONF_BRAND

string homeassistant.components.serial_pm.sensor.CONF_BRAND = "brand"

Definition at line 22 of file sensor.py.

◆ CONF_SERIAL_DEVICE

string homeassistant.components.serial_pm.sensor.CONF_SERIAL_DEVICE = "serial_device"

Definition at line 23 of file sensor.py.

◆ PLATFORM_SCHEMA

homeassistant.components.serial_pm.sensor.PLATFORM_SCHEMA
Initial value:
1 = SENSOR_PLATFORM_SCHEMA.extend(
2  {
3  vol.Required(CONF_BRAND): cv.string,
4  vol.Required(CONF_SERIAL_DEVICE): cv.string,
5  vol.Optional(CONF_NAME): cv.string,
6  }
7 )

Definition at line 25 of file sensor.py.