v1.2.1
What's changed
- Sub-endpoint fallback for stubborn cameras — Some Hikvision models (e.g. DS-2CD3367WDP2V2-L) reject all writes to
/ISAPI/Image/channels/1withnotSupport, even when sending unmodified XML. When the full endpoint returnsnotSupporton a single-field change, the integration now automatically retries against the corresponding sub-endpoint (e.g./Shutter,/SupplementLight). Cameras that already worked continue to use the full endpoint unchanged. - PUT body debug logging — All four PUT sites now log the outgoing XML at debug level, making it easier to diagnose firmware-specific rejection behavior. Enable with
logger.set_levelaction andcustom_components.hikvision_isapi: debug.
Credits
Thanks to @lkwchoi for diagnosing the issue, building the fix, and contributing the PR (#4). Fixes #2.