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

Classes

class  ZMSwitchMonitors
 

Functions

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

Variables

 _LOGGER = logging.getLogger(__name__)
 
 PLATFORM_SCHEMA
 

Detailed Description

Support for ZoneMinder switches.

Function Documentation

◆ setup_platform()

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

Definition at line 35 of file switch.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 25 of file switch.py.

◆ PLATFORM_SCHEMA

homeassistant.components.zoneminder.switch.PLATFORM_SCHEMA
Initial value:
1 = SWITCH_PLATFORM_SCHEMA.extend(
2  {
3  vol.Required(CONF_COMMAND_ON): cv.string,
4  vol.Required(CONF_COMMAND_OFF): cv.string,
5  }
6 )

Definition at line 27 of file switch.py.