Skip to content

Commit

Permalink
testing NVR = 2239
Browse files Browse the repository at this point in the history
  • Loading branch information
pergolafabio committed May 5, 2024
1 parent fd93ed1 commit 7ba0dcc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions hikvision-doorbell/src/doorbell.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class DeviceType(IntEnum):
K1T342 = 10538
HD = 31
AccessControlTerminal = 861
NVR = 2239


class Doorbell():
Expand Down
2 changes: 1 addition & 1 deletion hikvision-doorbell/src/mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ async def video_intercom_alarm(
case VideoInterComAlarmType.DOOR_OPEN_BY_EXTERNAL_FORCE:
# Get information about the door that caused this alarm
door_id = alarm_info.wLockID
logger.info("External force {} detected on door {}", alarm_info.uAlarmInfo, door_id + 1)
logger.info("External force detected on door {}", door_id + 1)
attributes = {
'door_id': door_id + 1,
}
Expand Down

0 comments on commit 7ba0dcc

Please sign in to comment.