Adding Reolink API to the IpCamera binding, beta testers needed

Yes, the channel only shows what ONVIF events are sent by the camera. It is a READ ONLY channel so you cannot change its state with a rule. It may be possible to use the metadata/expiration timer feature. If you do that it is really only for cosmetic reasons in the UI.
See the different triggers for rules here:
Rules | openHAB

If you only trigger on received command ON the rule works compared to changed from OFF to ON. You could see the second one being more useful if someone is pressing the button multiple times and you only want 1 picture of the visitor to make reviewing easier at the end of the day.

No problem it was 30 seconds of work to add it, just takes a user that willing to turn on TRACE logs and report that the camera has feature not hooked up so thank you for doing that and also pointing out that it was possible. Reolink has done a smart thing by adding this feature as it is going to make their camera very popular as almost all other brands cannot do this.

That is what opensource is all about, we contribute so others can enjoy it as well.

I uploaded another build last night which hopefully the token works this time so the other channels can get tested. Some other tweaks like defaulting the onvif port to 8000 was done, so any feedback and suggestions on what needs to be changed to get the camera fully working would be great. It should be a matter of just user/pass/ip and the NVR channel and the rest should be fine to leave on defaults. If someone needs to be changed, then we can now set the default values to work out of the box as Relolink now has its own thing-type.

Great the more testers the better whilst the code is fresh in my head it is quicker to make changes.

Before getting this merged the following needs to be done:

  • Get the token working or revert to using user/pass in all urls.
  • Test the new channels function correct that are listed in the first post of this thread.
  • Test if auto discovery works and the result is for REOLINK and not ONVIF.
  • Work out how to turn the motion detection on and off without specifying a schedule.

The last one can be done by using CURL and playing with the json cutting out lines and seeing if the camera allows a reduced json to only toggle the on and off without specifying a schedule.

So, Iā€™ve added the latest build (ipcamera-Reolink-20221221-PM).
The TRACE log from just adding the camera again gave 47067 rows in the log in just a bit more than 1 second. But, luckily then stopped, so no errors atm.
The amount of data is even to big for pastebin :open_mouth: and the .txt is to big to upload here. Zipped it, and that isnā€™t accepted. So please rename the .log back to .zip to open the .txt of the log.
ipcamera-Reolink-20221221-PM TRACE LOG.zip.log (42.9 KB)

Just quickly looking at the logs I see some positive news.
The token seems to be made.
And the token is accepted because the getability works. (Although I donā€™t know why it is done 3 times.)

My guess is that due to changing JARs whilst code was running there may be more than 1 request getting sent. Best to do a restart or stop openhab when swapping out the JAR files. Also it was creating logs for every chunk sent, so I have hopefully fixed it in this build just uploaded. Just a note that the token will expire in 1 hour and I need to know what the camera sends when you try and use a command with an expired token so I can detect and send the renew a token. Whilst testing just pause and un-pause and it will get a new token to keep testing with. It will not stop the alarms working so the build can be used in production if you wish as any features that stop, do not exist in the ONVIF thing type.

Installed the latest version and rebooted the machine just te be sure.

Log is way more compact now :wink:

2022-12-23 08:32:34.334 [DEBUG] [amera.internal.onvif.OnvifConnection] - Connecting 192.168.2.9 to ONVIF
2022-12-23 08:32:34.335 [TRACE] [amera.internal.onvif.OnvifConnection] - Sending ONVIF request:GetSystemDateAndTime
2022-12-23 08:32:34.352 [TRACE] [era.internal.handler.IpCameraHandler] - Sending camera: POST: http://192.168.2.9:80/api.cgi?cmd=Login&token=null
2022-12-23 08:32:34.376 [TRACE] [amera.internal.onvif.OnvifConnection] - Onvif reply is:<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:saml1="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:ns1="http://www.onvif.org/ver20/media/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trc="http://www.onvif.org/ver10/recording/wsdl" xmlns:trp="http://www.onvif.org/ver10/replay/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:trv="http://www.onvif.org/ver10/receiver/wsdl" xmlns:tse="http://www.onvif.org/ver10/search/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:tad="http://www.onvif.org/ver20/analytics/wsdl"><SOAP-ENV:Body><tds:GetSystemDateAndTimeResponse><tds:SystemDateAndTime><tt:DateTimeType>NTP</tt:DateTimeType><tt:DaylightSavings>true</tt:DaylightSavings><tt:TimeZone><tt:TZ>CST-1:00:00DST-1:00:00,M3.4.0/02:00:00,M10.5.0/03:00:00</tt:TZ></tt:TimeZone><tt:UTCDateTime><tt:Time><tt:Hour>7</tt:Hour><tt:Minute>32</tt:Minute><tt:Second>35</tt:Second></tt:Time><tt:Date><tt:Year>2022</tt:Year><tt:Month>12</tt:Month><tt:Day>23</tt:Day></tt:Date></tt:UTCDateTime><tt:LocalDateTime><tt:Time><tt:Hour>8</tt:Hour><tt:Minute>32</tt:Minute><tt:Second>35</tt:Second></tt:Time><tt:Date><tt:Year>2022</tt:Year><tt:Month>12</tt:Month><tt:Day>23</tt:Day></tt:Date></tt:LocalDateTime></tds:SystemDateAndTime></tds:GetSystemDateAndTimeResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

2022-12-23 08:32:34.377 [TRACE] [amera.internal.onvif.OnvifConnection] - Sending ONVIF request:GetCapabilities
2022-12-23 08:32:34.379 [DEBUG] [amera.internal.onvif.OnvifConnection] - Cameras  UTC dateTime is:2022-12-23T7:32:35
2022-12-23 08:32:34.379 [DEBUG] [amera.internal.onvif.OnvifConnection] - Openhabs UTC dateTime is:2022-12-23T07:32:34.379Z
2022-12-23 08:32:34.432 [TRACE] [era.internal.handler.IpCameraHandler] - Recieved partial reply that is chunked.
2022-12-23 08:32:34.433 [TRACE] [era.internal.handler.IpCameraHandler] - LastHttpContent and is chunked:true
2022-12-23 08:32:34.433 [TRACE] [era.internal.handler.IpCameraHandler] - HTTP Result from /api.cgi?cmd=Login&token=null contains 	:[
   {
      "cmd" : "Login",
      "code" : 0,
      "value" : {
         "Token" : {
            "leaseTime" : 3600,
            "name" : "1d547e408776388"
         }
      }
   }
]
:
2022-12-23 08:32:34.433 [DEBUG] [era.internal.handler.IpCameraHandler] - Your Reolink camera gave a login token:1d547e408776388
2022-12-23 08:32:34.434 [TRACE] [era.internal.handler.IpCameraHandler] - Recieved partial reply that is chunked.
2022-12-23 08:32:34.439 [TRACE] [era.internal.handler.IpCameraHandler] - Sending camera: POST: http://192.168.2.9:80/api.cgi?cmd=GetAbility&token=1d547e408776388
2022-12-23 08:32:34.459 [TRACE] [amera.internal.onvif.OnvifConnection] - Onvif reply is:<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:saml1="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:ns1="http://www.onvif.org/ver20/media/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trc="http://www.onvif.org/ver10/recording/wsdl" xmlns:trp="http://www.onvif.org/ver10/replay/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:trv="http://www.onvif.org/ver10/receiver/wsdl" xmlns:tse="http://www.onvif.org/ver10/search/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:tad="http://www.onvif.org/ver20/analytics/wsdl"><SOAP-ENV:Header><wsse:Security><wsse:UsernameToken><wsse:Username>OpenHab</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">nLvUHeGdYj/IiMWOQA1uOnjHBgs=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">ODE4NzI5NzEz</wsse:Nonce><wsu:Created>2022-12-23T07:32:34.377Z</wsu:Created></wsse:UsernameToken></wsse:Security></SOAP-ENV:Header><SOAP-ENV:Body><tds:GetCapabilitiesResponse><tds:Capabilities><tt:Device><tt:XAddr>http://192.168.2.9:8000/onvif/device_service</tt:XAddr><tt:Network><tt:IPFilter>false</tt:IPFilter><tt:ZeroConfiguration>false</tt:ZeroConfiguration><tt:IPVersion6>false</tt:IPVersion6><tt:DynDNS>false</tt:DynDNS></tt:Network><tt:System><tt:DiscoveryResolve>true</tt:DiscoveryResolve><tt:DiscoveryBye>true</tt:DiscoveryBye><tt:RemoteDiscovery>false</tt:RemoteDiscovery><tt:SystemBackup>false</tt:SystemBackup><tt:SystemLogging>false</tt:SystemLogging><tt:FirmwareUpgrade>false</tt:FirmwareUpgrade><tt:SupportedVersions><tt:Major>21</tt:Major><tt:Minor>6</tt:Minor></tt:SupportedVersions></tt:System><tt:IO></tt:IO><tt:Security><tt:TLS1.1>false</tt:TLS1.1><tt:TLS1.2>false</tt:TLS1.2><tt:OnboardKeyGeneration>false</tt:OnboardKeyGeneration><tt:AccessPolicyConfig>false</tt:AccessPolicyConfig><tt:X.509Token>false</tt:X.509Token><tt:SAMLToken>false</tt:SAMLToken><tt:KerberosToken>false</tt:KerberosToken><tt:RELToken>false</tt:RELToken></tt:Security></tt:Device><tt:Events><tt:XAddr>http://192.168.2.9:8000/onvif/event_service</tt:XAddr><tt:WSSubscriptionPolicySupport>true</tt:WSSubscriptionPolicySupport><tt:WSPullPointSupport>true</tt:WSPullPointSupport><tt:WSPausableSubscriptionManagerInterfaceSupport>false</tt:WSPausableSubscriptionManagerInterfaceSupport></tt:Events><tt:Imaging><tt:XAddr>http://192.168.2.9:8000/onvif/imaging_service</tt:XAddr></tt:Imaging><tt:Media><tt:XAddr>http://192.168.2.9:8000/onvif/media_service</tt:XAddr><tt:StreamingCapabilities><tt:RTPMulticast>false</tt:RTPMulticast><tt:RTP_TCP>true</tt:RTP_TCP><tt:RTP_RTSP_TCP>true</tt:RTP_RTSP_TCP><tt:Extension></tt:Extension></tt:StreamingCapabilities><tt:Extension><tt:ProfileCapabilities><tt:MaximumNumberOfProfiles>10</tt:MaximumNumberOfProfiles></tt:ProfileCapabilities></tt:Extension></tt:Media><tt:Extension><tt:DeviceIO><tt:XAddr>http://192.168.2.9:8000/onvif/deviceIO_service</tt:XAddr><tt:VideoSources>1</tt:VideoSources><tt:VideoOutputs>0</tt:VideoOutputs><tt:AudioSources>1</tt:AudioSources><tt:AudioOutputs>0</tt:AudioOutputs><tt:RelayOutputs>0</tt:RelayOutputs></tt:DeviceIO></tt:Extension></tds:Capabilities></tds:GetCapabilitiesResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

2022-12-23 08:32:34.459 [DEBUG] [amera.internal.onvif.OnvifConnection] - deviceXAddr:http://192.168.2.9:8000/onvif/device_service
2022-12-23 08:32:34.459 [DEBUG] [amera.internal.onvif.OnvifConnection] - eventsXAddr:http://192.168.2.9:8000/onvif/event_service
2022-12-23 08:32:34.459 [DEBUG] [amera.internal.onvif.OnvifConnection] - mediaXAddr:http://192.168.2.9:8000/onvif/media_service
2022-12-23 08:32:34.460 [DEBUG] [amera.internal.onvif.OnvifConnection] - Camera has no ONVIF PTZ support.
2022-12-23 08:32:34.492 [TRACE] [amera.internal.onvif.OnvifConnection] - Sending ONVIF request:GetProfiles
2022-12-23 08:32:34.503 [TRACE] [era.internal.handler.IpCameraHandler] - Recieved partial reply that is chunked.
2022-12-23 08:32:34.504 [TRACE] [era.internal.handler.IpCameraHandler] - Recieved partial reply that is chunked.
2022-12-23 08:32:34.504 [TRACE] [era.internal.handler.IpCameraHandler] - Recieved partial reply that is chunked.
2022-12-23 08:32:34.506 [TRACE] [era.internal.handler.IpCameraHandler] - Recieved partial reply that is chunked.
2022-12-23 08:32:34.514 [TRACE] [era.internal.handler.IpCameraHandler] - Recieved partial reply that is chunked.
2022-12-23 08:32:34.534 [TRACE] [era.internal.handler.IpCameraHandler] - Recieved partial reply that is chunked.
2022-12-23 08:32:34.534 [TRACE] [era.internal.handler.IpCameraHandler] - LastHttpContent and is chunked:true
2022-12-23 08:32:34.534 [TRACE] [era.internal.handler.IpCameraHandler] - HTTP Result from /api.cgi?cmd=GetAbility&token=1d547e408776388 contains 	:[
   {
      "cmd" : "GetAbility",
      "code" : 0,
      "value" : {
         "Ability" : {
            "3g" : {
               "permit" : 0,
               "ver" : 0
            },
            "abilityChn" : [
               {
                  "aiTrack" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "aiTrackDogCat" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "alarmAudio" : {
                     "permit" : 6,
                     "ver" : 1
                  },
                  "alarmIoIn" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "alarmIoOut" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "alarmMd" : {
                     "permit" : 6,
                     "ver" : 1
                  },
                  "alarmRf" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "batAnalysis" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "battery" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "cameraMode" : {
                     "permit" : 6,
                     "ver" : 0
                  },
                  "disableAutoFocus" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "enc" : {
                     "permit" : 6,
                     "ver" : 1
                  },
                  "floodLight" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ftp" : {
                     "permit" : 6,
                     "ver" : 6
                  },
                  "image" : {
                     "permit" : 6,
                     "ver" : 1
                  },
                  "indicatorLight" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "isp" : {
                     "permit" : 6,
                     "ver" : 1
                  },
                  "isp3Dnr" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ispAntiFlick" : {
                     "permit" : 6,
                     "ver" : 1
                  },
                  "ispBackLight" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ispBright" : {
                     "permit" : 6,
                     "ver" : 1
                  },
                  "ispContrast" : {
                     "permit" : 6,
                     "ver" : 1
                  },
                  "ispDayNight" : {
                     "permit" : 6,
                     "ver" : 1
                  },
                  "ispExposureMode" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ispFlip" : {
                     "permit" : 6,
                     "ver" : 1
                  },
                  "ispHue" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ispMirror" : {
                     "permit" : 6,
                     "ver" : 1
                  },
                  "ispSatruation" : {
                     "permit" : 6,
                     "ver" : 1
                  },
                  "ispSharpen" : {
                     "permit" : 6,
                     "ver" : 1
                  },
                  "ispWhiteBalance" : {
                     "permit" : 6,
                     "ver" : 0
                  },
                  "ledControl" : {
                     "permit" : 6,
                     "ver" : 1
                  },
                  "live" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "mainEncType" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "mask" : {
                     "permit" : 6,
                     "ver" : 1
                  },
                  "mdTriggerAudio" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "mdTriggerRecord" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "mdWithPir" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "osd" : {
                     "permit" : 6,
                     "ver" : 1
                  },
                  "powerLed" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzCtrl" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzDirection" : {
                     "permit" : 1,
                     "ver" : 0
                  },
                  "ptzPatrol" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzPreset" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzTattern" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzType" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "recCfg" : {
                     "permit" : 6,
                     "ver" : 1
                  },
                  "recDownload" : {
                     "permit" : 6,
                     "ver" : 1
                  },
                  "recReplay" : {
                     "permit" : 6,
                     "ver" : 1
                  },
                  "recSchedule" : {
                     "permit" : 6,
                     "ver" : 2
                  },
                  "shelterCfg" : {
                     "permit" : 6,
                     "ver" : 1
                  },
                  "snap" : {
                     "permit" : 6,
                     "ver" : 1
                  },
                  "supportAi" : {
                     "permit" : 6,
                     "ver" : 1
                  },
                  "supportAiAnimal" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiDetectConfig" : {
                     "permit" : 6,
                     "ver" : 1
                  },
                  "supportAiDogCat" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiFace" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiPeople" : {
                     "permit" : 6,
                     "ver" : 1
                  },
                  "supportAiSensitivity" : {
                     "permit" : 6,
                     "ver" : 1
                  },
                  "supportAiStayTime" : {
                     "permit" : 6,
                     "ver" : 1
                  },
                  "supportAiTargetSize" : {
                     "permit" : 6,
                     "ver" : 1
                  },
                  "supportAiTrackClassify" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiVehicle" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAoAdjust" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportFLBrightness" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportFLIntelligent" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportFLKeepOn" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportFLSchedule" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportFLswitch" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportGop" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportMd" : {
                     "permit" : 6,
                     "ver" : 1
                  },
                  "supportPtzCheck" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportThresholdAdjust" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportWhiteDark" : {
                     "permit" : 6,
                     "ver" : 1
                  },
                  "videoClip" : {
                     "permit" : 6,
                     "ver" : 2
                  },
                  "waterMark" : {
                     "permit" : 6,
                     "ver" : 1
                  },
                  "white_balance" : {
                     "permit" : 6,
                     "ver" : 0
                  }
               }
            ],
            "alarmAudio" : {
               "permit" : 6,
               "ver" : 1
            },
            "alarmDisconnet" : {
               "permit" : 6,
               "ver" : 1
            },
            "alarmHddErr" : {
               "permit" : 6,
               "ver" : 1
            },
            "alarmHddFull" : {
               "permit" : 6,
               "ver" : 1
            },
            "alarmIpConflict" : {
               "permit" : 6,
               "ver" : 1
            },
            "auth" : {
               "permit" : 6,
               "ver" : 1
            },
            "autoMaint" : {
               "permit" : 6,
               "ver" : 1
            },
            "cloudStorage" : {
               "permit" : 6,
               "ver" : 35
            },
            "customAudio" : {
               "permit" : 1,
               "ver" : 1
            },
            "dateFormat" : {
               "permit" : 6,
               "ver" : 1
            },
            "ddns" : {
               "permit" : 6,
               "ver" : 9
            },
            "ddnsCfg" : {
               "permit" : 6,
               "ver" : 1
            },
            "devInfo" : {
               "permit" : 4,
               "ver" : 1
            },
            "devName" : {
               "permit" : 6,
               "ver" : 2
            },
            "disableAutoFocus" : {
               "permit" : 0,
               "ver" : 0
            },
            "disk" : {
               "permit" : 0,
               "ver" : 0
            },
            "display" : {
               "permit" : 6,
               "ver" : 1
            },
            "email" : {
               "permit" : 6,
               "ver" : 3
            },
            "emailInterval" : {
               "permit" : 6,
               "ver" : 1
            },
            "emailSchedule" : {
               "permit" : 6,
               "ver" : 1
            },
            "exportCfg" : {
               "permit" : 4,
               "ver" : 0
            },
            "ftpAutoDir" : {
               "permit" : 6,
               "ver" : 1
            },
            "ftpExtStream" : {
               "permit" : 6,
               "ver" : 1
            },
            "ftpPic" : {
               "permit" : 0,
               "ver" : 0
            },
            "ftpSubStream" : {
               "permit" : 6,
               "ver" : 1
            },
            "ftpTest" : {
               "permit" : 6,
               "ver" : 0
            },
            "hourFmt" : {
               "permit" : 6,
               "ver" : 2
            },
            "http" : {
               "permit" : 6,
               "ver" : 3
            },
            "httpFlv" : {
               "permit" : 6,
               "ver" : 1
            },
            "https" : {
               "permit" : 6,
               "ver" : 3
            },
            "importCfg" : {
               "permit" : 1,
               "ver" : 0
            },
            "ipcManager" : {
               "permit" : 6,
               "ver" : 1
            },
            "ledControl" : {
               "permit" : 7,
               "ver" : 1
            },
            "localLink" : {
               "permit" : 6,
               "ver" : 1
            },
            "log" : {
               "permit" : 6,
               "ver" : 1
            },
            "mediaPort" : {
               "permit" : 6,
               "ver" : 1
            },
            "ntp" : {
               "permit" : 6,
               "ver" : 1
            },
            "online" : {
               "permit" : 6,
               "ver" : 1
            },
            "onvif" : {
               "permit" : 6,
               "ver" : 3
            },
            "p2p" : {
               "permit" : 6,
               "ver" : 1
            },
            "performance" : {
               "permit" : 4,
               "ver" : 1
            },
            "pppoe" : {
               "permit" : 6,
               "ver" : 0
            },
            "push" : {
               "permit" : 6,
               "ver" : 1
            },
            "pushSchedule" : {
               "permit" : 6,
               "ver" : 1
            },
            "reboot" : {
               "permit" : 1,
               "ver" : 1
            },
            "recExtensionTimeList" : {
               "permit" : 6,
               "ver" : 1
            },
            "recOverWrite" : {
               "permit" : 6,
               "ver" : 1
            },
            "recPackDuration" : {
               "permit" : 6,
               "ver" : 0
            },
            "recPreRecord" : {
               "permit" : 6,
               "ver" : 1
            },
            "restore" : {
               "permit" : 1,
               "ver" : 1
            },
            "rtmp" : {
               "permit" : 6,
               "ver" : 3
            },
            "rtsp" : {
               "permit" : 6,
               "ver" : 3
            },
            "scheduleVersion" : {
               "permit" : 6,
               "ver" : 1
            },
            "sdCard" : {
               "permit" : 6,
               "ver" : 1
            },
            "showQrCode" : {
               "permit" : 6,
               "ver" : 0
            },
            "simMoudule" : {
               "permit" : 6,
               "ver" : 0
            },
            "supportAudioAlarm" : {
               "permit" : 6,
               "ver" : 1
            },
            "supportAudioAlarmEnable" : {
               "permit" : 6,
               "ver" : 1
            },
            "supportAudioAlarmSchedule" : {
               "permit" : 6,
               "ver" : 1
            },
            "supportAudioAlarmTaskEnable" : {
               "permit" : 6,
               "ver" : 1
            },
            "supportAudioFileList" : {
               "permit" : 6,
               "ver" : 1
            },
            "supportAutoReply" : {
               "permit" : 6,
               "ver" : 1
            },
            "supportBuzzer" : {
               "permit" : 0,
               "ver" : 0
            },
            "supportBuzzerEnable" : {
               "permit" : 0,
               "ver" : 0
            },
            "supportBuzzerTask" : {
               "permit" : 0,
               "ver" : 0
            },
            "supportBuzzerTaskEnable" : {
               "permit" : 0,
               "ver" : 0
            },
            "supportEmailEnable" : {
               "permit" : 6,
               "ver" : 1
            },
            "supportEmailTaskEnable" : {
               "permit" : 6,
               "ver" : 1
            },
            "supportFtpCoverPicture" : {
               "permit" : 6,
               "ver" : 1
            },
            "supportFtpCoverVideo" : {
               "permit" : 6,
               "ver" : 1
            },
            "supportFtpDirYM" : {
               "permit" : 6,
               "ver" : 1
            },
            "supportFtpEnable" : {
               "permit" : 6,
               "ver" : 1
            },
            "supportFtpPicCaptureMode" : {
               "permit" : 6,
               "ver" : 1
            },
            "supportFtpPicResoCustom" : {
               "permit" : 6,
               "ver" : 0
            },
            "supportFtpPictureSwap" : {
               "permit" : 6,
               "ver" : 1
            },
            "supportFtpTask" : {
               "permit" : 6,
               "ver" : 1
            },
            "supportFtpTaskEnable" : {
               "permit" : 6,
               "ver" : 1
            },
            "supportFtpVideoSwap" : {
               "permit" : 6,
               "ver" : 1
            },
            "supportFtpsEncrypt" : {
               "permit" : 6,
               "ver" : 1
            },
            "supportHttpEnable" : {
               "permit" : 6,
               "ver" : 1
            },
            "supportHttpsEnable" : {
               "permit" : 6,
               "ver" : 1
            },
            "supportOnvifEnable" : {
               "permit" : 6,
               "ver" : 1
            },
            "supportPushInterval" : {
               "permit" : 6,
               "ver" : 1
            },
            "supportRecScheduleEnable" : {
               "permit" : 6,
               "ver" : 1
            },
            "supportRecordEnable" : {
               "permit" : 6,
               "ver" : 1
            },
            "supportRtmpEnable" : {
               "permit" : 6,
               "ver" : 1
            },
            "supportRtspEnable" : {
               "permit" : 6,
               "ver" : 1
            },
            "talk" : {
               "permit" : 4,
               "ver" : 1
            },
            "time" : {
               "permit" : 6,
               "ver" : 2
            },
            "tvSystem" : {
               "permit" : 6,
               "ver" : 0
            },
            "upgrade" : {
               "permit" : 1,
               "ver" : 2
            },
            "upnp" : {
               "permit" : 6,
               "ver" : 1
            },
            "user" : {
               "permit" : 6,
               "ver" : 1
            },
            "videoClip" : {
               "permit" : 6,
               "ver" : 2
            },
            "wifi" : {
               "permit" : 6,
               "ver" : 1
            },
            "wifiTest" : {
               "permit" : 6,
               "ver" : 1
            }
         }
      }
   }
]
:
2022-12-23 08:32:34.534 [TRACE] [era.internal.handler.IpCameraHandler] - Recieved partial reply that is chunked.
2022-12-23 08:32:35.053 [TRACE] [amera.internal.onvif.OnvifConnection] - Onvif reply is:<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:saml1="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:ns1="http://www.onvif.org/ver20/media/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trc="http://www.onvif.org/ver10/recording/wsdl" xmlns:trp="http://www.onvif.org/ver10/replay/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:trv="http://www.onvif.org/ver10/receiver/wsdl" xmlns:tse="http://www.onvif.org/ver10/search/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:tad="http://www.onvif.org/ver20/analytics/wsdl"><SOAP-ENV:Header><wsse:Security><wsse:UsernameToken><wsse:Username>OpenHab</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">FY7nqY1HkGWYoJhtmrYPvSjwRdY=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">MTQ3NzY0Mzc4Mg==</wsse:Nonce><wsu:Created>2022-12-23T07:32:34.493Z</wsu:Created></wsse:UsernameToken></wsse:Security></SOAP-ENV:Header><SOAP-ENV:Body><trt:GetProfilesResponse><trt:Profiles token="000" fixed="true"><tt:Name>Profile000_MainStream</tt:Name><tt:VideoSourceConfiguration token="000"><tt:Name>VideoS_000</tt:Name><tt:UseCount>2</tt:UseCount><tt:SourceToken>000</tt:SourceToken><tt:Bounds x="0" y="0" width="2560" height="1920"></tt:Bounds></tt:VideoSourceConfiguration><tt:AudioSourceConfiguration token="000"><tt:Name>AudioS_000</tt:Name><tt:UseCount>2</tt:UseCount><tt:SourceToken>000</tt:SourceToken></tt:AudioSourceConfiguration><tt:VideoEncoderConfiguration token="000"><tt:Name>VideoE_000</tt:Name><tt:UseCount>1</tt:UseCount><tt:Encoding>H264</tt:Encoding><tt:Resolution><tt:Width>2560</tt:Width><tt:Height>1920</tt:Height></tt:Resolution><tt:Quality>0</tt:Quality><tt:RateControl><tt:FrameRateLimit>20</tt:FrameRateLimit><tt:EncodingInterval>1</tt:EncodingInterval><tt:BitrateLimit>6144</tt:BitrateLimit></tt:RateControl><tt:H264><tt:GovLength>40</tt:GovLength><tt:H264Profile>Main</tt:H264Profile></tt:H264><tt:Multicast><tt:Address><tt:Type>IPv4</tt:Type><tt:IPv4Address>239.0.1.0</tt:IPv4Address></tt:Address><tt:Port>4000</tt:Port><tt:TTL>64</tt:TTL><tt:AutoStart>false</tt:AutoStart></tt:Multicast><tt:SessionTimeout>PT10S</tt:SessionTimeout></tt:VideoEncoderConfiguration><tt:AudioEncoderConfiguration token="000"><tt:Name>AudioE_000</tt:Name><tt:UseCount>1</tt:UseCount><tt:Encoding>AAC</tt:Encoding><tt:Bitrate>16</tt:Bitrate><tt:SampleRate>16</tt:SampleRate><tt:Multicast><tt:Address><tt:Type>IPv4</tt:Type><tt:IPv4Address>238.255.255.255</tt:IPv4Address></tt:Address><tt:Port>25320</tt:Port><tt:TTL>60</tt:TTL><tt:AutoStart>false</tt:AutoStart></tt:Multicast><tt:SessionTimeout>PT0S</tt:SessionTimeout></tt:AudioEncoderConfiguration><tt:VideoAnalyticsConfiguration token="000"><tt:Name>VideoA_000</tt:Name><tt:UseCount>1</tt:UseCount><tt:AnalyticsEngineConfiguration><tt:AnalyticsModule Type="tt:CellMotionEngine" Name="MyCellMotionModule"><tt:Parameters><tt:SimpleItem Name="Sensitivity" Value="0"></tt:SimpleItem><tt:ElementItem Name="Layout"><tt:CellLayout Columns="80" Rows="60"><tt:Transformation><tt:Translate x="-1.000000" y="-1.000000"/><tt:Scale x="0.000781" y="0.001042"/></tt:Transformation></tt:CellLayout></tt:ElementItem></tt:Parameters></tt:AnalyticsModule></tt:AnalyticsEngineConfiguration><tt:RuleEngineConfiguration><tt:Rule Type="CellMotionDetector" Name="MyMotionDetectorRule"><tt:Parameters><tt:SimpleItem Name="AlarmOnDelay" Value="100"></tt:SimpleItem><tt:SimpleItem Name="AlarmOnDelay" Value="100"></tt:SimpleItem><tt:SimpleItem Name="AlarmOnDelay" Value="Av///PwAAj////wAAw///8D9AAMD///w/AAC///8+wA="></tt:SimpleItem></tt:Parameters></tt:Rule></tt:RuleEngineConfiguration></tt:VideoAnalyticsConfiguration><tt:MetadataConfiguration token="000"><tt:Name>Metadata_000</tt:Name><tt:UseCount>2</tt:UseCount><tt:PTZStatus><tt:Status>false</tt:Status><tt:Position>false</tt:Position></tt:PTZStatus><tt:Multicast><tt:Address><tt:Type>IPv4</tt:Type><tt:IPv4Address>224.2.0.0</tt:IPv4Address></tt:Address><tt:Port>40020</tt:Port><tt:TTL>64</tt:TTL><tt:AutoStart>true</tt:AutoStart></tt:Multicast><tt:SessionTimeout>PT60S</tt:SessionTimeout></tt:MetadataConfiguration></trt:Profiles><trt:Profiles token="001" fixed="true"><tt:Name>Profile001_SubStream</tt:Name><tt:VideoSourceConfiguration token="000"><tt:Name>VideoS_000</tt:Name><tt:UseCount>2</tt:UseCount><tt:SourceToken>000</tt:SourceToken><tt:Bounds x="0" y="0" width="2560" height="1920"></tt:Bounds></tt:VideoSourceConfiguration><tt:AudioSourceConfiguration token="000"><tt:Name>AudioS_000</tt:Name><tt:UseCount>2</tt:UseCount><tt:SourceToken>000</tt:SourceToken></tt:AudioSourceConfiguration><tt:VideoEncoderConfiguration token="001"><tt:Name>VideoE_001</tt:Name><tt:UseCount>1</tt:UseCount><tt:Encoding>H264</tt:Encoding><tt:Resolution><tt:Width>640</tt:Width><tt:Height>480</tt:Height></tt:Resolution><tt:Quality>2</tt:Quality><tt:RateControl><tt:FrameRateLimit>10</tt:FrameRateLimit><tt:EncodingInterval>1</tt:EncodingInterval><tt:BitrateLimit>256</tt:BitrateLimit></tt:RateControl><tt:H264><tt:GovLength>40</tt:GovLength><tt:H264Profile>Main</tt:H264Profile></tt:H264><tt:Multicast><tt:Address><tt:Type>IPv4</tt:Type><tt:IPv4Address>239.0.1.0</tt:IPv4Address></tt:Address><tt:Port>4000</tt:Port><tt:TTL>64</tt:TTL><tt:AutoStart>false</tt:AutoStart></tt:Multicast><tt:SessionTimeout>PT10S</tt:SessionTimeout></tt:VideoEncoderConfiguration><tt:AudioEncoderConfiguration token="001"><tt:Name>AudioE_001</tt:Name><tt:UseCount>1</tt:UseCount><tt:Encoding>AAC</tt:Encoding><tt:Bitrate>16</tt:Bitrate><tt:SampleRate>16</tt:SampleRate><tt:Multicast><tt:Address><tt:Type>IPv4</tt:Type><tt:IPv4Address>238.255.255.255</tt:IPv4Address></tt:Address><tt:Port>25320</tt:Port><tt:TTL>60</tt:TTL><tt:AutoStart>false</tt:AutoStart></tt:Multicast><tt:SessionTimeout>PT0S</tt:SessionTimeout></tt:AudioEncoderConfiguration><tt:VideoAnalyticsConfiguration token="001"><tt:Name>VideoA_001</tt:Name><tt:UseCount>1</tt:UseCount><tt:AnalyticsEngineConfiguration><tt:AnalyticsModule Type="tt:CellMotionEngine" Name="MyCellMotionModule"><tt:Parameters><tt:SimpleItem Name="Sensitivity" Value="0"></tt:SimpleItem><tt:ElementItem Name="Layout"><tt:CellLayout Columns="80" Rows="60"><tt:Transformation><tt:Translate x="-1.000000" y="-1.000000"/><tt:Scale x="0.000781" y="0.001042"/></tt:Transformation></tt:CellLayout></tt:ElementItem></tt:Parameters></tt:AnalyticsModule></tt:AnalyticsEngineConfiguration><tt:RuleEngineConfiguration><tt:Rule Type="CellMotionDetector" Name="MyMotionDetectorRule"><tt:Parameters><tt:SimpleItem Name="AlarmOnDelay" Value="100"></tt:SimpleItem><tt:SimpleItem Name="AlarmOnDelay" Value="100"></tt:SimpleItem><tt:SimpleItem Name="AlarmOnDelay" Value="Av///PwAAj////wAAw///8D9AAMD///w/AAC///8+wA="></tt:SimpleItem></tt:Parameters></tt:Rule></tt:RuleEngineConfiguration></tt:VideoAnalyticsConfiguration><tt:MetadataConfiguration token="000"><tt:Name>Metadata_000</tt:Name><tt:UseCount>2</tt:UseCount><tt:PTZStatus><tt:Status>false</tt:Status><tt:Position>false</tt:Position></tt:PTZStatus><tt:Multicast><tt:Address><tt:Type>IPv4</tt:Type><tt:IPv4Address>224.2.0.0</tt:IPv4Address></tt:Address><tt:Port>40020</tt:Port><tt:TTL>64</tt:TTL><tt:AutoStart>true</tt:AutoStart></tt:Multicast><tt:SessionTimeout>PT60S</tt:SessionTimeout></tt:MetadataConfiguration></trt:Profiles></trt:GetProfilesResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

2022-12-23 08:32:35.054 [TRACE] [amera.internal.onvif.OnvifConnection] - String was found:000
2022-12-23 08:32:35.054 [TRACE] [amera.internal.onvif.OnvifConnection] - String was found:001
2022-12-23 08:32:35.054 [TRACE] [amera.internal.onvif.OnvifConnection] - Sending ONVIF request:GetSnapshotUri
2022-12-23 08:32:35.055 [TRACE] [amera.internal.onvif.OnvifConnection] - Sending ONVIF request:GetStreamUri
2022-12-23 08:32:35.056 [TRACE] [amera.internal.onvif.OnvifConnection] - Sending ONVIF request:GetEventProperties
2022-12-23 08:32:35.056 [TRACE] [amera.internal.onvif.OnvifConnection] - Sending ONVIF request:GetServiceCapabilities
2022-12-23 08:32:35.163 [TRACE] [amera.internal.onvif.OnvifConnection] - Onvif reply is:<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:saml1="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:ns1="http://www.onvif.org/ver20/media/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trc="http://www.onvif.org/ver10/recording/wsdl" xmlns:trp="http://www.onvif.org/ver10/replay/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:trv="http://www.onvif.org/ver10/receiver/wsdl" xmlns:tse="http://www.onvif.org/ver10/search/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:tad="http://www.onvif.org/ver20/analytics/wsdl"><SOAP-ENV:Header><wsse:Security><wsse:UsernameToken><wsse:Username>OpenHab</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">u095k+Qk5xP6WhNL7sG1V08RL1U=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">LTE3MTMwNzQyNDY=</wsse:Nonce><wsu:Created>2022-12-23T07:32:35.054Z</wsu:Created></wsse:UsernameToken></wsse:Security></SOAP-ENV:Header><SOAP-ENV:Body><trt:GetSnapshotUriResponse><trt:MediaUri><tt:Uri>http://192.168.2.9:80/cgi-bin/api.cgi?cmd=onvifSnapPic&amp;channel=0</tt:Uri><tt:InvalidAfterConnect>true</tt:InvalidAfterConnect><tt:InvalidAfterReboot>true</tt:InvalidAfterReboot><tt:Timeout>PT10S</tt:Timeout></trt:MediaUri></trt:GetSnapshotUriResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

2022-12-23 08:32:35.164 [DEBUG] [amera.internal.onvif.OnvifConnection] - GetSnapshotUri:/cgi-bin/api.cgi?cmd=onvifSnapPic&amp;channel=0
2022-12-23 08:32:35.185 [TRACE] [amera.internal.onvif.OnvifConnection] - Onvif reply is:<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:saml1="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:ns1="http://www.onvif.org/ver20/media/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trc="http://www.onvif.org/ver10/recording/wsdl" xmlns:trp="http://www.onvif.org/ver10/replay/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:trv="http://www.onvif.org/ver10/receiver/wsdl" xmlns:tse="http://www.onvif.org/ver10/search/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:tad="http://www.onvif.org/ver20/analytics/wsdl"><SOAP-ENV:Body><SOAP-ENV:Fault><SOAP-ENV:Code><SOAP-ENV:Value>SOAP-ENV:Sender</SOAP-ENV:Value></SOAP-ENV:Code><SOAP-ENV:Reason><SOAP-ENV:Text xml:lang="en">Method 'GetServiceCapabilities' not implemented: method name or namespace not recognized</SOAP-ENV:Text></SOAP-ENV:Reason></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>

2022-12-23 08:32:35.201 [TRACE] [amera.internal.onvif.OnvifConnection] - Onvif reply is:<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:saml1="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:ns1="http://www.onvif.org/ver20/media/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trc="http://www.onvif.org/ver10/recording/wsdl" xmlns:trp="http://www.onvif.org/ver10/replay/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:trv="http://www.onvif.org/ver10/receiver/wsdl" xmlns:tse="http://www.onvif.org/ver10/search/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:tad="http://www.onvif.org/ver20/analytics/wsdl"><SOAP-ENV:Header><wsse:Security><wsse:UsernameToken><wsse:Username>OpenHab</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">05F+I7llBfsIUOigNNxi3TtgyCI=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">LTc0OTcwMjQyNA==</wsse:Nonce><wsu:Created>2022-12-23T07:32:35.056Z</wsu:Created></wsse:UsernameToken></wsse:Security></SOAP-ENV:Header><SOAP-ENV:Body><tev:GetEventPropertiesResponse><tev:TopicNamespaceLocation>http://www.onvif.org/onvif/ver10/topics/topicns.xml</tev:TopicNamespaceLocation><wsnt:FixedTopicSet>true</wsnt:FixedTopicSet><wstop:TopicSet><tns1:VideoSource wstop:topic="false"><MotionAlarm wstop:topic="true"><tt:MessageDescription IsProperty="true"><tt:Source><tt:SimpleItemDescription Name="Source" Type="tt:ReferenceToken"/></tt:Source><tt:Data><tt:SimpleItemDescription Name="State" Type="xsd:boolean"/></tt:Data></tt:MessageDescription></MotionAlarm><ImageTooDark wstop:topic="false"><ImagingService wstop:topic="true"><tt:MessageDescription IsProperty="true"><tt:Source><tt:SimpleItemDescription Name="Source" Type="tt:ReferenceToken" /></tt:Source><tt:Data><tt:SimpleItemDescription Name="State" Type="xsd:boolean" /></tt:Data></tt:MessageDescription></ImagingService></ImageTooDark></tns1:VideoSource><tns1:Media wstop:topic="false"><ProfileChanged wstop:topic="true"><tt:MessageDescription IsProperty="false"><tt:Data><tt:SimpleItemDescription Name="Token" Type="tt:ReferenceToken" /></tt:Data></tt:MessageDescription></ProfileChanged><ConfigurationChanged wstop:topic="true"><tt:MessageDescription IsProperty="false"><tt:Source><tt:SimpleItemDescription Name="Token" Type="tt:ReferenceToken" /></tt:Source><tt:Data><tt:SimpleItemDescription Name="Type" Type="xsd:string" /></tt:Data></tt:MessageDescription></ConfigurationChanged></tns1:Media><tns1:RuleEngine wstop:topic="true"><CellMotionDetector wstop:topic="true"><Motion wstop:topic="true"><tt:MessageDescription IsProperty="true"><tt:Source><tt:SimpleItemDescription Name="VideoSourceConfigurationToken" Type="tt:ReferenceToken"/><tt:SimpleItemDescription Name="VideoAnalyticsConfigurationToken" Type="tt:ReferenceToken"/><tt:SimpleItemDescription Name="Rule" Type="xsd:string"/></tt:Source><tt:Data><tt:SimpleItemDescription Name="IsMotion" Type="xsd:boolean"/></tt:Data></tt:MessageDescription></Motion></CellMotionDetector></tns1:RuleEngine></wstop:TopicSet><wsnt:TopicExpressionDialect>http://www.onvif.org/ver10/tev/topicExpression/ConcreteSet</wsnt:TopicExpressionDialect><wsnt:TopicExpressionDialect>http://docs.oasis-open.org/wsn/t-1/TopicExpression/Concrete</wsnt:TopicExpressionDialect><tev:MessageContentFilterDialect>http://www.onvif.org/ver10/tev/messageContentFilter/ItemFilter</tev:MessageContentFilterDialect><tev:MessageContentSchemaLocation>http://www.onvif.org/onvif/ver10/schema/onvif.xsd</tev:MessageContentSchemaLocation></tev:GetEventPropertiesResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

2022-12-23 08:32:35.201 [TRACE] [amera.internal.onvif.OnvifConnection] - Sending ONVIF request:CreatePullPointSubscription
2022-12-23 08:32:35.269 [TRACE] [amera.internal.onvif.OnvifConnection] - Onvif reply is:<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:saml1="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:ns1="http://www.onvif.org/ver20/media/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trc="http://www.onvif.org/ver10/recording/wsdl" xmlns:trp="http://www.onvif.org/ver10/replay/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:trv="http://www.onvif.org/ver10/receiver/wsdl" xmlns:tse="http://www.onvif.org/ver10/search/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:tad="http://www.onvif.org/ver20/analytics/wsdl"><SOAP-ENV:Header><wsa5:To SOAP-ENV:mustUnderstand="1">http://192.168.2.9:8000/onvif/event_service</wsa5:To><wsse:Security><wsse:UsernameToken><wsse:Username>OpenHab</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">oSES9/sZ48ug8WO4YulovEIWuX4=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">MTY5OTcxNjQ1OQ==</wsse:Nonce><wsu:Created>2022-12-23T07:32:35.201Z</wsu:Created></wsse:UsernameToken></wsse:Security></SOAP-ENV:Header><SOAP-ENV:Body><tev:CreatePullPointSubscriptionResponse><tev:SubscriptionReference><wsa5:Address>http://192.168.2.9:8000/onvif/PullSubManager?Idx=35701699</wsa5:Address></tev:SubscriptionReference><wsnt:CurrentTime>2022-12-23T07:32:36Z</wsnt:CurrentTime><wsnt:TerminationTime>2022-12-23T07:42:36Z</wsnt:TerminationTime></tev:CreatePullPointSubscriptionResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

2022-12-23 08:32:35.269 [DEBUG] [amera.internal.onvif.OnvifConnection] - subscriptionXAddr=http://192.168.2.9:8000/onvif/PullSubManager?Idx=35701699
2022-12-23 08:32:35.269 [TRACE] [amera.internal.onvif.OnvifConnection] - Sending ONVIF request:PullMessages
2022-12-23 08:32:35.290 [TRACE] [amera.internal.onvif.OnvifConnection] - Onvif reply is:<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:saml1="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:ns1="http://www.onvif.org/ver20/media/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trc="http://www.onvif.org/ver10/recording/wsdl" xmlns:trp="http://www.onvif.org/ver10/replay/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:trv="http://www.onvif.org/ver10/receiver/wsdl" xmlns:tse="http://www.onvif.org/ver10/search/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:tad="http://www.onvif.org/ver20/analytics/wsdl"><SOAP-ENV:Header><wsse:Security><wsse:UsernameToken><wsse:Username>OpenHab</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">KmW0no3iTriFyh/B06riNtHMlvA=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">LTE3MDIxMTc0ODY=</wsse:Nonce><wsu:Created>2022-12-23T07:32:35.056Z</wsu:Created></wsse:UsernameToken></wsse:Security></SOAP-ENV:Header><SOAP-ENV:Body><trt:GetStreamUriResponse><trt:MediaUri><tt:Uri>rtsp://192.168.2.9:554/</tt:Uri><tt:InvalidAfterConnect>false</tt:InvalidAfterConnect><tt:InvalidAfterReboot>false</tt:InvalidAfterReboot><tt:Timeout>PT10S</tt:Timeout></trt:MediaUri></trt:GetStreamUriResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

2022-12-23 08:32:35.291 [DEBUG] [amera.internal.onvif.OnvifConnection] - GetStreamUri:rtsp://192.168.2.9:554/
2022-12-23 08:32:35.351 [TRACE] [amera.internal.onvif.OnvifConnection] - Onvif reply is:<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:saml1="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:ns1="http://www.onvif.org/ver20/media/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trc="http://www.onvif.org/ver10/recording/wsdl" xmlns:trp="http://www.onvif.org/ver10/replay/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:trv="http://www.onvif.org/ver10/receiver/wsdl" xmlns:tse="http://www.onvif.org/ver10/search/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:tad="http://www.onvif.org/ver20/analytics/wsdl"><SOAP-ENV:Header><wsa5:To SOAP-ENV:mustUnderstand="1">http://192.168.2.9:8000/onvif/PullSubManager?Idx=35701699</wsa5:To><wsse:Security><wsse:UsernameToken><wsse:Username>OpenHab</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">nUjl8Xc9aFkHTVv3wESD/Axvshs=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">MTY2Mzg0NTkyOQ==</wsse:Nonce><wsu:Created>2022-12-23T07:32:35.269Z</wsu:Created></wsse:UsernameToken></wsse:Security></SOAP-ENV:Header><SOAP-ENV:Body><tev:PullMessagesResponse><tev:CurrentTime>2022-12-23T07:32:36Z</tev:CurrentTime><tev:TerminationTime>2022-12-23T07:42:36Z</tev:TerminationTime><wsnt:NotificationMessage><wsnt:Topic Dialect="http://www.onvif.org/ver10/tev/topicExpression/ConcreteSet">tns1:RuleEngine/CellMotionDetector/Motion</wsnt:Topic><wsnt:Message><tt:Message UtcTime="1970-01-01T00:00:00Z" PropertyOperation="Initialized"><tt:Source><tt:SimpleItem Name="VideoSourceConfigurationToken" Value="VideoSourceToken" /></tt:Source><tt:Data><tt:SimpleItem Name="IsMotion" Value="false" /></tt:Data></tt:Message></wsnt:Message></wsnt:NotificationMessage></tev:PullMessagesResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

2022-12-23 08:32:50.509 [WARN ] [.core.thing.binding.BaseThingHandler] - Attempt to apply invalid configuration 'Configuration[{key=config_52_2; type=BigDecimal; value=3600}, {key=config_31_1; type=BigDecimal; value=1}, {key=config_33_1; type=BigDecimal; value=0}, {key=config_54_1; type=BigDecimal; value=1}, {key=config_10_2; type=BigDecimal; value=0}, {key=config_50_1; type=BigDecimal; value=10}, {key=group_5; type=EmptyList; value=[]}, {key=group_4; type=EmptyList; value=[]}, {key=group_1; type=ArrayList; value=[controller, controller]}, {key=group_3; type=EmptyList; value=[]}, {key=group_2; type=EmptyList; value=[]}, {key=config_16_2; type=BigDecimal; value=5}, {key=config_39_2; type=BigDecimal; value=250}, {key=config_35_1; type=BigDecimal; value=1}, {key=config_14_1; type=BigDecimal; value=1}, {key=config_37_1; type=BigDecimal; value=1}, {key=config_58_1; type=BigDecimal; value=0}, {key=config_20_1; type=BigDecimal; value=0}, {key=config_41_1; type=BigDecimal; value=2}, {key=config_22_1; type=BigDecimal; value=0}, {key=config_43_1; type=BigDecimal; value=1}, {key=action_heal; type=Boolean; value=false}, {key=config_1_1; type=BigDecimal; value=12}, {key=config_7_1; type=BigDecimal; value=1}, {key=config_28_1; type=BigDecimal; value=1}, {key=config_49_1; type=BigDecimal; value=1}, {key=config_9_1; type=BigDecimal; value=1}, {key=config_3_1; type=BigDecimal; value=1}, {key=config_24_1; type=BigDecimal; value=0}, {key=config_45_1; type=BigDecimal; value=1}, {key=config_5_1; type=BigDecimal; value=1}, {key=config_26_1; type=BigDecimal; value=0}, {key=config_47_1; type=BigDecimal; value=1}, {key=config_30_1; type=BigDecimal; value=2}, {key=binding_cmdrepollperiod; type=BigDecimal; value=1500.0}, {key=config_32_1; type=BigDecimal; value=2}, {key=config_53_2; type=BigDecimal; value=10}, {key=switchall_mode; type=BigDecimal; value=255}, {key=action_reinit; type=Boolean; value=false}, {key=config_59_2; type=BigDecimal; value=0}, {key=config_11_2; type=BigDecimal; value=255}, {key=config_19_1; type=BigDecimal; value=0}, {key=config_34_1; type=BigDecimal; value=1}, {key=config_13_1; type=BigDecimal; value=0}, {key=config_15_1; type=BigDecimal; value=30}, {key=config_42_1; type=BigDecimal; value=3}, {key=config_21_1; type=BigDecimal; value=1}, {key=config_40_1; type=BigDecimal; value=3}, {key=action_failed; type=Boolean; value=false}, {key=action_remove; type=Boolean; value=false}, {key=binding_pollperiod; type=BigDecimal; value=86400.0}, {key=config_2_1; type=BigDecimal; value=83}, {key=config_27_1; type=BigDecimal; value=15}, {key=config_6_2; type=BigDecimal; value=1}, {key=config_29_1; type=BigDecimal; value=0}, {key=config_8_2; type=BigDecimal; value=5}, {key=config_23_1; type=BigDecimal; value=1}, {key=config_46_1; type=BigDecimal; value=1}, {key=config_44_2; type=BigDecimal; value=600}, {key=config_25_1; type=BigDecimal; value=0}, {key=config_48_1; type=BigDecimal; value=1}, {key=config_4_2; type=BigDecimal; value=0}, {key=node_id; type=BigDecimal; value=11}]' on thing 'zwave:device:a60e9f6a:node11' blocked. This is most likely a bug: {group_1=Only 1 elements are allowed but 2 are provided.}
2022-12-23 08:32:52.435 [DEBUG] [era.internal.handler.IpCameraHandler] - Closing an idle channel for camera:192.168.2.9
2022-12-23 08:32:52.535 [DEBUG] [era.internal.handler.IpCameraHandler] - Closing an idle channel for camera:192.168.2.9

What command would you like me to send where/how after an hour?

Hi,

Iā€™m a reolink user as well with some cameras and thinking on buying a doorbell, so Iā€™m really exciting about your work here :slight_smile:

Iā€™m using my cameras with API and RTSP not ONVIF, but I will migrate to this binding if it works wit reolink.

Here are how I switch recording and ftp on/off (changing enabled to 0 or 1) with API, without schedule. I couldnā€™t find how to turn off motion detection and it was easier to switch these off to not have recordings. I hope it helps.
curl -s --data @$json_file "http://rlc-410wg/api.cgi?cmd=SetRec&user=****&password=****"

json
[
  {
    "cmd":"SetRec",
    "param":
    {
        "Rec" : 
        {
            "channel" : 0,
            "schedule" : 
            {
               "enable" : 0
            }
         }
    }
  }
]

curl -s --data @$json_file "http://rlc-410wg/api.cgi?cmd=SetFtp&user=****&password=****"

json
[
  {
    "cmd":"SetFtp",
    "param":
    {
        "Ftp" : 
        {
            "schedule" : 
            {
               "enable" : 0
            }
         }
    }
  }
]

In the cgi doc I can find GetMdState command, but no Set.

Great, good to have some active users that want to contribute back and share what has been working for them. I have added the two channels that do what you posted so please feel free to give it a go.

This latest build should auto fetch a new token every 45 minutes, so hopefully it will not expire anymore and all commands and the snapshot just keep working. The snapshot uses the token now so the user/pass is not sent in clear text in the URL, but it is now inside a POST body every 45 minutes. Just setup any of the new channels that are listed in the first post of this thread and see if they work on your camera. The binding is removing channels if your camera does not support the feature so if your camera does not have PTZ features, these channels will disappear now.
Since two new channels were added in this build, you will need to delete and re-add the thing.

Binding Data:

org.openhab.binding.ipcamera-3.4.0-SNAPSHOT.jar from ipcamera-Reolink-20221224.zip

Camera Data:

Model                   RLC-1220A
UID                       95270001ZDPRSL10
Build No.               build 22030105
Hardware No.       IPC_523128M12MP
Config Version      v3.1.0.0
Firmware Version v3.1.0.861_22030105
Details                  IPC_523128M12MPS18E1W0110000000

ipcamera binding Scan result (Trace level logging)

00:35:51.198 [INFO ] [pcamera.internal.onvif.OnvifDiscovery] - Possible ONVIF camera found at:10.0.0.64
00:36:48.492 [TRACE] [pcamera.internal.onvif.OnvifDiscovery] - Device replied to discovery with:<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://tempuri.org/xmime.xsd" xmlns:xmime5="http://www.w3.org/2005/05/xmlmime" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:ns1="http://www.onvif.org/ver10/actionengine/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:ns10="http://www.onvif.org/ver10/events/wsdl/PullPointBinding" xmlns:ns11="http://www.onvif.org/ver10/events/wsdl/CreatePullPointBinding" xmlns:ns12="http://www.onvif.org/ver10/events/wsdl/PausableSubscriptionManagerBinding" xmlns:ns13="http://www.onvif.org/ver10/network/wsdl/RemoteDiscoveryBinding" xmlns:ns14="http://www.onvif.org/ver10/network/wsdl/DiscoveryLookupBinding" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:ns3="http://www.onvif.org/ver20/analytics/wsdl/RuleEngineBinding" xmlns:ns4="http://www.onvif.org/ver20/analytics/wsdl/AnalyticsEngineBinding" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:ns5="http://www.onvif.org/ver10/events/wsdl/PullPointSubscriptionBinding" xmlns:ns6="http://www.onvif.org/ver10/events/wsdl/EventBinding" xmlns:ns7="http://www.onvif.org/ver10/events/wsdl/SubscriptionManagerBinding" xmlns:ns8="http://www.onvif.org/ver10/events/wsdl/NotificationProducerBinding" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:ns9="http://www.onvif.org/ver10/events/wsdl/NotificationConsumerBinding" xmlns:tad="http://www.onvif.org/ver10/analyticsdevice/wsdl" xmlns:tds="http://www.onvif.org/v

So it does not detect my Reolink 1220A as a valiud Reolink Camera.
Logs after adding reolink ip camera device will be provided as soon as I figure out the reasonable method of deliveryā€¦ too big for the forum here. https://pastebin.com/eQEjmjvH

Merry Christmas to those who celebrate it!

  1. Check if your camera has a newer firmware, looks like your the latest already. The token is given, but the API is not working with the fresh token when it does on other cameras. Suspect you may need to report this to reolink support. May be worth testing the API by using the user/pass added to the urls instead of the token method.
  2. You have not given the full logs for discovery, for example this lineā€¦
Cameras Login page is:

This will give the html login page at the cameras IP address.

@jgreene I uploaded a new version of the binding which now allows you to choose between using a

&token=345467575678546
and
&user=username&password=password

You will need to delete and re-add the reolink things so that you can see this new config field, and you can choose which way you want to expose your user/pass. In case a camera has an issue with 1 of the 2 methods I think this way is better as you get to choose.

It will be token by default.

Thanks will try again in about 22 hoursā€¦ family holiday stuff tomorrow and too tired right now

Installed the 20221228 version.
When requesting an image I get the following error.

2022-12-28 09:02:50.700 [TRACE] [amera.internal.onvif.OnvifConnection] - Sending ONVIF request:PullMessages
2022-12-28 09:02:55.725 [TRACE] [era.internal.handler.IpCameraHandler] - Sending camera: GET: http://192.168.2.9:80/cgi-bin/api.cgi?cmd=Snap&channel=0&rs=openHAB
2022-12-28 09:02:55.780 [TRACE] [era.internal.handler.IpCameraHandler] - HTTP Result from /cgi-bin/api.cgi?cmd=Snap&channel=0&rs=openHAB contains       :[
   {
      "cmd" : "Snap",
      "code" : 1,
      "error" : {
         "detail" : "please login first",
         "rspCode" : -6
      }
   }
]
:
2022-12-28 09:02:58.974 [TRACE] [amera.internal.onvif.OnvifConnection] - Onvif reply is:<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:saml1="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:ns1="http://www.onvif.org/ver20/media/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trc="http://www.onvif.org/ver10/recording/wsdl" xmlns:trp="http://www.onvif.org/ver10/replay/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:trv="http://www.onvif.org/ver10/receiver/wsdl" xmlns:tse="http://www.onvif.org/ver10/search/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:tad="http://www.onvif.org/ver20/analytics/wsdl"><SOAP-ENV:Header><wsa5:To SOAP-ENV:mustUnderstand="1">http://192.168.2.9:8000/onvif/PullSubManager?Idx=17238570</wsa5:To><wsse:Security><wsse:UsernameToken><wsse:Username>OpenHab</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">LJYI49upebl9aLFhdMUsx1uCXuk=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">MjEzMTk0NzMzOQ==</wsse:Nonce><wsu:Created>2022-12-28T08:02:50.701Z</wsu:Created></wsse:UsernameToken></wsse:Security></SOAP-ENV:Header><SOAP-ENV:Body><tev:PullMessagesResponse><tev:CurrentTime>2022-12-28T08:03:01Z</tev:CurrentTime><tev:TerminationTime>2022-12-28T08:04:01Z</tev:TerminationTime></tev:PullMessagesResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

2022-12-28 09:02:58.974 [TRACE] [amera.internal.onvif.OnvifConnection] - Sending ONVIF request:Renew
2022-12-28 09:02:59.011 [TRACE] [amera.internal.onvif.OnvifConnection] - Onvif reply is:<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:saml1="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:ns1="http://www.onvif.org/ver20/media/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trc="http://www.onvif.org/ver10/recording/wsdl" xmlns:trp="http://www.onvif.org/ver10/replay/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:trv="http://www.onvif.org/ver10/receiver/wsdl" xmlns:tse="http://www.onvif.org/ver10/search/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:tad="http://www.onvif.org/ver20/analytics/wsdl"><SOAP-ENV:Header><wsa5:To SOAP-ENV:mustUnderstand="1">http://192.168.2.9:8000/onvif/PullSubManager?Idx=17238570</wsa5:To><wsse:Security><wsse:UsernameToken><wsse:Username>OpenHab</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">gfSf0RHyDHNpzOv+AHfLAi33RdU=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">LTQ3MTYyMTg2MQ==</wsse:Nonce><wsu:Created>2022-12-28T08:02:58.974Z</wsu:Created></wsse:UsernameToken></wsse:Security></SOAP-ENV:Header><SOAP-ENV:Body><wsnt:RenewResponse><wsnt:TerminationTime>2022-12-28T08:04:10Z</wsnt:TerminationTime><wsnt:CurrentTime>2022-12-28T08:03:10Z</wsnt:CurrentTime></wsnt:RenewResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

Also, after disabling and re-enabling the camera I get the same error. So looks like polling the image over API doesnā€™t work.
Because if I disable the API method, polling the image does work.

Thanks for reporting, I found and fixed a bug that stopped any tokens from being updated into the snapshot url. Please try the latest build to see if tokens work now for you.

Hi, my Reolink E1 Outdoor has a LED floodlight and I have a rule for manual enable and disable:

val String address = "http://192.168.0.xxx/api.cgi?user=xxx&password=xxx"
val String Headers = "application/json"
var String mydataon = '[{"cmd": "SetWhiteLed", "param": { "WhiteLed": {"bright" : 100, "channel": 0, "mode": 0, "state": 1}}}] ' 
var String mydataoff = '[{"cmd": "SetWhiteLed", "param": { "WhiteLed": {"bright" : 100, "channel": 0, "mode": 0, "state": 0}}}] ' 

if (receivedCommand == ON) {
var String API_RETURN = sendHttpPostRequest(address,Headers,mydataon,20000)
} 

This ā€˜stateā€™ is Light on or off. And the Mode is - i think - off, on and auto with Motion or AI detection.
Maybe you could use this for the binding.
Greets

That should hopefully already be working plus it allows you to vary the brightness of the flood light if the camera allows a brightness change.

Iā€™ve updated to 20221229.
Still after some time when I trigger the poll image I get the please login error if I use the API.

2022-12-29 14:35:57.563 [TRACE] [amera.internal.onvif.OnvifConnection] - Sending ONVIF request:PullMessages
2022-12-29 14:36:00.767 [TRACE] [era.internal.handler.IpCameraHandler] - Sending camera: GET: http://192.168.2.9:80/cgi-bin/api.cgi?cmd=Snap&channel=0&rs=openHAB&token=3726137455a58db
2022-12-29 14:36:00.966 [TRACE] [era.internal.handler.IpCameraHandler] - HTTP Result from /cgi-bin/api.cgi?cmd=Snap&channel=0&rs=openHAB&token=3726137455a58db contains    :[
   {
      "cmd" : "Snap",
      "code" : 1,
      "error" : {
         "detail" : "please login first",
         "rspCode" : -6
      }
   }
]
:
2022-12-29 14:36:05.398 [TRACE] [amera.internal.onvif.OnvifConnection] - Onvif reply is:<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:saml1="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:ns1="http://www.onvif.org/ver20/media/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trc="http://www.onvif.org/ver10/recording/wsdl" xmlns:trp="http://www.onvif.org/ver10/replay/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:trv="http://www.onvif.org/ver10/receiver/wsdl" xmlns:tse="http://www.onvif.org/ver10/search/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:tad="http://www.onvif.org/ver20/analytics/wsdl"><SOAP-ENV:Header><wsa5:To SOAP-ENV:mustUnderstand="1">http://192.168.2.9:8000/onvif/PullSubManager?Idx=121484574</wsa5:To><wsse:Security><wsse:UsernameToken><wsse:Username>OpenHab</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">KTuhordBtF8npFiAX30jGyhjE5A=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">MTgxMjM2MjA1OQ==</wsse:Nonce><wsu:Created>2022-12-29T13:35:57.074Z</wsu:Created></wsse:UsernameToken></wsse:Security></SOAP-ENV:Header><SOAP-ENV:Body><tev:PullMessagesResponse><tev:CurrentTime>2022-12-29T13:36:11Z</tev:CurrentTime><tev:TerminationTime>2022-12-29T13:37:11Z</tev:TerminationTime></tev:PullMessagesResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

2022-12-29 14:36:05.398 [TRACE] [amera.internal.onvif.OnvifConnection] - Sending ONVIF request:Renew
2022-12-29 14:36:05.526 [TRACE] [amera.internal.onvif.OnvifConnection] - Onvif reply is:<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:saml1="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:ns1="http://www.onvif.org/ver20/media/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trc="http://www.onvif.org/ver10/recording/wsdl" xmlns:trp="http://www.onvif.org/ver10/replay/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:trv="http://www.onvif.org/ver10/receiver/wsdl" xmlns:tse="http://www.onvif.org/ver10/search/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:tad="http://www.onvif.org/ver20/analytics/wsdl"><SOAP-ENV:Header><wsa5:To SOAP-ENV:mustUnderstand="1">http://192.168.2.9:8000/onvif/PullSubManager?Idx=121484574</wsa5:To><wsse:Security><wsse:UsernameToken><wsse:Username>OpenHab</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">FaSTZ6lA783GIAHA0MOmlvrxEww=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">LTE3MzA0MTExNDc=</wsse:Nonce><wsu:Created>2022-12-29T13:36:05.398Z</wsu:Created></wsse:UsernameToken></wsse:Security></SOAP-ENV:Header><SOAP-ENV:Body><wsnt:RenewResponse><wsnt:TerminationTime>2022-12-29T13:37:19Z</wsnt:TerminationTime><wsnt:CurrentTime>2022-12-29T13:36:19Z</wsnt:CurrentTime></wsnt:RenewResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

2022-12-29 14:36:05.526 [TRACE] [amera.internal.onvif.OnvifConnection] - Sending ONVIF request:PullMessages
2022-12-29 14:36:05.831 [TRACE] [amera.internal.onvif.OnvifConnection] - Onvif reply is:<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:saml1="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:ns1="http://www.onvif.org/ver20/media/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trc="http://www.onvif.org/ver10/recording/wsdl" xmlns:trp="http://www.onvif.org/ver10/replay/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:trv="http://www.onvif.org/ver10/receiver/wsdl" xmlns:tse="http://www.onvif.org/ver10/search/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:tad="http://www.onvif.org/ver20/analytics/wsdl"><SOAP-ENV:Header><wsa5:To SOAP-ENV:mustUnderstand="1">http://192.168.2.9:8000/onvif/PullSubManager?Idx=121484574</wsa5:To><wsse:Security><wsse:UsernameToken><wsse:Username>OpenHab</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">+Z8wB1zNgBWAMxahf92aGWsAcvE=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">LTg5MzczNzM0MA==</wsse:Nonce><wsu:Created>2022-12-29T13:35:57.563Z</wsu:Created></wsse:UsernameToken></wsse:Security></SOAP-ENV:Header><SOAP-ENV:Body><tev:PullMessagesResponse><tev:CurrentTime>2022-12-29T13:36:11Z</tev:CurrentTime><tev:TerminationTime>2022-12-29T13:37:11Z</tev:TerminationTime></tev:PullMessagesResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

2022-12-29 14:36:05.832 [TRACE] [amera.internal.onvif.OnvifConnection] - Sending ONVIF request:Renew
2022-12-29 14:36:05.893 [TRACE] [amera.internal.onvif.OnvifConnection] - Onvif reply is:<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:saml1="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:ns1="http://www.onvif.org/ver20/media/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trc="http://www.onvif.org/ver10/recording/wsdl" xmlns:trp="http://www.onvif.org/ver10/replay/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:trv="http://www.onvif.org/ver10/receiver/wsdl" xmlns:tse="http://www.onvif.org/ver10/search/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:tad="http://www.onvif.org/ver20/analytics/wsdl"><SOAP-ENV:Header><wsa5:To SOAP-ENV:mustUnderstand="1">http://192.168.2.9:8000/onvif/PullSubManager?Idx=121484574</wsa5:To><wsse:Security><wsse:UsernameToken><wsse:Username>OpenHab</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">R9fXE0Doqssf2cZt3eJX2E5S0kg=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">LTIxNDQwNDAwNDc=</wsse:Nonce><wsu:Created>2022-12-29T13:36:05.832Z</wsu:Created></wsse:UsernameToken></wsse:Security></SOAP-ENV:Header><SOAP-ENV:Body><wsnt:RenewResponse><wsnt:TerminationTime>2022-12-29T13:37:19Z</wsnt:TerminationTime><wsnt:CurrentTime>2022-12-29T13:36:19Z</wsnt:CurrentTime></wsnt:RenewResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

2022-12-29 14:36:05.893 [TRACE] [amera.internal.onvif.OnvifConnection] - Sending ONVIF request:PullMessages
2022-12-29 14:36:13.787 [TRACE] [amera.internal.onvif.OnvifConnection] - Onvif reply is:<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:saml1="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:ns1="http://www.onvif.org/ver20/media/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trc="http://www.onvif.org/ver10/recording/wsdl" xmlns:trp="http://www.onvif.org/ver10/replay/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:trv="http://www.onvif.org/ver10/receiver/wsdl" xmlns:tse="http://www.onvif.org/ver10/search/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:tad="http://www.onvif.org/ver20/analytics/wsdl"><SOAP-ENV:Header><wsa5:To SOAP-ENV:mustUnderstand="1">http://192.168.2.9:8000/onvif/PullSubManager?Idx=121484574</wsa5:To><wsse:Security><wsse:UsernameToken><wsse:Username>OpenHab</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">P+SKignu2RWBIM4RJmw53SCXrpk=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">LTE1NTQ5NTIzMTI=</wsse:Nonce><wsu:Created>2022-12-29T13:36:05.526Z</wsu:Created></wsse:UsernameToken></wsse:Security></SOAP-ENV:Header><SOAP-ENV:Body><tev:PullMessagesResponse><tev:CurrentTime>2022-12-29T13:36:19Z</tev:CurrentTime><tev:TerminationTime>2022-12-29T13:37:19Z</tev:TerminationTime></tev:PullMessagesResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

2022-12-29 14:36:13.788 [TRACE] [amera.internal.onvif.OnvifConnection] - Sending ONVIF request:Renew
2022-12-29 14:36:13.863 [TRACE] [amera.internal.onvif.OnvifConnection] - Onvif reply is:<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:saml1="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:ns1="http://www.onvif.org/ver20/media/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trc="http://www.onvif.org/ver10/recording/wsdl" xmlns:trp="http://www.onvif.org/ver10/replay/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:trv="http://www.onvif.org/ver10/receiver/wsdl" xmlns:tse="http://www.onvif.org/ver10/search/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:tad="http://www.onvif.org/ver20/analytics/wsdl"><SOAP-ENV:Header><wsa5:To SOAP-ENV:mustUnderstand="1">http://192.168.2.9:8000/onvif/PullSubManager?Idx=121484574</wsa5:To><wsse:Security><wsse:UsernameToken><wsse:Username>OpenHab</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">WLEqahPK86a0xETiKasaVZHvN6A=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">LTIwNDE0MDY2</wsse:Nonce><wsu:Created>2022-12-29T13:36:13.788Z</wsu:Created></wsse:UsernameToken></wsse:Security></SOAP-ENV:Header><SOAP-ENV:Body><wsnt:RenewResponse><wsnt:TerminationTime>2022-12-29T13:37:27Z</wsnt:TerminationTime><wsnt:CurrentTime>2022-12-29T13:36:27Z</wsnt:CurrentTime></wsnt:RenewResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

2022-12-29 14:36:13.863 [TRACE] [amera.internal.onvif.OnvifConnection] - Sending ONVIF request:PullMessages
2022-12-29 14:36:14.159 [TRACE] [amera.internal.onvif.OnvifConnection] - Onvif reply is:<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:saml1="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:ns1="http://www.onvif.org/ver20/media/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trc="http://www.onvif.org/ver10/recording/wsdl" xmlns:trp="http://www.onvif.org/ver10/replay/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:trv="http://www.onvif.org/ver10/receiver/wsdl" xmlns:tse="http://www.onvif.org/ver10/search/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:tad="http://www.onvif.org/ver20/analytics/wsdl"><SOAP-ENV:Header><wsa5:To SOAP-ENV:mustUnderstand="1">http://192.168.2.9:8000/onvif/PullSubManager?Idx=121484574</wsa5:To><wsse:Security><wsse:UsernameToken><wsse:Username>OpenHab</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">FO1N51fAgIXM3xRcTpii6PtA8s8=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">LTEzNTg1NjEwMzQ=</wsse:Nonce><wsu:Created>2022-12-29T13:36:05.893Z</wsu:Created></wsse:UsernameToken></wsse:Security></SOAP-ENV:Header><SOAP-ENV:Body><tev:PullMessagesResponse><tev:CurrentTime>2022-12-29T13:36:19Z</tev:CurrentTime><tev:TerminationTime>2022-12-29T13:37:19Z</tev:TerminationTime></tev:PullMessagesResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

2022-12-29 14:36:14.159 [TRACE] [amera.internal.onvif.OnvifConnection] - Sending ONVIF request:Renew
2022-12-29 14:36:14.253 [TRACE] [amera.internal.onvif.OnvifConnection] - Onvif reply is:<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:saml1="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:ns1="http://www.onvif.org/ver20/media/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trc="http://www.onvif.org/ver10/recording/wsdl" xmlns:trp="http://www.onvif.org/ver10/replay/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:trv="http://www.onvif.org/ver10/receiver/wsdl" xmlns:tse="http://www.onvif.org/ver10/search/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:tad="http://www.onvif.org/ver20/analytics/wsdl"><SOAP-ENV:Header><wsa5:To SOAP-ENV:mustUnderstand="1">http://192.168.2.9:8000/onvif/PullSubManager?Idx=121484574</wsa5:To><wsse:Security><wsse:UsernameToken><wsse:Username>OpenHab</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">j5dEYEwPCh/G/ywIDh39zgHOHUY=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">MTMzNDgyODc3Ng==</wsse:Nonce><wsu:Created>2022-12-29T13:36:14.159Z</wsu:Created></wsse:UsernameToken></wsse:Security></SOAP-ENV:Header><SOAP-ENV:Body><wsnt:RenewResponse><wsnt:TerminationTime>2022-12-29T13:37:28Z</wsnt:TerminationTime><wsnt:CurrentTime>2022-12-29T13:36:28Z</wsnt:CurrentTime></wsnt:RenewResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

hi, I tried your last build (ipcamera-20221229.zip) and nice - Human Alarm works fine.
i found that my Reolink E1 Outdoor Floodlight is not dimmable. >0 % is max brightness so a simple switch is enough for me :slight_smile:
But: I have the Flood light always off. (mode 0) and now my Camera turns the floodlight ā€œautoā€ (I think mode 1) when I dim back to 0ā€¦
Can you change this behaviour?
greets and a happy and better new year.
Baschtlwaschtl

Yes I can, but can I ask if you can test it with the mode missing from the json packet to see if it still works without any mode defined. I t may be possible to turn it on and off without having to specify the mode and then everyone can be happy if it does not change the mode they set it to.

Any other feedback you have would be great. Hopefully it found your camera as reolink and everything just worked.

Hi, sending the json without

 "mode": 0,

works fine. The mode stays at it was.
My both cameras were found as onvif cameras. So I added them manually. And I had to manual link the items cause other thing Id onvif <> Reolink.

@matt1 I finally had a chance to test things out. Nice work on putting this together. Wish I could have contributed more, but life happenedā€¦

For reference, here is my setup:

  • Reolink RLN8-410 NVR (Hardware number N3MB01 with firmware v3.0.0.148_21101146)
  • Reolink RLC-810A and RLC-820A cameras

I am able to get a basic Think setup, just setting up ā€œMotion Alarmā€ and ā€œHuman Detection.ā€ The ā€œMotion Alarmā€ works, but ā€œHuman Detectionā€ doesnā€™t (although it is supported by my camera and Iā€™ve verified it with a HTTP request). Below is the full trace from one pole from the IPCamera binding. A few notes:

  • The token is passed in most of the GET requests, but not all. For example, the Snap GET uses the token but the GetAiState and GetMdState GETs use the username and password.
  • The GetAiState is returning correctly, but I think there is an issue with the parsing of the result (as you can see the Exception traceback after the GET return and I only get a NULL state from the ā€œHuman Detectionā€ item). Looking at the ReolinkHandler.channelRead(ReolinkHandler.java:123), ā€œdog_catā€ value is requested; however, my GetAiState doesnā€™t return an animal state, just face, people and vehicle. This could be because I have older firmware, but for robustness, I think it makes sense to handle this exception rather than require a certain firmware.
  • Iā€™ve added the output from my ā€œGetAbilityā€ GET request for reference.

There is still more for me to try out, but hoepfully this is a start.

2023-01-07 20:45:32.179 [DEBUG] [era.internal.handler.IpCameraHandler] - About to connect to the IP Camera using the ONVIF PORT at IP:<removed>:8000
2023-01-07 20:45:32.180 [DEBUG] [amera.internal.onvif.OnvifConnection] - Connecting <removed> to ONVIF
2023-01-07 20:45:32.182 [TRACE] [amera.internal.onvif.OnvifConnection] - Sending ONVIF request:GetSystemDateAndTime
2023-01-07 20:45:32.185 [TRACE] [amera.internal.onvif.OnvifConnection] - Sending ONVIF request:GetCapabilities
2023-01-07 20:45:32.187 [DEBUG] [amera.internal.onvif.OnvifConnection] - Camera is not reachable on ONVIF port:8000 or the port may be wrong.
2023-01-07 20:45:32.191 [DEBUG] [amera.internal.onvif.OnvifConnection] - Camera is not reachable on ONVIF port:8000 or the port may be wrong.
2023-01-07 20:45:32.192 [TRACE] [era.internal.handler.IpCameraHandler] - Sending camera: GET: http://<removed>:80/cgi-bin/api.cgi?cmd=Snap&channel=3&rs=openHAB&token=37923f4ef53567f
2023-01-07 20:45:33.091 [TRACE] [era.internal.handler.IpCameraHandler] - Sending camera: GET: http://<removed>:80/cgi-bin/api.cgi?cmd=Snap&channel=3&rs=openHAB&token=37923f4ef53567f
2023-01-07 20:45:34.092 [TRACE] [era.internal.handler.IpCameraHandler] - Sending camera: GET: http://<removed>:80/cgi-bin/api.cgi?cmd=Snap&channel=3&rs=openHAB&token=37923f4ef53567f
2023-01-07 20:45:35.092 [TRACE] [era.internal.handler.IpCameraHandler] - Sending camera: GET: http://<removed>:80/cgi-bin/api.cgi?cmd=Snap&channel=3&rs=openHAB&token=37923f4ef53567f
2023-01-07 20:45:36.092 [TRACE] [era.internal.handler.IpCameraHandler] - Sending camera: GET: http://<removed>:80/cgi-bin/api.cgi?cmd=Snap&channel=3&rs=openHAB&token=37923f4ef53567f
2023-01-07 20:45:37.093 [TRACE] [era.internal.handler.IpCameraHandler] - Sending camera: GET: http://<removed>:80/api.cgi?cmd=GetAiState&channel=3&user=<removed>&password=<removed>
2023-01-07 20:45:37.096 [TRACE] [era.internal.handler.IpCameraHandler] - Sending camera: GET: http://<removed>:80/api.cgi?cmd=GetMdState&channel=3&user=<removed>&password=<removed>
2023-01-07 20:45:37.096 [TRACE] [era.internal.handler.IpCameraHandler] - Sending camera: GET: http://<removed>:80/cgi-bin/api.cgi?cmd=Snap&channel=3&rs=openHAB&token=37923f4ef53567f
2023-01-07 20:45:37.172 [TRACE] [era.internal.handler.IpCameraHandler] - HTTP Result from /api.cgi?cmd=GetAiState&channel=3&user=<removed>&password=<removed> contains 	:[
   {
      "cmd" : "GetAiState",
      "code" : 0,
      "value" : {
         "channel" : 3,
         "face" : {
            "alarm_state" : 0,
            "support" : 0
         },
         "people" : {
            "alarm_state" : 0,
            "support" : 1
         },
         "vehicle" : {
            "alarm_state" : 0,
            "support" : 1
         }
      }
   }
]
:
2023-01-07 20:45:37.178 [WARN ] [netty.channel.DefaultChannelPipeline] - An exceptionCaught() event was fired, and it reached at the tail of the pipeline. It usually means the last handler in the pipeline did not handle the exception.
java.lang.NullPointerException: null
	at org.openhab.binding.ipcamera.internal.ReolinkHandler.channelRead(ReolinkHandler.java:123) ~[?:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [bundleFile:4.1.72.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [bundleFile:4.1.72.Final]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [bundleFile:4.1.72.Final]
	at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:93) [bundleFile:4.1.72.Final]
	at org.openhab.binding.ipcamera.internal.handler.IpCameraHandler$CommonCameraHandler.channelRead(IpCameraHandler.java:297) [bundleFile:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [bundleFile:4.1.72.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [bundleFile:4.1.72.Final]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [bundleFile:4.1.72.Final]
	at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:93) [bundleFile:4.1.72.Final]
	at org.openhab.binding.ipcamera.internal.MyNettyAuthHandler.channelRead(MyNettyAuthHandler.java:182) [bundleFile:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [bundleFile:4.1.72.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [bundleFile:4.1.72.Final]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [bundleFile:4.1.72.Final]
	at io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead(CombinedChannelDuplexHandler.java:436) [bundleFile:4.1.72.Final]
	at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:324) [bundleFile:4.1.72.Final]
	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:296) [bundleFile:4.1.72.Final]
	at io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:251) [bundleFile:4.1.72.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [bundleFile:4.1.72.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [bundleFile:4.1.72.Final]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [bundleFile:4.1.72.Final]
	at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286) [bundleFile:4.1.72.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [bundleFile:4.1.72.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [bundleFile:4.1.72.Final]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [bundleFile:4.1.72.Final]
	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) [bundleFile:4.1.72.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [bundleFile:4.1.72.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [bundleFile:4.1.72.Final]
	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) [bundleFile:4.1.72.Final]
	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166) [bundleFile:4.1.72.Final]
	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:722) [bundleFile:4.1.72.Final]
	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:658) [bundleFile:4.1.72.Final]
	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:584) [bundleFile:4.1.72.Final]
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:496) [bundleFile:4.1.72.Final]
	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986) [bundleFile:4.1.72.Final]
	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [bundleFile:4.1.72.Final]
	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [bundleFile:4.1.72.Final]
	at java.lang.Thread.run(Thread.java:829) [?:?]
2023-01-07 20:45:37.192 [TRACE] [era.internal.handler.IpCameraHandler] - HTTP Result from /api.cgi?cmd=GetMdState&channel=3&user=<removed>&password=<removed> contains 	:[
   {
      "cmd" : "GetMdState",
      "code" : 0,
      "value" : {
         "state" : 0
      }
   }
]
:
2023-01-07 20:45:38.093 [TRACE] [era.internal.handler.IpCameraHandler] - Sending camera: GET: http://<removed>:80/cgi-bin/api.cgi?cmd=Snap&channel=3&rs=openHAB&token=37923f4ef53567f
2023-01-07 20:45:39.093 [TRACE] [era.internal.handler.IpCameraHandler] - Sending camera: GET: http://<removed>:80/cgi-bin/api.cgi?cmd=Snap&channel=3&rs=openHAB&token=37923f4ef53567f
2023-01-07 20:45:40.094 [TRACE] [era.internal.handler.IpCameraHandler] - Sending camera: GET: http://<removed>:80/cgi-bin/api.cgi?cmd=Snap&channel=3&rs=openHAB&token=37923f4ef53567f
{
      "cmd" : "GetAbility",
      "code" : 0,
      "value" : {
         "Ability" : {
            "3g" : {
               "permit" : 0,
               "ver" : 0
            },
            "abilityChn" : [
               {
                  "aiTrack" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "alarmAudio" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "alarmIoIn" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "alarmIoOut" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "alarmMd" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "alarmRf" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "batAnalysis" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "battery" : {
                     "permit" : 4,
                     "ver" : 0
                  },
                  "cameraMode" : {
                     "permit" : 4,
                     "ver" : 0
                  },
                  "disableAutoFocus" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "enc" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "floodLight" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ftp" : {
                     "permit" : 4,
                     "ver" : 5
                  },
                  "image" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "indicatorLight" : {
                     "permit" : 4,
                     "ver" : 0
                  },
                  "isp" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "isp3Dnr" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispAntiFlick" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispBackLight" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispBright" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispContrast" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispDayNight" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispExposureMode" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispFlip" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispHue" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispMirror" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispSatruation" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispSharpen" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispWhiteBalance" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ledControl" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "live" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "mainEncType" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "mask" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "mdTriggerAudio" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "mdTriggerRecord" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "mdWithPir" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "osd" : {
                     "permit" : 0,
                     "ver" : 1
                  },
                  "powerLed" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzCtrl" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzDirection" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzPatrol" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzPreset" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzTattern" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzType" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "recCfg" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "recDownload" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "recReplay" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "recSchedule" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "shelterCfg" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "snap" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "supportAiAnimal" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiDetectConfig" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiFace" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiPeople" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "supportAiSensitivity" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "supportAiStayTime" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiTargetSize" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "supportAiTrackClassify" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiVehicle" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "supportAoAdjust" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportFLBrightness" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportFLIntelligent" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "supportFLKeepOn" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportFLSchedule" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportFLswitch" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportGop" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportPtzCheck" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportWhiteDark" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "videoClip" : {
                     "permit" : 0,
                     "ver" : 1
                  },
                  "waterMark" : {
                     "permit" : 0,
                     "ver" : 1
                  },
                  "white_balance" : {
                     "permit" : 0,
                     "ver" : 0
                  }
               },
               {
                  "aiTrack" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "alarmAudio" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "alarmIoIn" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "alarmIoOut" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "alarmMd" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "alarmRf" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "batAnalysis" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "battery" : {
                     "permit" : 4,
                     "ver" : 0
                  },
                  "cameraMode" : {
                     "permit" : 4,
                     "ver" : 0
                  },
                  "disableAutoFocus" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "enc" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "floodLight" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ftp" : {
                     "permit" : 4,
                     "ver" : 5
                  },
                  "image" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "indicatorLight" : {
                     "permit" : 4,
                     "ver" : 0
                  },
                  "isp" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "isp3Dnr" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispAntiFlick" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispBackLight" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispBright" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispContrast" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispDayNight" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispExposureMode" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispFlip" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispHue" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispMirror" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispSatruation" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispSharpen" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispWhiteBalance" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ledControl" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "live" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "mainEncType" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "mask" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "mdTriggerAudio" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "mdTriggerRecord" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "mdWithPir" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "osd" : {
                     "permit" : 0,
                     "ver" : 1
                  },
                  "powerLed" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzCtrl" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzDirection" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzPatrol" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzPreset" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzTattern" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzType" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "recCfg" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "recDownload" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "recReplay" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "recSchedule" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "shelterCfg" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "snap" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "supportAiAnimal" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiDetectConfig" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiFace" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiPeople" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "supportAiSensitivity" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "supportAiStayTime" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiTargetSize" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "supportAiTrackClassify" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiVehicle" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "supportAoAdjust" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportFLBrightness" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportFLIntelligent" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "supportFLKeepOn" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportFLSchedule" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportFLswitch" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportGop" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportPtzCheck" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportWhiteDark" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "videoClip" : {
                     "permit" : 0,
                     "ver" : 1
                  },
                  "waterMark" : {
                     "permit" : 0,
                     "ver" : 1
                  },
                  "white_balance" : {
                     "permit" : 0,
                     "ver" : 0
                  }
               },
               {
                  "aiTrack" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "alarmAudio" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "alarmIoIn" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "alarmIoOut" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "alarmMd" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "alarmRf" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "batAnalysis" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "battery" : {
                     "permit" : 4,
                     "ver" : 0
                  },
                  "cameraMode" : {
                     "permit" : 4,
                     "ver" : 0
                  },
                  "disableAutoFocus" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "enc" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "floodLight" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ftp" : {
                     "permit" : 4,
                     "ver" : 5
                  },
                  "image" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "indicatorLight" : {
                     "permit" : 4,
                     "ver" : 0
                  },
                  "isp" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "isp3Dnr" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispAntiFlick" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispBackLight" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispBright" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispContrast" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispDayNight" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispExposureMode" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispFlip" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispHue" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispMirror" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispSatruation" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispSharpen" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispWhiteBalance" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ledControl" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "live" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "mainEncType" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "mask" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "mdTriggerAudio" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "mdTriggerRecord" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "mdWithPir" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "osd" : {
                     "permit" : 0,
                     "ver" : 1
                  },
                  "powerLed" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzCtrl" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzDirection" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzPatrol" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzPreset" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzTattern" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzType" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "recCfg" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "recDownload" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "recReplay" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "recSchedule" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "shelterCfg" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "snap" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "supportAiAnimal" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiDetectConfig" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiFace" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiPeople" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "supportAiSensitivity" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "supportAiStayTime" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiTargetSize" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "supportAiTrackClassify" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiVehicle" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "supportAoAdjust" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportFLBrightness" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportFLIntelligent" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "supportFLKeepOn" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportFLSchedule" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportFLswitch" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportGop" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportPtzCheck" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportWhiteDark" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "videoClip" : {
                     "permit" : 0,
                     "ver" : 1
                  },
                  "waterMark" : {
                     "permit" : 0,
                     "ver" : 1
                  },
                  "white_balance" : {
                     "permit" : 0,
                     "ver" : 0
                  }
               },
               {
                  "aiTrack" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "alarmAudio" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "alarmIoIn" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "alarmIoOut" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "alarmMd" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "alarmRf" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "batAnalysis" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "battery" : {
                     "permit" : 4,
                     "ver" : 0
                  },
                  "cameraMode" : {
                     "permit" : 4,
                     "ver" : 0
                  },
                  "disableAutoFocus" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "enc" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "floodLight" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ftp" : {
                     "permit" : 4,
                     "ver" : 5
                  },
                  "image" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "indicatorLight" : {
                     "permit" : 4,
                     "ver" : 0
                  },
                  "isp" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "isp3Dnr" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispAntiFlick" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispBackLight" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispBright" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispContrast" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispDayNight" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispExposureMode" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispFlip" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispHue" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispMirror" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispSatruation" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispSharpen" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispWhiteBalance" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ledControl" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "live" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "mainEncType" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "mask" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "mdTriggerAudio" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "mdTriggerRecord" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "mdWithPir" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "osd" : {
                     "permit" : 0,
                     "ver" : 1
                  },
                  "powerLed" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzCtrl" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzDirection" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzPatrol" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzPreset" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzTattern" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzType" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "recCfg" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "recDownload" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "recReplay" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "recSchedule" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "shelterCfg" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "snap" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "supportAiAnimal" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiDetectConfig" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiFace" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiPeople" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "supportAiSensitivity" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "supportAiStayTime" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiTargetSize" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "supportAiTrackClassify" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiVehicle" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "supportAoAdjust" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportFLBrightness" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportFLIntelligent" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "supportFLKeepOn" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportFLSchedule" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportFLswitch" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportGop" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportPtzCheck" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportWhiteDark" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "videoClip" : {
                     "permit" : 0,
                     "ver" : 1
                  },
                  "waterMark" : {
                     "permit" : 0,
                     "ver" : 1
                  },
                  "white_balance" : {
                     "permit" : 0,
                     "ver" : 0
                  }
               },
               {
                  "aiTrack" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "alarmAudio" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "alarmIoIn" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "alarmIoOut" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "alarmMd" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "alarmRf" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "batAnalysis" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "battery" : {
                     "permit" : 4,
                     "ver" : 0
                  },
                  "cameraMode" : {
                     "permit" : 4,
                     "ver" : 0
                  },
                  "disableAutoFocus" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "enc" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "floodLight" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ftp" : {
                     "permit" : 4,
                     "ver" : 5
                  },
                  "image" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "indicatorLight" : {
                     "permit" : 4,
                     "ver" : 0
                  },
                  "isp" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "isp3Dnr" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ispAntiFlick" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispBackLight" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ispBright" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispContrast" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispDayNight" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ispExposureMode" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ispFlip" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ispHue" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ispMirror" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ispSatruation" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispSharpen" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispWhiteBalance" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ledControl" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "live" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "mainEncType" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "mask" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "mdTriggerAudio" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "mdTriggerRecord" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "mdWithPir" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "osd" : {
                     "permit" : 0,
                     "ver" : 1
                  },
                  "powerLed" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzCtrl" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzDirection" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzPatrol" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzPreset" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzTattern" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzType" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "recCfg" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "recDownload" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "recReplay" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "recSchedule" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "shelterCfg" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "snap" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "supportAiAnimal" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiDetectConfig" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiFace" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiPeople" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiSensitivity" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiStayTime" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiTargetSize" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiTrackClassify" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiVehicle" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAoAdjust" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportFLBrightness" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportFLIntelligent" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "supportFLKeepOn" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportFLSchedule" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportFLswitch" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportGop" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportPtzCheck" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportWhiteDark" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "videoClip" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "waterMark" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "white_balance" : {
                     "permit" : 0,
                     "ver" : 0
                  }
               },
               {
                  "aiTrack" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "alarmAudio" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "alarmIoIn" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "alarmIoOut" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "alarmMd" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "alarmRf" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "batAnalysis" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "battery" : {
                     "permit" : 4,
                     "ver" : 0
                  },
                  "cameraMode" : {
                     "permit" : 4,
                     "ver" : 0
                  },
                  "disableAutoFocus" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "enc" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "floodLight" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ftp" : {
                     "permit" : 4,
                     "ver" : 5
                  },
                  "image" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "indicatorLight" : {
                     "permit" : 4,
                     "ver" : 0
                  },
                  "isp" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "isp3Dnr" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ispAntiFlick" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispBackLight" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ispBright" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispContrast" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispDayNight" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ispExposureMode" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ispFlip" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ispHue" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ispMirror" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ispSatruation" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispSharpen" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispWhiteBalance" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ledControl" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "live" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "mainEncType" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "mask" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "mdTriggerAudio" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "mdTriggerRecord" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "mdWithPir" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "osd" : {
                     "permit" : 0,
                     "ver" : 1
                  },
                  "powerLed" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzCtrl" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzDirection" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzPatrol" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzPreset" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzTattern" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzType" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "recCfg" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "recDownload" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "recReplay" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "recSchedule" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "shelterCfg" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "snap" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "supportAiAnimal" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiDetectConfig" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiFace" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiPeople" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiSensitivity" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiStayTime" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiTargetSize" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiTrackClassify" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiVehicle" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAoAdjust" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportFLBrightness" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportFLIntelligent" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "supportFLKeepOn" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportFLSchedule" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportFLswitch" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportGop" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportPtzCheck" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportWhiteDark" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "videoClip" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "waterMark" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "white_balance" : {
                     "permit" : 0,
                     "ver" : 0
                  }
               },
               {
                  "aiTrack" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "alarmAudio" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "alarmIoIn" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "alarmIoOut" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "alarmMd" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "alarmRf" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "batAnalysis" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "battery" : {
                     "permit" : 4,
                     "ver" : 0
                  },
                  "cameraMode" : {
                     "permit" : 4,
                     "ver" : 0
                  },
                  "disableAutoFocus" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "enc" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "floodLight" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ftp" : {
                     "permit" : 4,
                     "ver" : 5
                  },
                  "image" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "indicatorLight" : {
                     "permit" : 4,
                     "ver" : 0
                  },
                  "isp" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "isp3Dnr" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ispAntiFlick" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispBackLight" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ispBright" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispContrast" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispDayNight" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ispExposureMode" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ispFlip" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ispHue" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ispMirror" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ispSatruation" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispSharpen" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispWhiteBalance" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ledControl" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "live" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "mainEncType" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "mask" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "mdTriggerAudio" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "mdTriggerRecord" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "mdWithPir" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "osd" : {
                     "permit" : 0,
                     "ver" : 1
                  },
                  "powerLed" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzCtrl" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzDirection" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzPatrol" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzPreset" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzTattern" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzType" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "recCfg" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "recDownload" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "recReplay" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "recSchedule" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "shelterCfg" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "snap" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "supportAiAnimal" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiDetectConfig" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiFace" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiPeople" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiSensitivity" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiStayTime" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiTargetSize" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiTrackClassify" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiVehicle" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAoAdjust" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportFLBrightness" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportFLIntelligent" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "supportFLKeepOn" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportFLSchedule" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportFLswitch" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportGop" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportPtzCheck" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportWhiteDark" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "videoClip" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "waterMark" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "white_balance" : {
                     "permit" : 0,
                     "ver" : 0
                  }
               },
               {
                  "aiTrack" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "alarmAudio" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "alarmIoIn" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "alarmIoOut" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "alarmMd" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "alarmRf" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "batAnalysis" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "battery" : {
                     "permit" : 4,
                     "ver" : 0
                  },
                  "cameraMode" : {
                     "permit" : 4,
                     "ver" : 0
                  },
                  "disableAutoFocus" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "enc" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "floodLight" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ftp" : {
                     "permit" : 4,
                     "ver" : 5
                  },
                  "image" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "indicatorLight" : {
                     "permit" : 4,
                     "ver" : 0
                  },
                  "isp" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "isp3Dnr" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ispAntiFlick" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispBackLight" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ispBright" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispContrast" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispDayNight" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ispExposureMode" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ispFlip" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ispHue" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ispMirror" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ispSatruation" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispSharpen" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "ispWhiteBalance" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ledControl" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "live" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "mainEncType" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "mask" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "mdTriggerAudio" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "mdTriggerRecord" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "mdWithPir" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "osd" : {
                     "permit" : 0,
                     "ver" : 1
                  },
                  "powerLed" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzCtrl" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzDirection" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzPatrol" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzPreset" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzTattern" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "ptzType" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "recCfg" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "recDownload" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "recReplay" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "recSchedule" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "shelterCfg" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "snap" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "supportAiAnimal" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiDetectConfig" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiFace" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiPeople" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiSensitivity" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiStayTime" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiTargetSize" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiTrackClassify" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAiVehicle" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportAoAdjust" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportFLBrightness" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportFLIntelligent" : {
                     "permit" : 4,
                     "ver" : 1
                  },
                  "supportFLKeepOn" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportFLSchedule" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportFLswitch" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportGop" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportPtzCheck" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "supportWhiteDark" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "videoClip" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "waterMark" : {
                     "permit" : 0,
                     "ver" : 0
                  },
                  "white_balance" : {
                     "permit" : 0,
                     "ver" : 0
                  }
               }
            ],
            "alarmAudio" : {
               "permit" : 0,
               "ver" : 0
            },
            "alarmDisconnet" : {
               "permit" : 4,
               "ver" : 1
            },
            "alarmHddErr" : {
               "permit" : 4,
               "ver" : 1
            },
            "alarmHddFull" : {
               "permit" : 4,
               "ver" : 1
            },
            "alarmIpConflict" : {
               "permit" : 4,
               "ver" : 1
            },
            "auth" : {
               "permit" : 4,
               "ver" : 1
            },
            "autoMaint" : {
               "permit" : 4,
               "ver" : 1
            },
            "cloudStorage" : {
               "permit" : 0,
               "ver" : 0
            },
            "customAudio" : {
               "permit" : 0,
               "ver" : 0
            },
            "dateFormat" : {
               "permit" : 4,
               "ver" : 1
            },
            "ddns" : {
               "permit" : 4,
               "ver" : 9
            },
            "ddnsCfg" : {
               "permit" : 4,
               "ver" : 1
            },
            "devInfo" : {
               "permit" : 4,
               "ver" : 1
            },
            "devName" : {
               "permit" : 4,
               "ver" : 2
            },
            "disableAutoFocus" : {
               "permit" : 0,
               "ver" : 0
            },
            "disk" : {
               "permit" : 4,
               "ver" : 1
            },
            "display" : {
               "permit" : 4,
               "ver" : 1
            },
            "email" : {
               "permit" : 4,
               "ver" : 3
            },
            "emailInterval" : {
               "permit" : 4,
               "ver" : 1
            },
            "emailSchedule" : {
               "permit" : 4,
               "ver" : 1
            },
            "exportCfg" : {
               "permit" : 0,
               "ver" : 0
            },
            "ftpAutoDir" : {
               "permit" : 4,
               "ver" : 1
            },
            "ftpExtStream" : {
               "permit" : 4,
               "ver" : 1
            },
            "ftpPic" : {
               "permit" : 4,
               "ver" : 1
            },
            "ftpSubStream" : {
               "permit" : 4,
               "ver" : 1
            },
            "ftpTest" : {
               "permit" : 0,
               "ver" : 0
            },
            "hourFmt" : {
               "permit" : 4,
               "ver" : 2
            },
            "http" : {
               "permit" : 4,
               "ver" : 1
            },
            "httpFlv" : {
               "permit" : 4,
               "ver" : 1
            },
            "https" : {
               "permit" : 4,
               "ver" : 1
            },
            "importCfg" : {
               "permit" : 0,
               "ver" : 0
            },
            "ipcManager" : {
               "permit" : 4,
               "ver" : 1
            },
            "ledControl" : {
               "permit" : 4,
               "ver" : 0
            },
            "localLink" : {
               "permit" : 4,
               "ver" : 1
            },
            "log" : {
               "permit" : 4,
               "ver" : 1
            },
            "mediaPort" : {
               "permit" : 4,
               "ver" : 1
            },
            "ntp" : {
               "permit" : 4,
               "ver" : 1
            },
            "online" : {
               "permit" : 4,
               "ver" : 1
            },
            "onvif" : {
               "permit" : 4,
               "ver" : 1
            },
            "p2p" : {
               "permit" : 4,
               "ver" : 1
            },
            "performance" : {
               "permit" : 4,
               "ver" : 1
            },
            "pppoe" : {
               "permit" : 4,
               "ver" : 0
            },
            "push" : {
               "permit" : 4,
               "ver" : 1
            },
            "pushSchedule" : {
               "permit" : 4,
               "ver" : 1
            },
            "reboot" : {
               "permit" : 0,
               "ver" : 1
            },
            "recExtensionTimeList" : {
               "permit" : 4,
               "ver" : 1
            },
            "recOverWrite" : {
               "permit" : 4,
               "ver" : 1
            },
            "recPackDuration" : {
               "permit" : 4,
               "ver" : 1
            },
            "recPreRecord" : {
               "permit" : 4,
               "ver" : 1
            },
            "restore" : {
               "permit" : 0,
               "ver" : 1
            },
            "rtmp" : {
               "permit" : 4,
               "ver" : 1
            },
            "rtsp" : {
               "permit" : 4,
               "ver" : 2
            },
            "scheduleVersion" : {
               "permit" : 4,
               "ver" : 1
            },
            "sdCard" : {
               "permit" : 4,
               "ver" : 1
            },
            "showQrCode" : {
               "permit" : 4,
               "ver" : 0
            },
            "simMoudule" : {
               "permit" : 4,
               "ver" : 0
            },
            "supportAudioAlarm" : {
               "permit" : 0,
               "ver" : 0
            },
            "supportAudioAlarmEnable" : {
               "permit" : 0,
               "ver" : 0
            },
            "supportAudioAlarmSchedule" : {
               "permit" : 0,
               "ver" : 0
            },
            "supportAudioAlarmTaskEnable" : {
               "permit" : 0,
               "ver" : 0
            },
            "supportBuzzer" : {
               "permit" : 4,
               "ver" : 1
            },
            "supportBuzzerEnable" : {
               "permit" : 4,
               "ver" : 1
            },
            "supportBuzzerTask" : {
               "permit" : 4,
               "ver" : 1
            },
            "supportBuzzerTaskEnable" : {
               "permit" : 4,
               "ver" : 1
            },
            "supportEmailEnable" : {
               "permit" : 4,
               "ver" : 1
            },
            "supportEmailTaskEnable" : {
               "permit" : 4,
               "ver" : 1
            },
            "supportFtpEnable" : {
               "permit" : 4,
               "ver" : 1
            },
            "supportFtpTask" : {
               "permit" : 4,
               "ver" : 1
            },
            "supportFtpTaskEnable" : {
               "permit" : 4,
               "ver" : 1
            },
            "supportRecScheduleEnable" : {
               "permit" : 4,
               "ver" : 1
            },
            "supportRecordEnable" : {
               "permit" : 4,
               "ver" : 1
            },
            "talk" : {
               "permit" : 0,
               "ver" : 0
            },
            "time" : {
               "permit" : 4,
               "ver" : 2
            },
            "tvSystem" : {
               "permit" : 4,
               "ver" : 0
            },
            "upgrade" : {
               "permit" : 0,
               "ver" : 2
            },
            "upnp" : {
               "permit" : 4,
               "ver" : 1
            },
            "user" : {
               "permit" : 6,
               "ver" : 1
            },
            "videoClip" : {
               "permit" : 0,
               "ver" : 1
            },
            "wifi" : {
               "permit" : 0,
               "ver" : 0
            },
            "wifiTest" : {
               "permit" : 4,
               "ver" : 0
            }
         }
      }
   }
]

@matt1 So, I went ahead and fixed the animal detection issue and submitted a pull request with the change.

1 Like