github maciej-or/hikvision_next v1.0.6

latest releases: v1.0.17, v1.0.16, v1.0.15...
15 months ago

What's Changed

Big up to @msp1974 !

Major Changes

Refactored data structures to: a. have a device dataclass (holding NVR/DVR info and single IP cam info) b. have an object for each camera holding its relevant info and events and streams (particularly as these can be different for different cameras on same NVR) c. have object classes for envents and steams attached to camera object d. used get instead of bracketed syntax to get values as handles it not existing without error. e. build this data structure when calling get_hw_info

Used different method to establish if NVR/DVR or single camera a. /ISAPI/System/capabilities lists VideoCap and InputProxy supported channels. For a NVR/DVR this will always add up to more than 1. For a single IP camera this will be 0 as InputProxy is not listed and VideoCap -> videoInputPortNums will be 0.

Support for multiple installs by making notification a class and only loading if first instance. Prevented multiple events being fired.

Used different method to establish supported events and removed need for guess for videoloss and tamperdetection.

Added diagnostics download option to help with debugging issues. More endpoints can be added in future if needed.

Added fix for non HIKVision cameras not supplying a serial number and generated one from proxyProtocol and IP address if that is the case - shoud be unique!

Minor Changes

Used unique id in config flow instead of looking for device - seemed an issue when removing and re-adding if Onvif installed
get_device_info ensures correct return for new data structure
Added HA event to fire on each nortification
Added check to enable improved error if event types are mutually exclusive. Ie motion deteciton cannot be enabled if line detection is enabled on any channel. Got this from web admin pages javascript.
Added ability to delete devices via UI
Added return xml html encode check as some camera return invalid xml
Issues That Should Be Resolved By This Update
#5 , #19 , #34 , #38 , #45 , #51 , #52 (probably), #54

Full Changelog: v1.0.5...v1.0.6

Don't miss a new hikvision_next release

NewReleases is sending notifications on new releases.