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

Classes

class  AmcrestSensor
 

Functions

None async_setup_platform (HomeAssistant hass, ConfigType config, AddEntitiesCallback async_add_entities, DiscoveryInfoType|None discovery_info=None)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
 SCAN_INTERVAL = timedelta(seconds=SENSOR_SCAN_INTERVAL_SECS)
 
string SENSOR_PTZ_PRESET = "ptz_preset"
 
string SENSOR_SDCARD = "sdcard"
 

Detailed Description

Support for Amcrest IP camera sensors.

Function Documentation

◆ async_setup_platform()

None homeassistant.components.amcrest.sensor.async_setup_platform ( HomeAssistant  hass,
ConfigType  config,
AddEntitiesCallback  async_add_entities,
DiscoveryInfoType | None   discovery_info = None 
)
Set up a sensor for an Amcrest IP Camera.

Definition at line 48 of file sensor.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 24 of file sensor.py.

◆ SCAN_INTERVAL

homeassistant.components.amcrest.sensor.SCAN_INTERVAL = timedelta(seconds=SENSOR_SCAN_INTERVAL_SECS)

Definition at line 26 of file sensor.py.

◆ SENSOR_PTZ_PRESET

string homeassistant.components.amcrest.sensor.SENSOR_PTZ_PRESET = "ptz_preset"

Definition at line 28 of file sensor.py.

◆ SENSOR_SDCARD

string homeassistant.components.amcrest.sensor.SENSOR_SDCARD = "sdcard"

Definition at line 29 of file sensor.py.