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

Classes

class  ZMSensorEvents
 
class  ZMSensorMonitors
 
class  ZMSensorRunState
 

Functions

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

Variables

 _LOGGER = logging.getLogger(__name__)
 
string CONF_INCLUDE_ARCHIVED = "include_archived"
 
bool DEFAULT_INCLUDE_ARCHIVED = False
 
 PLATFORM_SCHEMA
 

Detailed Description

Support for ZoneMinder sensors.

Function Documentation

◆ setup_platform()

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

Definition at line 68 of file sensor.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 25 of file sensor.py.

◆ CONF_INCLUDE_ARCHIVED

string homeassistant.components.zoneminder.sensor.CONF_INCLUDE_ARCHIVED = "include_archived"

Definition at line 27 of file sensor.py.

◆ DEFAULT_INCLUDE_ARCHIVED

bool homeassistant.components.zoneminder.sensor.DEFAULT_INCLUDE_ARCHIVED = False

Definition at line 29 of file sensor.py.

◆ PLATFORM_SCHEMA

homeassistant.components.zoneminder.sensor.PLATFORM_SCHEMA
Initial value:
1 = SENSOR_PLATFORM_SCHEMA.extend(
2  {
3  vol.Optional(
4  CONF_INCLUDE_ARCHIVED, default=DEFAULT_INCLUDE_ARCHIVED
5  ): cv.boolean,
6  vol.Optional(CONF_MONITORED_CONDITIONS, default=["all"]): vol.All(
7  cv.ensure_list, [vol.In(SENSOR_KEYS)]
8  ),
9  }
10 )

Definition at line 56 of file sensor.py.