|
| list | _ACTION = _ZOOM_ACTIONS + _MOVE_1_ACTIONS + _MOVE_2_ACTIONS |
| |
| string | _ATTR_COLOR_BW = "color_bw" |
| |
| string | _ATTR_PRESET = "preset" |
| |
| string | _ATTR_PTZ_MOV = "movement" |
| |
| string | _ATTR_PTZ_TT = "travel_time" |
| |
| dictionary | _BOOL_TO_STATE = {True: STATE_ON, False: STATE_OFF} |
| |
| list | _CBW = [_CBW_COLOR, _CBW_AUTO, _CBW_BW] |
| |
| string | _CBW_AUTO = "auto" |
| |
| string | _CBW_BW = "bw" |
| |
| string | _CBW_COLOR = "color" |
| |
| float | _DEFAULT_TT = 0.2 |
| |
| | _LOGGER = logging.getLogger(__name__) |
| |
| list | _MOV |
| |
| list | _MOVE_1_ACTIONS = ["Right", "Left", "Up", "Down"] |
| |
| list | _MOVE_2_ACTIONS = ["RightDown", "RightUp", "LeftDown", "LeftUp"] |
| |
| string | _SRV_CBW = "set_color_bw" |
| |
| | _SRV_CBW_SCHEMA = _SRV_SCHEMA.extend({vol.Required(_ATTR_COLOR_BW): vol.In(_CBW)}) |
| |
| string | _SRV_DS_AUD = "disable_audio" |
| |
| string | _SRV_DS_MOT_REC = "disable_motion_recording" |
| |
| string | _SRV_DS_REC = "disable_recording" |
| |
| string | _SRV_EN_AUD = "enable_audio" |
| |
| string | _SRV_EN_MOT_REC = "enable_motion_recording" |
| |
| string | _SRV_EN_REC = "enable_recording" |
| |
| string | _SRV_GOTO = "goto_preset" |
| |
| | _SRV_GOTO_SCHEMA |
| |
| string | _SRV_PTZ_CTRL = "ptz_control" |
| |
| | _SRV_PTZ_SCHEMA |
| |
| | _SRV_SCHEMA = vol.Schema({vol.Optional(ATTR_ENTITY_ID): cv.comp_entity_ids}) |
| |
| string | _SRV_TOUR_OFF = "stop_tour" |
| |
| string | _SRV_TOUR_ON = "start_tour" |
| |
| list | _ZOOM_ACTIONS = ["ZoomWide", "ZoomTele"] |
| |
| dictionary | CAMERA_SERVICES |
| |
| | SCAN_INTERVAL = timedelta(seconds=15) |
| |
| list | STREAM_SOURCE_LIST = ["snapshot", "mjpeg", "rtsp"] |
| |
Support for Amcrest IP cameras.