|
|
|
@ -140,7 +140,7 @@ class AmcrestAPI(object):
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
config = self.devices[device_id]['config']
|
|
|
|
config = self.devices[device_id]['config']
|
|
|
|
|
|
|
|
|
|
|
|
self.logger.info(f'Event on {config["host"]} - {code}: {payload}')
|
|
|
|
self.logger.debug(f'Event on {config["host"]} - {code}: {payload}')
|
|
|
|
|
|
|
|
|
|
|
|
if ((code == "ProfileAlarmTransmit" and config["is_ad110"])
|
|
|
|
if ((code == "ProfileAlarmTransmit" and config["is_ad110"])
|
|
|
|
or (code == "VideoMotion" and not config["is_ad110"])):
|
|
|
|
or (code == "VideoMotion" and not config["is_ad110"])):
|
|
|
|
|