fwestenberg / reolink_dev

Home Assistant Reolink addon
MIT License
550 stars 102 forks source link

Motion sensor unavailable after upgrade to 0.31 #330

Closed MacL3an closed 2 years ago

MacL3an commented 2 years ago

First of all, thanks again for all the hard work you guys are putting into this integration! I hope I can help you debug this issue.

Describe the bug I just added a second camera and while doing this I also upgraded to reolink_dev v0.31 (from 0.26) and now the callbacks for motion detection have stopped working. They worked fine before but now is just says "unavailable".

image

To Reproduce I've tried to remove and add the cameras again. Also upgraded to the latest reolink firmware (v3.0.0.148_21100909). After adding the cameras, I don't seem to get any callbacks from Reolink.

I have tried enabling push notifs in the Reolink app and they work, so the camera does detect motion. I've tried going to the /cgi-bin/api.cgi?cmd=GetMdState page, and I can confirm the state is 1 during motion. And it worked before upgrading to 0.31. I have also set the internal_ip to the correct IP (without using the mDNS name).

This is what I see in the logs:

2021-10-21 20:52:34 ERROR (MainThread) [custom_components.reolink_dev.base] Host 10.0.1.15 subscription failed to its webhook, base object state will be set to NotAvailable
2021-10-21 20:52:34 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.zwave_js
2021-10-21 20:52:34 INFO (MainThread) [homeassistant.components.switch] Setting up switch.zwave_js
2021-10-21 20:52:34 INFO (MainThread) [homeassistant.setup] Setting up lock
2021-10-21 20:52:34 INFO (MainThread) [homeassistant.setup] Setup of domain lock took 0.0 seconds
2021-10-21 20:52:34 INFO (SyncWorker_5) [googleapiclient.discovery] URL being requested: GET https://www.googleapis.com/calendar/v3/calendars/hakan%40kry.se/events?orderBy=startTime&singleEvents=true&maxResults=100&timeMin=2021-10-21T20%3A52%3A34.845530%2B02%3A00&alt=json
2021-10-21 20:52:34 INFO (SyncWorker_4) [homeassistant.loader] Loaded number from homeassistant.components.number
2021-10-21 20:52:34 INFO (MainThread) [homeassistant.components.lock] Setting up lock.zwave_js
2021-10-21 20:52:34 INFO (MainThread) [homeassistant.setup] Setting up number
2021-10-21 20:52:34 INFO (MainThread) [homeassistant.setup] Setup of domain number took 0.0 seconds
2021-10-21 20:52:35 INFO (MainThread) [homeassistant.components.number] Setting up number.zwave_js
2021-10-21 20:52:35 INFO (SyncWorker_7) [homeassistant.loader] Loaded select from homeassistant.components.select
2021-10-21 20:52:35 ERROR (MainThread) [custom_components.reolink_dev.base] Host 10.0.1.15 error renewing the Reolink subscription
2021-10-21 20:52:35 ERROR (MainThread) [custom_components.reolink_dev.base] Host 10.0.1.15 error renewing the Reolink subscription
...

2021-10-21 20:52:45 INFO (MainThread) [custom_components.hacs] Stage changed: HacsStage.RUNNING
2021-10-21 20:53:21 INFO (MainThread) [homeassistant.components.websocket_api.http.connection] [548231073072] Connection closed by client
2021-10-21 20:53:35 ERROR (MainThread) [custom_components.reolink_dev.base] Host 10.0.1.15 error renewing the Reolink subscription
2021-10-21 20:53:35 ERROR (MainThread) [custom_components.reolink_dev.base] Host 10.0.1.15 error renewing the Reolink subscription
2021-10-21 20:54:35 ERROR (MainThread) [custom_components.reolink_dev.base] Host 10.0.1.15 error renewing the Reolink subscription
2021-10-21 20:54:35 ERROR (MainThread) [custom_components.reolink_dev.base] Host 10.0.1.15 error renewing the Reolink subscription
2021-10-21 20:55:35 ERROR (MainThread) [custom_components.reolink_dev.base] Host 10.0.1.15 error renewing the Reolink subscription
2021-10-21 20:55:35 ERROR (MainThread) [custom_components.reolink_dev.base] Host 10.0.1.15 error renewing the Reolink subscription
2021-10-21 20:56:35 ERROR (MainThread) [custom_components.reolink_dev.base] Host 10.0.1.15 error renewing the Reolink subscription
2021-10-21 20:56:35 ERROR (MainThread) [custom_components.reolink_dev.base] Host 10.0.1.15 error renewing the Reolink subscription
2021-10-21 20:57:33 INFO (MainThread) [homeassistant.components.websocket_api.http.connection] [548249828848] Connection closed by client
2021-10-21 20:57:35 ERROR (MainThread) [custom_components.reolink_dev.base] Host 10.0.1.15 error renewing the Reolink subscription
2021-10-21 20:57:35 ERROR (MainThread) [custom_components.reolink_dev.base] Host 10.0.1.15 error renewing the Reolink subscription

Environment: Please provide useful information about your environment, like:

cpainchaud commented 2 years ago

Please enable better logging with the following to get more precise logs:

logger:
  default: warning
  logs:
    custom_components.reolink_dev: debug
    custom_components.reolink_dev.base.data: warning
    reolink: debug

Can you also provide the camera model + firmware version

MacL3an commented 2 years ago

Thanks for looking into this. The camera is RLC-520A. I don't know where I can find the firmware of the camera? Do not see it anywhere in the NVR software.

The logs seem confusing to me. They complain about not being able to connect to the NVR, but a few lines later I see something that looks like a response from the NVR?

2021-10-22 21:36:02 DEBUG (MainThread) [reolink.subscription_manager] Host 10.0.1.15: Connection error Cannot connect to host 10.0.1.15:8000 ssl:default [Connect call failed ('10.0.1.15', 8000)]
2021-10-22 21:36:02 DEBUG (MainThread) [reolink.subscription_manager] Reolink host 10.0.1.15 (Subscription) request data:
<soap:Envelope xmlns:add="http://www.w3.org/2005/08/addressing" xmlns:b="http://docs.oasis-open.org/wsn/b-2" xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Header><wsse:Security soap:mustUnderstand="true" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsse:UsernameToken wsu:Id="UsernameToken-d9562abd-e3df-41b6-98de-a847f6a4ce88">
<wsse:Username>hass</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">Njz6HFWvT5ALzpgFPUV+Bn+RHDI=</wsse:Password>
<wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">XL/Wiv15TH2GWLPQvlyDmA==</wsse:Nonce>
<wsu:Created>2021-10-22T19:36:02.000Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
<add:Action>http://docs.oasis-open.org/wsn/bw-2/SubscriptionManager/UnsubscribeRequest</add:Action>
<add:To>None</add:To>
</soap:Header>
<soap:Body>
<b:Unsubscribe/>
</soap:Body>
</soap:Envelope>
2021-10-22 21:36:02 DEBUG (MainThread) [reolink.subscription_manager] Host 10.0.1.15: Connection error Cannot connect to host 10.0.1.15:8000 ssl:default [Connect call failed ('10.0.1.15', 8000)]
2021-10-22 21:36:02 DEBUG (MainThread) [reolink.subscription_manager] Reolink host 10.0.1.15 (Subscription) request data:
<soap:Envelope xmlns:add="http://www.w3.org/2005/08/addressing" xmlns:b="http://docs.oasis-open.org/wsn/b-2" xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Header><wsse:Security soap:mustUnderstand="true" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsse:UsernameToken wsu:Id="UsernameToken-6aa8802e-6318-45b6-a716-e75af325843b">
<wsse:Username>hass</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">FNUaLg72AWnBRhbY8Qml1skkbmA=</wsse:Password>
<wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">HCGXiigUSaKuF9cZwE7KNA==</wsse:Nonce>
<wsu:Created>2021-10-22T19:36:02.000Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
<add:Action>http://docs.oasis-open.org/wsn/bw-2/SubscriptionManager/UnsubscribeRequest</add:Action>
<add:To>None</add:To>
</soap:Header>
<soap:Body>
<b:Unsubscribe/>
</soap:Body>
</soap:Envelope>
2021-10-22 21:36:02 DEBUG (MainThread) [reolink.subscription_manager] Host 10.0.1.15: Connection error Cannot connect to host 10.0.1.15:8000 ssl:default [Connect call failed ('10.0.1.15', 8000)]
2021-10-22 21:36:02 ERROR (MainThread) [custom_components.reolink_dev.base] Host 10.0.1.15 error renewing the Reolink subscription
2021-10-22 21:36:02 DEBUG (MainThread) [reolink.subscription_manager] Reolink host 10.0.1.15 (Subscription) request data:
<soap:Envelope xmlns:add="http://www.w3.org/2005/08/addressing" xmlns:b="http://docs.oasis-open.org/wsn/b-2" xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Header><wsse:Security soap:mustUnderstand="true" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsse:UsernameToken wsu:Id="UsernameToken-64fe9d76-eae1-4968-91fb-101af6df054e">
<wsse:Username>hass</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">qTDlgxyn4KnJeRldjthFVyh/2sI=</wsse:Password>
<wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">5TtZ69N3SxqKTagHWfws1Q==</wsse:Nonce>
<wsu:Created>2021-10-22T19:36:02.000Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</soap:Header>
<soap:Body>
<b:Subscribe>
<b:ConsumerReference>
<add:Address>http://10.0.1.8:8123/api/webhook/3a1b31f2029a5f902beda9356b883f3b00dcea8bc0c4c71e50920554366cee70</add:Address>
</b:ConsumerReference>
<b:InitialTerminationTime>PT15M</b:InitialTerminationTime>
</b:Subscribe>
</soap:Body>
</soap:Envelope>
2021-10-22 21:36:02 DEBUG (MainThread) [reolink.subscription_manager] Host 10.0.1.15: Connection error Cannot connect to host 10.0.1.15:8000 ssl:default [Connect call failed ('10.0.1.15', 8000)]
2021-10-22 21:36:02 ERROR (MainThread) [custom_components.reolink_dev.base] Host 10.0.1.15 error renewing the Reolink subscription
2021-10-22 21:36:02 DEBUG (MainThread) [reolink.subscription_manager] Reolink host 10.0.1.15 (Subscription) request data:
<soap:Envelope xmlns:add="http://www.w3.org/2005/08/addressing" xmlns:b="http://docs.oasis-open.org/wsn/b-2" xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Header><wsse:Security soap:mustUnderstand="true" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsse:UsernameToken wsu:Id="UsernameToken-8ed42bbf-6f77-4cc9-8c21-c09c2368839f">
<wsse:Username>hass</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">z4PEu6dKx3FBFgmNA1Q5etAodA0=</wsse:Password>
<wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">S+T5T9R+TvquWlV/0fShVQ==</wsse:Nonce>
<wsu:Created>2021-10-22T19:36:02.000Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</soap:Header>
<soap:Body>
<b:Subscribe>
<b:ConsumerReference>
<add:Address>http://10.0.1.8:8123/api/webhook/3a1b31f2029a5f902beda9356b883f3b00dcea8bc0c4c71e50920554366cee70</add:Address>
</b:ConsumerReference>
<b:InitialTerminationTime>PT15M</b:InitialTerminationTime>
</b:Subscribe>
</soap:Body>
</soap:Envelope>
2021-10-22 21:36:02 DEBUG (MainThread) [reolink.subscription_manager] Host 10.0.1.15: Connection error Cannot connect to host 10.0.1.15:8000 ssl:default [Connect call failed ('10.0.1.15', 8000)]
2021-10-22 21:36:02 DEBUG (MainThread) [reolink.subscription_manager] Host 10.0.1.15: Connection error Cannot connect to host 10.0.1.15:8000 ssl:default [Connect call failed ('10.0.1.15', 8000)]
2021-10-22 21:36:02 DEBUG (MainThread) [reolink.camera_api] send() HTTP Request params ={'token': 'c8bcc7f0bc6d5d1'}
2021-10-22 21:36:02 DEBUG (MainThread) [reolink.camera_api] send() HTTP Request body =[{'cmd': 'GetFtp', 'action': 1, 'param': {'channel': 0}}, {'cmd': 'GetEnc', 'action': 1, 'param': {'channel': 0}}, {'cmd': 'GetEmail', 'action': 1, 'param': {'channel': 0}}, {'cmd': 'GetIsp', 'action': 1, 'param': {'channel': 0}}, {'cmd': 'GetIrLights', 'action': 1, 'param': {'channel': 0}}, {'cmd': 'GetPtzPreset', 'action': 1, 'param': {'channel': 0}}, {'cmd': 'GetHddInfo', 'action': 1, 'param': {}}, {'cmd': 'GetAlarm', 'action': 1, 'param': {'Alarm': {'channel': 0, 'type': 'md'}}}, {'cmd': 'GetPushV20', 'action': 1, 'param': {'channel': 0}}, {'cmd': 'GetRecV20', 'action': 1, 'param': {'channel': 0}}]
2021-10-22 21:36:02 DEBUG (MainThread) [reolink.camera_api] send() HTTP Response status=200 content-type=(text/html)
2021-10-22 21:36:02 DEBUG (MainThread) [reolink.camera_api.data] send() HTTP Response data: [
{
"cmd" : "Unknown",
"code" : 1,
"error" : {
"detail" : "not support",
"rspCode" : -9
}
},
{
"cmd" : "GetEnc",
"code" : 0,
"initial" : {
"Enc" : {
"audio" : 0,
"channel" : 0,
"mainStream" : {
"bitRate" : 6144,
"frameRate" : 30,
"height" : 1920,
"profile" : "High",
"resolution" : 54,
"size" : "2560*1920",
"width" : 2560
},
"subStream" : {
"bitRate" : 256,
"frameRate" : 10,
"height" : 480,
"profile" : "High",
"size" : "640*480",
"width" : 640
}
}
},
"range" : {
"Enc" : [
{
"audio" : "boolean",
"chnBit" : 15,
"mainStream" : {
"bitRate" : [ 1024, 1536, 2048, 3072, 4096, 5120, 6144, 7168, 8192 ],
"default" : {
"bitRate" : 6144,
"frameRate" : 30
},
"frameRate" : [ 30, 25, 22, 20, 18, 16, 15, 12, 10, 8, 6, 4, 2 ],
"height" : 1920,
"profile" : [ "Base", "Main", "High" ],
"resolution" : 54,
"size" : "2560*1920",
"width" : 2560
},
"subStream" : {
"bitRate" : [ 64, 128, 160, 192, 256, 384, 512 ],
"default" : {
"bitRate" : 256,
"frameRate" : 10
},
"frameRate" : [ 15, 10, 7, 4 ],
"height" : 480,
"profile" : [ "Base", "Main", "High" ],
"resolution" : 28,
"size" : "640*480",
"width" : 640
}
},
{
"audio" : "boolean",
"chnBit" : 15,
"mainStream" : {
"bitRate" : [ 1024, 1536, 2048, 3072, 4096, 5120, 6144, 7168, 8192 ],
"default" : {
"bitRate" : 6144,
"frameRate" : 30
},
"frameRate" : [ 30, 25, 22, 20, 18, 16, 15, 12, 10, 8, 6, 4, 2 ],
"height" : 1440,
"profile" : [ "Base", "Main", "High" ],
"resolution" : 41,
"size" : "2560*1440",
"width" : 2560
},
"subStream" : {
"bitRate" : [ 64, 128, 160, 192, 256, 384, 512 ],
"default" : {
"bitRate" : 256,
"frameRate" : 10
},
"frameRate" : [ 15, 10, 7, 4 ],
"height" : 480,
"profile" : [ "Base", "Main", "High" ],
"resolution" : 28,
"size" : "640*480",
"width" : 640
}
},
{
"audio" : "boolean",
"chnBit" : 15,
"mainStream" : {
"bitRate" : [ 1024, 1536, 2048, 3072, 4096, 5120, 6144, 7168, 8192 ],
"default" : {
"bitRate" : 6144,
"frameRate" : 30
},
"frameRate" : [ 30, 25, 22, 20, 18, 16, 15, 12, 10, 8, 6, 4, 2 ],
"height" : 1536,
"profile" : [ "Base", "Main", "High" ],
"resolution" : 32,
"size" : "2048*1536",
"width" : 2048
},
"subStream" : {
"bitRate" : [ 64, 128, 160, 192, 256, 384, 512 ],
"default" : {
"bitRate" : 256,
"frameRate" : 10
},
"frameRate" : [ 15, 10, 7, 4 ],
"height" : 480,
"profile" : [ "Base", "Main", "High" ],
"resolution" : 28,
"size" : "640*480",
"width" : 640
}
},
{
"audio" : "boolean",
"chnBit" : 15,
"mainStream" : {
"bitRate" : [ 1024, 1536, 2048, 3072, 4096, 5120, 6144, 7168, 8192 ],
"default" : {
"bitRate" : 6144,
"frameRate" : 30
},
"frameRate" : [ 30, 25, 22, 20, 18, 16, 15, 12, 10, 8, 6, 4, 2 ],
"height" : 1296,
"profile" : [ "Base", "Main", "High" ],
"resolution" : 34,
"size" : "2304*1296",
"width" : 2304
},
"subStream" : {
"bitRate" : [ 64, 128, 160, 192, 256, 384, 512 ],
"default" : {
"bitRate" : 256,
"frameRate" : 10
},
"frameRate" : [ 15, 10, 7, 4 ],
"height" : 480,
"profile" : [ "Base", "Main", "High" ],
"resolution" : 28,
"size" : "640*480",
"width" : 640
}
}
]
},
"value" : {
"Enc" : {
"audio" : 0,
"channel" : 0,
"mainStream" : {
"bitRate" : 6144,
"frameRate" : 30,
"height" : 1920,
"profile" : "High",
"resolution" : 54,
"size" : "2560*1920",
"width" : 2560
},
"subStream" : {
"bitRate" : 256,
"frameRate" : 10,
"height" : 480,
"profile" : "High",
"resolution" : 28,
"size" : "640*480",
"width" : 640
}
}
}
},
{
"cmd" : "Unknown",
"code" : 1,
"error" : {
"detail" : "not support",
"rspCode" : -9
}
},
{
"cmd" : "GetIsp",
"code" : 0,
"initial" : {
"Isp" : {
"antiFlicker" : "Off",
"backLight" : "Off",
"blc" : 128,
"blueGain" : 128,
"channel" : 0,
"dayNight" : "Auto",
"drc" : 128,
"exposure" : "Auto",
"gain" : {
"max" : 62,
"min" : 1
},
"mirroring" : 0,
"nr3d" : 1,
"redGain" : 128,
"rotation" : 0,
"shutter" : {
"max" : 125,
"min" : 0
},
"whiteBalance" : "Auto"
}
},
"range" : {
"Isp" : {
"antiFlicker" : [ "Outdoor", "50HZ", "60HZ", "Off" ],
"backLight" : [ "Off", "BackLightControl", "DynamicRangeControl" ],
"bd_day" : {
"bright" : {
"max" : 0,
"min" : 0
},
"dark" : {
"max" : 0,
"min" : 0
},
"mode" : [ "Auto", "Manual" ]
},
"bd_led_color" : {
"bright" : {
"max" : 0,
"min" : 0
},
"dark" : {
"max" : 0,
"min" : 0
},
"mode" : [ "Auto", "Manual" ]
},
"bd_night" : {
"bright" : {
"max" : 0,
"min" : 0
},
"dark" : {
"max" : 0,
"min" : 0
},
"mode" : [ "Auto", "Manual" ]
},
"blc" : {
"max" : 255,
"min" : 0
},
"blueGain" : {
"max" : 255,
"min" : 0
},
"channel" : 0,
"dayNight" : [ "Auto", "Color", "Black&White" ],
"drc" : {
"max" : 255,
"min" : 0
},
"exposure" : [ "Auto", "LowNoise", "Anti-Smearing", "Manual" ],
"gain" : {
"max" : 100,
"min" : 1
},
"mirroring" : "boolean",
"nr3d" : "boolean",
"redGain" : {
"max" : 255,
"min" : 0
},
"rotation" : "boolean",
"shutter" : {
"max" : 125,
"min" : 0
},
"whiteBalance" : [ "Auto", "Manual" ]
}
},
"value" : {
"Isp" : {
"antiFlicker" : "Off",
"backLight" : "Off",
"blc" : 128,
"blueGain" : 128,
"channel" : 0,
"dayNight" : "Auto",
"drc" : 128,
"exposure" : "Auto",
"gain" : {
"max" : 62,
"min" : 1
},
"mirroring" : 0,
"nr3d" : 1,
"redGain" : 128,
"rotation" : 0,
"shutter" : {
"max" : 125,
"min" : 0
},
"whiteBalance" : "Auto"
}
}
},
{
"cmd" : "GetIrLights",
"code" : 0,
"initial" : {
"IrLights" : {
"state" : "Auto"
}
},
"range" : {
"IrLights" : {
"state" : [ "Auto", "Off" ]
}
},
"value" : {
"IrLights" : {
"state" : "Auto"
}
}
},
{
"cmd" : "GetPtzPreset",
"code" : 1,
"error" : {
"detail" : "get config failed",
"rspCode" : -12
}
},
{
"cmd" : "GetHddInfo",
"code" : 0,
"value" : {
"HddInfo" : [
{
"capacity" : 1892470,
"format" : 1,
"mount" : 1,
"number" : 0,
"size" : 702004,
"storageType" : 1
}
]
}
},
{
"cmd" : "Unknown",
"code" : 1,
"error" : {
"detail" : "not support",
"rspCode" : -9
}
},
{
"cmd" : "GetPushV20",
"code" : 0,
"initial" : {
"Push" : {
"enable" : 0,
"schedule" : {
"channel" : 0,
"table" : {
"AI_PEOPLE" : "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"AI_VEHICLE" : "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"MD" : "111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111"
}
}
}
},
"range" : {
"Push" : {
"enable" : "boolean",
"schedule" : {
"channel" : 0,
"table" : {
"AI_PEOPLE" : {
"table" : {
"maxLen" : 168,
"minLen" : 168
}
},
"AI_VEHICLE" : {
"table" : {
"maxLen" : 168,
"minLen" : 168
}
},
"MD" : {
"table" : {
"maxLen" : 168,
"minLen" : 168
}
}
}
}
}
},
"value" : {
"Push" : {
"enable" : 1,
"schedule" : {
"channel" : 0,
"table" : {
"AI_PEOPLE" : "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"AI_VEHICLE" : "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"MD" : "111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111"
}
}
}
}
},
{
"cmd" : "GetRecV20",
"code" : 0,
"initial" : {
"Rec" : {
"enable" : 1,
"overwrite" : 1,
"packTime" : "60 Minutes",
"postRec" : "2 Minutes",
"preRec" : 1,
"schedule" : {
"channel" : 0,
"table" : {
"AI_PEOPLE" : "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"AI_VEHICLE" : "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"MD" : "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"TIMING" : "111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111"
}
}
}
},
"range" : {
"Rec" : {
"enable" : "boolean",
"overwrite" : "boolean",
"packTime" : [ "30 Minutes", "45 Minutes", "60 Minutes" ],
"postRec" : [ "1 Minute", "2 Minutes", "5 Minutes", "10 Minutes" ],
"preRec" : "boolean",
"schedule" : {
"channel" : 0,
"table" : {
"AI_PEOPLE" : "boolean",
"AI_VEHICLE" : "boolean",
"MD" : "boolean",
"TIMING" : "boolean"
}
}
}
},
"value" : {
"Rec" : {
"enable" : 1,
"overwrite" : 1,
"packTime" : "60 Minutes",
"postRec" : "2 Minutes",
"preRec" : 1,
"schedule" : {
"channel" : 0,
"table" : {
"AI_PEOPLE" : "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"AI_VEHICLE" : "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"MD" : "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"TIMING" : "111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111"
}
}
}
}
}
]
2021-10-22 21:36:02 DEBUG (MainThread) [custom_components.reolink_dev] Finished fetching reolink data in 0.293 seconds (success: True)
2021-10-22 21:36:02 DEBUG (MainThread) [reolink.camera_api] send() HTTP Request params ={'token': '5732d6665e88f22'}
2021-10-22 21:36:02 DEBUG (MainThread) [reolink.camera_api] send() HTTP Request body =[{'cmd': 'GetFtp', 'action': 1, 'param': {'channel': 1}}, {'cmd': 'GetEnc', 'action': 1, 'param': {'channel': 1}}, {'cmd': 'GetEmail', 'action': 1, 'param': {'channel': 1}}, {'cmd': 'GetIsp', 'action': 1, 'param': {'channel': 1}}, {'cmd': 'GetIrLights', 'action': 1, 'param': {'channel': 1}}, {'cmd': 'GetPtzPreset', 'action': 1, 'param': {'channel': 1}}, {'cmd': 'GetHddInfo', 'action': 1, 'param': {}}, {'cmd': 'GetAlarm', 'action': 1, 'param': {'Alarm': {'channel': 1, 'type': 'md'}}}, {'cmd': 'GetPushV20', 'action': 1, 'param': {'channel': 1}}, {'cmd': 'GetRecV20', 'action': 1, 'param': {'channel': 1}}]
2021-10-22 21:36:02 DEBUG (MainThread) [reolink.camera_api] send() HTTP Response status=200 content-type=(text/html)
2021-10-22 21:36:02 DEBUG (MainThread) [reolink.camera_api.data] send() HTTP Response data: [
GitKiller-HA commented 2 years ago

Hi,

I have RLC-811A and big problem with motion sensor. I can't get it over SSL what is obvious, but I can't get It over http. I tried (IMHO) every think and no luck. Any one made this work ?

Thanks

cpainchaud commented 2 years ago

It is complaining about port 8000 connection which is not API but Onvif (used for motion detection) it is possible/probable that Onvif is not enabled on your NVR. Honestly NVRs are just making things complicated, you should configure this integration to login your camera directly.

On Fri, Oct 22, 2021, 21:50 Håkan MacLean @.***> wrote:

Thanks for looking into this. The camera is RLC-520A. I don't know where I can find the firmware of the camera? Do not see it anywhere in the NVR software.

The logs seem confusing to me. They complain about not being able to connect to the NVR, but a few lines later I see something that looks like a response from the NVR?

2021-10-22 21:36:02 DEBUG (MainThread) [reolink.subscription_manager] Host 10.0.1.15: Connection error Cannot connect to host 10.0.1.15:8000 ssl:default [Connect call failed ('10.0.1.15', 8000)] 2021-10-22 21:36:02 DEBUG (MainThread) [reolink.subscription_manager] Reolink host 10.0.1.15 (Subscription) request data:

hass Njz6HFWvT5ALzpgFPUV+Bn+RHDI= XL/Wiv15TH2GWLPQvlyDmA== 2021-10-22T19:36:02.000Z http://docs.oasis-open.org/wsn/bw-2/SubscriptionManager/UnsubscribeRequest None 2021-10-22 21:36:02 DEBUG (MainThread) [reolink.subscription_manager] Host 10.0.1.15: Connection error Cannot connect to host 10.0.1.15:8000 ssl:default [Connect call failed ('10.0.1.15', 8000)] 2021-10-22 21:36:02 DEBUG (MainThread) [reolink.subscription_manager] Reolink host 10.0.1.15 (Subscription) request data: hass FNUaLg72AWnBRhbY8Qml1skkbmA= HCGXiigUSaKuF9cZwE7KNA== 2021-10-22T19:36:02.000Z http://docs.oasis-open.org/wsn/bw-2/SubscriptionManager/UnsubscribeRequest None 2021-10-22 21:36:02 DEBUG (MainThread) [reolink.subscription_manager] Host 10.0.1.15: Connection error Cannot connect to host 10.0.1.15:8000 ssl:default [Connect call failed ('10.0.1.15', 8000)] 2021-10-22 21:36:02 ERROR (MainThread) [custom_components.reolink_dev.base] Host 10.0.1.15 error renewing the Reolink subscription 2021-10-22 21:36:02 DEBUG (MainThread) [reolink.subscription_manager] Reolink host 10.0.1.15 (Subscription) request data: hass qTDlgxyn4KnJeRldjthFVyh/2sI= 5TtZ69N3SxqKTagHWfws1Q== 2021-10-22T19:36:02.000Z http://10.0.1.8:8123/api/webhook/3a1b31f2029a5f902beda9356b883f3b00dcea8bc0c4c71e50920554366cee70 PT15M 2021-10-22 21:36:02 DEBUG (MainThread) [reolink.subscription_manager] Host 10.0.1.15: Connection error Cannot connect to host 10.0.1.15:8000 ssl:default [Connect call failed ('10.0.1.15', 8000)] 2021-10-22 21:36:02 ERROR (MainThread) [custom_components.reolink_dev.base] Host 10.0.1.15 error renewing the Reolink subscription 2021-10-22 21:36:02 DEBUG (MainThread) [reolink.subscription_manager] Reolink host 10.0.1.15 (Subscription) request data: hass z4PEu6dKx3FBFgmNA1Q5etAodA0= S+T5T9R+TvquWlV/0fShVQ== 2021-10-22T19:36:02.000Z http://10.0.1.8:8123/api/webhook/3a1b31f2029a5f902beda9356b883f3b00dcea8bc0c4c71e50920554366cee70 PT15M 2021-10-22 21:36:02 DEBUG (MainThread) [reolink.subscription_manager] Host 10.0.1.15: Connection error Cannot connect to host 10.0.1.15:8000 ssl:default [Connect call failed ('10.0.1.15', 8000)] 2021-10-22 21:36:02 DEBUG (MainThread) [reolink.subscription_manager] Host 10.0.1.15: Connection error Cannot connect to host 10.0.1.15:8000 ssl:default [Connect call failed ('10.0.1.15', 8000)] 2021-10-22 21:36:02 DEBUG (MainThread) [reolink.camera_api] send() HTTP Request params ={'token': 'c8bcc7f0bc6d5d1'} 2021-10-22 21:36:02 DEBUG (MainThread) [reolink.camera_api] send() HTTP Request body =[{'cmd': 'GetFtp', 'action': 1, 'param': {'channel': 0}}, {'cmd': 'GetEnc', 'action': 1, 'param': {'channel': 0}}, {'cmd': 'GetEmail', 'action': 1, 'param': {'channel': 0}}, {'cmd': 'GetIsp', 'action': 1, 'param': {'channel': 0}}, {'cmd': 'GetIrLights', 'action': 1, 'param': {'channel': 0}}, {'cmd': 'GetPtzPreset', 'action': 1, 'param': {'channel': 0}}, {'cmd': 'GetHddInfo', 'action': 1, 'param': {}}, {'cmd': 'GetAlarm', 'action': 1, 'param': {'Alarm': {'channel': 0, 'type': 'md'}}}, {'cmd': 'GetPushV20', 'action': 1, 'param': {'channel': 0}}, {'cmd': 'GetRecV20', 'action': 1, 'param': {'channel': 0}}] 2021-10-22 21:36:02 DEBUG (MainThread) [reolink.camera_api] send() HTTP Response status=200 content-type=(text/html) 2021-10-22 21:36:02 DEBUG (MainThread) [reolink.camera_api.data] send() HTTP Response data: [ { "cmd" : "Unknown", "code" : 1, "error" : { "detail" : "not support", "rspCode" : -9 } }, { "cmd" : "GetEnc", "code" : 0, "initial" : { "Enc" : { "audio" : 0, "channel" : 0, "mainStream" : { "bitRate" : 6144, "frameRate" : 30, "height" : 1920, "profile" : "High", "resolution" : 54, "size" : "2560*1920", "width" : 2560 }, "subStream" : { "bitRate" : 256, "frameRate" : 10, "height" : 480, "profile" : "High", "size" : "640*480", "width" : 640 } } }, "range" : { "Enc" : [ { "audio" : "boolean", "chnBit" : 15, "mainStream" : { "bitRate" : [ 1024, 1536, 2048, 3072, 4096, 5120, 6144, 7168, 8192 ], "default" : { "bitRate" : 6144, "frameRate" : 30 }, "frameRate" : [ 30, 25, 22, 20, 18, 16, 15, 12, 10, 8, 6, 4, 2 ], "height" : 1920, "profile" : [ "Base", "Main", "High" ], "resolution" : 54, "size" : "2560*1920", "width" : 2560 }, "subStream" : { "bitRate" : [ 64, 128, 160, 192, 256, 384, 512 ], "default" : { "bitRate" : 256, "frameRate" : 10 }, "frameRate" : [ 15, 10, 7, 4 ], "height" : 480, "profile" : [ "Base", "Main", "High" ], "resolution" : 28, "size" : "640*480", "width" : 640 } }, { "audio" : "boolean", "chnBit" : 15, "mainStream" : { "bitRate" : [ 1024, 1536, 2048, 3072, 4096, 5120, 6144, 7168, 8192 ], "default" : { "bitRate" : 6144, "frameRate" : 30 }, "frameRate" : [ 30, 25, 22, 20, 18, 16, 15, 12, 10, 8, 6, 4, 2 ], "height" : 1440, "profile" : [ "Base", "Main", "High" ], "resolution" : 41, "size" : "2560*1440", "width" : 2560 }, "subStream" : { "bitRate" : [ 64, 128, 160, 192, 256, 384, 512 ], "default" : { "bitRate" : 256, "frameRate" : 10 }, "frameRate" : [ 15, 10, 7, 4 ], "height" : 480, "profile" : [ "Base", "Main", "High" ], "resolution" : 28, "size" : "640*480", "width" : 640 } }, { "audio" : "boolean", "chnBit" : 15, "mainStream" : { "bitRate" : [ 1024, 1536, 2048, 3072, 4096, 5120, 6144, 7168, 8192 ], "default" : { "bitRate" : 6144, "frameRate" : 30 }, "frameRate" : [ 30, 25, 22, 20, 18, 16, 15, 12, 10, 8, 6, 4, 2 ], "height" : 1536, "profile" : [ "Base", "Main", "High" ], "resolution" : 32, "size" : "2048*1536", "width" : 2048 }, "subStream" : { "bitRate" : [ 64, 128, 160, 192, 256, 384, 512 ], "default" : { "bitRate" : 256, "frameRate" : 10 }, "frameRate" : [ 15, 10, 7, 4 ], "height" : 480, "profile" : [ "Base", "Main", "High" ], "resolution" : 28, "size" : "640*480", "width" : 640 } }, { "audio" : "boolean", "chnBit" : 15, "mainStream" : { "bitRate" : [ 1024, 1536, 2048, 3072, 4096, 5120, 6144, 7168, 8192 ], "default" : { "bitRate" : 6144, "frameRate" : 30 }, "frameRate" : [ 30, 25, 22, 20, 18, 16, 15, 12, 10, 8, 6, 4, 2 ], "height" : 1296, "profile" : [ "Base", "Main", "High" ], "resolution" : 34, "size" : "2304*1296", "width" : 2304 }, "subStream" : { "bitRate" : [ 64, 128, 160, 192, 256, 384, 512 ], "default" : { "bitRate" : 256, "frameRate" : 10 }, "frameRate" : [ 15, 10, 7, 4 ], "height" : 480, "profile" : [ "Base", "Main", "High" ], "resolution" : 28, "size" : "640*480", "width" : 640 } } ] }, "value" : { "Enc" : { "audio" : 0, "channel" : 0, "mainStream" : { "bitRate" : 6144, "frameRate" : 30, "height" : 1920, "profile" : "High", "resolution" : 54, "size" : "2560*1920", "width" : 2560 }, "subStream" : { "bitRate" : 256, "frameRate" : 10, "height" : 480, "profile" : "High", "resolution" : 28, "size" : "640*480", "width" : 640 } } } }, { "cmd" : "Unknown", "code" : 1, "error" : { "detail" : "not support", "rspCode" : -9 } }, { "cmd" : "GetIsp", "code" : 0, "initial" : { "Isp" : { "antiFlicker" : "Off", "backLight" : "Off", "blc" : 128, "blueGain" : 128, "channel" : 0, "dayNight" : "Auto", "drc" : 128, "exposure" : "Auto", "gain" : { "max" : 62, "min" : 1 }, "mirroring" : 0, "nr3d" : 1, "redGain" : 128, "rotation" : 0, "shutter" : { "max" : 125, "min" : 0 }, "whiteBalance" : "Auto" } }, "range" : { "Isp" : { "antiFlicker" : [ "Outdoor", "50HZ", "60HZ", "Off" ], "backLight" : [ "Off", "BackLightControl", "DynamicRangeControl" ], "bd_day" : { "bright" : { "max" : 0, "min" : 0 }, "dark" : { "max" : 0, "min" : 0 }, "mode" : [ "Auto", "Manual" ] }, "bd_led_color" : { "bright" : { "max" : 0, "min" : 0 }, "dark" : { "max" : 0, "min" : 0 }, "mode" : [ "Auto", "Manual" ] }, "bd_night" : { "bright" : { "max" : 0, "min" : 0 }, "dark" : { "max" : 0, "min" : 0 }, "mode" : [ "Auto", "Manual" ] }, "blc" : { "max" : 255, "min" : 0 }, "blueGain" : { "max" : 255, "min" : 0 }, "channel" : 0, "dayNight" : [ "Auto", "Color", "Black&White" ], "drc" : { "max" : 255, "min" : 0 }, "exposure" : [ "Auto", "LowNoise", "Anti-Smearing", "Manual" ], "gain" : { "max" : 100, "min" : 1 }, "mirroring" : "boolean", "nr3d" : "boolean", "redGain" : { "max" : 255, "min" : 0 }, "rotation" : "boolean", "shutter" : { "max" : 125, "min" : 0 }, "whiteBalance" : [ "Auto", "Manual" ] } }, "value" : { "Isp" : { "antiFlicker" : "Off", "backLight" : "Off", "blc" : 128, "blueGain" : 128, "channel" : 0, "dayNight" : "Auto", "drc" : 128, "exposure" : "Auto", "gain" : { "max" : 62, "min" : 1 }, "mirroring" : 0, "nr3d" : 1, "redGain" : 128, "rotation" : 0, "shutter" : { "max" : 125, "min" : 0 }, "whiteBalance" : "Auto" } } }, { "cmd" : "GetIrLights", "code" : 0, "initial" : { "IrLights" : { "state" : "Auto" } }, "range" : { "IrLights" : { "state" : [ "Auto", "Off" ] } }, "value" : { "IrLights" : { "state" : "Auto" } } }, { "cmd" : "GetPtzPreset", "code" : 1, "error" : { "detail" : "get config failed", "rspCode" : -12 } }, { "cmd" : "GetHddInfo", "code" : 0, "value" : { "HddInfo" : [ { "capacity" : 1892470, "format" : 1, "mount" : 1, "number" : 0, "size" : 702004, "storageType" : 1 } ] } }, { "cmd" : "Unknown", "code" : 1, "error" : { "detail" : "not support", "rspCode" : -9 } }, { "cmd" : "GetPushV20", "code" : 0, "initial" : { "Push" : { "enable" : 0, "schedule" : { "channel" : 0, "table" : { "AI_PEOPLE" : "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "AI_VEHICLE" : "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "MD" : "111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111" } } } }, "range" : { "Push" : { "enable" : "boolean", "schedule" : { "channel" : 0, "table" : { "AI_PEOPLE" : { "table" : { "maxLen" : 168, "minLen" : 168 } }, "AI_VEHICLE" : { "table" : { "maxLen" : 168, "minLen" : 168 } }, "MD" : { "table" : { "maxLen" : 168, "minLen" : 168 } } } } } }, "value" : { "Push" : { "enable" : 1, "schedule" : { "channel" : 0, "table" : { "AI_PEOPLE" : "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "AI_VEHICLE" : "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "MD" : "111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111" } } } } }, { "cmd" : "GetRecV20", "code" : 0, "initial" : { "Rec" : { "enable" : 1, "overwrite" : 1, "packTime" : "60 Minutes", "postRec" : "2 Minutes", "preRec" : 1, "schedule" : { "channel" : 0, "table" : { "AI_PEOPLE" : "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "AI_VEHICLE" : "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "MD" : "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "TIMING" : "111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111" } } } }, "range" : { "Rec" : { "enable" : "boolean", "overwrite" : "boolean", "packTime" : [ "30 Minutes", "45 Minutes", "60 Minutes" ], "postRec" : [ "1 Minute", "2 Minutes", "5 Minutes", "10 Minutes" ], "preRec" : "boolean", "schedule" : { "channel" : 0, "table" : { "AI_PEOPLE" : "boolean", "AI_VEHICLE" : "boolean", "MD" : "boolean", "TIMING" : "boolean" } } } }, "value" : { "Rec" : { "enable" : 1, "overwrite" : 1, "packTime" : "60 Minutes", "postRec" : "2 Minutes", "preRec" : 1, "schedule" : { "channel" : 0, "table" : { "AI_PEOPLE" : "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "AI_VEHICLE" : "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "MD" : "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "TIMING" : "111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111" } } } } } ] 2021-10-22 21:36:02 DEBUG (MainThread) [custom_components.reolink_dev] Finished fetching reolink data in 0.293 seconds (success: True) 2021-10-22 21:36:02 DEBUG (MainThread) [reolink.camera_api] send() HTTP Request params ={'token': '5732d6665e88f22'} 2021-10-22 21:36:02 DEBUG (MainThread) [reolink.camera_api] send() HTTP Request body =[{'cmd': 'GetFtp', 'action': 1, 'param': {'channel': 1}}, {'cmd': 'GetEnc', 'action': 1, 'param': {'channel': 1}}, {'cmd': 'GetEmail', 'action': 1, 'param': {'channel': 1}}, {'cmd': 'GetIsp', 'action': 1, 'param': {'channel': 1}}, {'cmd': 'GetIrLights', 'action': 1, 'param': {'channel': 1}}, {'cmd': 'GetPtzPreset', 'action': 1, 'param': {'channel': 1}}, {'cmd': 'GetHddInfo', 'action': 1, 'param': {}}, {'cmd': 'GetAlarm', 'action': 1, 'param': {'Alarm': {'channel': 1, 'type': 'md'}}}, {'cmd': 'GetPushV20', 'action': 1, 'param': {'channel': 1}}, {'cmd': 'GetRecV20', 'action': 1, 'param': {'channel': 1}}] 2021-10-22 21:36:02 DEBUG (MainThread) [reolink.camera_api] send() HTTP Response status=200 content-type=(text/html) 2021-10-22 21:36:02 DEBUG (MainThread) [reolink.camera_api.data] send() HTTP Response data: [ — You are receiving this because you commented. Reply to this email directly, view it on GitHub , or unsubscribe . Triage notifications on the go with GitHub Mobile for iOS or Android .
GitKiller-HA commented 2 years ago

Could you explain where can I turn it on ? I connected camera directly to my HA (via IP - PoE) without any additional devices. Should I set port forwarding on my router ? or another way ?

Thanks

cpainchaud commented 2 years ago

I don't have a NVR so I can't tell you. Onvif can be enabled only from an HDMI TV screen, it is all I know.

On Sun, Oct 24, 2021, 21:47 GitKiller-HA @.***> wrote:

Could you explain where can I turn it on ? I connected camera directly to my HA (via IP - PoE) without any additional devices. Should I set port forwarding on my router ? or another way ?

Thanks

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/fwestenberg/reolink_dev/issues/330#issuecomment-950383762, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTC5PXBMHOFRU2QOXUNSNTUIRPEXANCNFSM5GO3B7LA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

MacL3an commented 2 years ago

I am sorry for wasting everybody's time here. It seems the firmware upgrade reset the ONVIF setting, but since I can't see that setting from the web/app I didn't notice it at first. Once enabled things sort of work.

However, I have the same problem as described in this ticket, where the "clear" callback is never called. I will close this ticket.

MacL3an commented 2 years ago

Honestly NVRs are just making things complicated, you should configure this integration to login your camera directly.

How do I do this? Can I still have the camera connected to the NVR to use the hard drive, but connect HA directly to the cameras somehow? I haven't understood how to get the IP address of the camera.

cpainchaud commented 2 years ago

Try to find if cameras are getting an IP address on your network and access their webui

On Tue, Oct 26, 2021, 21:48 Håkan MacLean @.***> wrote:

Honestly NVRs are just making things complicated, you should configure this integration to login your camera directly.

How do I do this? Can I still have the camera connected to the NVR to use the hard drive, but connect HA directly to the cameras somehow? I haven't understood how to get the IP address of the camera.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/fwestenberg/reolink_dev/issues/330#issuecomment-952265180, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTC5PXCSKQWAOBGXY36BVDUI4H2BANCNFSM5GO3B7LA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

cpainchaud commented 2 years ago

Hmm, you should open a bug at Reolink about the missing 'clear' onvif webhooks call

On Tue, Oct 26, 2021, 21:46 Håkan MacLean @.***> wrote:

I am sorry for wasting everybody's time here. It seems the firmware upgrade reset the ONVIF setting, but since I can't see that setting from the web/app I didn't notice it at first. Once enabled things sort of work.

However, I have the same problem as described in this ticket https://github.com/fwestenberg/reolink_dev/issues/265, where the "clear" callback is never called. I will close this ticket.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/fwestenberg/reolink_dev/issues/330#issuecomment-952263653, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTC5PWRKF73VFZFJE2YWXTUI4HR5ANCNFSM5GO3B7LA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

MacL3an commented 2 years ago

Try to find if cameras are getting an IP address on your network and access their webui My "#€("=)(/" Apple Airport Extreme router doesn't show DHCP clients connected via cable, only wifi. But a network scan seems to indicate they are not on the same subnet (it only finds the NVR), so I'm guessing the NVR acts as its own DHCP client and gives the cameras IP addresses within it's own subnet? I've emailed Reolink about this.

MacL3an commented 2 years ago

Hmm, you should open a bug at Reolink about the missing 'clear' onvif webhooks call

Done! I'll get back to you with any info I get back re. this.

Electronlibre2012 commented 2 years ago

Hello,

Any advance @MacL3an please? same boat :(

thanks

mikhail-nikolaenko commented 1 year ago

Same to me with latest version. Cameras RLC-410W and RLC-511WA. All works acept detection. All sensors are unavailable.

mikhail-nikolaenko commented 1 year ago

By the way - I found my issue. My brand new cameras have all protocols disabled but https. So no RTSP, no RTMP, no ONVIF - all were disabled in the network/ports configuration.