fwestenberg / reolink_dev

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

Calls to unregistered webook #355

Closed swa72 closed 2 years ago

swa72 commented 2 years ago

Describe the bug I have a RLC-511WA camera (firmware v3.0.0.494_21073009), hooked up to HA (2021.11.1). I recently noticed lots of entries in my logs ...

2021-11-07 17:07:37 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 889a84bf42ba212a28429ae65e08fd87463622ee93f97b6cb87b42f631bcedb7 from 192.168.178.32
2021-11-07 17:07:41 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 889a84bf42ba212a28429ae65e08fd87463622ee93f97b6cb87b42f631bcedb7 from 192.168.178.32
2021-11-07 17:07:45 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 889a84bf42ba212a28429ae65e08fd87463622ee93f97b6cb87b42f631bcedb7 from 192.168.178.32
2021-11-07 17:07:49 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 889a84bf42ba212a28429ae65e08fd87463622ee93f97b6cb87b42f631bcedb7 from 192.168.178.32
2021-11-07 17:07:53 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 889a84bf42ba212a28429ae65e08fd87463622ee93f97b6cb87b42f631bcedb7 from 192.168.178.32

I then turned on debugging. Excerpt of log are attached.

2021-11-07 17:25:34 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 3d78f4ce843b6b15114dc2f17c9b4110366e69249f2982b6d7d133a36553f948 from 192.168.178.32
2021-11-07 17:25:37 DEBUG (MainThread) [custom_components.reolink_dev.base] Webhook called
2021-11-07 17:25:37 DEBUG (MainThread) [reolink.camera_api] send() HTTP Request params ={'token': '55398ed602c50df'}
2021-11-07 17:25:37 DEBUG (MainThread) [reolink.camera_api] send() HTTP Request body =[{'cmd': 'GetMdState', 'action': 0, 'param': {'channel': 0}}, {'cmd': 'GetAiState', 'action': 0, 'param': {'channel': 0}}]
2021-11-07 17:25:37 DEBUG (MainThread) [reolink.camera_api] send() HTTP Response status=200 content-type=(text/html)
2021-11-07 17:25:37 DEBUG (MainThread) [reolink.camera_api.data] send() HTTP Response data: [
   {
      "cmd" : "GetMdState",
      "code" : 0,
      "value" : {
         "state" : 1
      }
   },
   {
      "cmd" : "GetAiState",
      "code" : 0,
      "value" : {
         "channel" : 0,
         "face" : {
            "alarm_state" : 0,
            "support" : 0
         },
         "people" : {
            "alarm_state" : 0,
            "support" : 1
         },
         "vehicle" : {
            "alarm_state" : 0,
            "support" : 1
         }
      }
   }
]

2021-11-07 17:25:38 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 3d78f4ce843b6b15114dc2f17c9b4110366e69249f2982b6d7d133a36553f948 from 192.168.178.32
2021-11-07 17:25:41 DEBUG (MainThread) [custom_components.reolink_dev.base] Webhook called
2021-11-07 17:25:41 DEBUG (MainThread) [reolink.camera_api] send() HTTP Request params ={'token': '55398ed602c50df'}
2021-11-07 17:25:41 DEBUG (MainThread) [reolink.camera_api] send() HTTP Request body =[{'cmd': 'GetMdState', 'action': 0, 'param': {'channel': 0}}, {'cmd': 'GetAiState', 'action': 0, 'param': {'channel': 0}}]
2021-11-07 17:25:41 DEBUG (MainThread) [reolink.camera_api] send() HTTP Response status=200 content-type=(text/html)
2021-11-07 17:25:41 DEBUG (MainThread) [reolink.camera_api.data] send() HTTP Response data: [
   {
      "cmd" : "GetMdState",
      "code" : 0,
      "value" : {
         "state" : 1
      }
   },
   {
      "cmd" : "GetAiState",
      "code" : 0,
      "value" : {
         "channel" : 0,
         "face" : {
            "alarm_state" : 0,
            "support" : 0
         },
         "people" : {
            "alarm_state" : 0,
            "support" : 1
         },
         "vehicle" : {
            "alarm_state" : 0,
            "support" : 1
         }
      }
   }
]

2021-11-07 17:25:42 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 3d78f4ce843b6b15114dc2f17c9b4110366e69249f2982b6d7d133a36553f948 from 192.168.178.32
2021-11-07 17:25:45 DEBUG (MainThread) [custom_components.reolink_dev.base] Webhook called
2021-11-07 17:25:45 DEBUG (MainThread) [reolink.camera_api] send() HTTP Request params ={'token': '55398ed602c50df'}
2021-11-07 17:25:45 DEBUG (MainThread) [reolink.camera_api] send() HTTP Request body =[{'cmd': 'GetMdState', 'action': 0, 'param': {'channel': 0}}, {'cmd': 'GetAiState', 'action': 0, 'param': {'channel': 0}}]
2021-11-07 17:25:45 DEBUG (MainThread) [reolink.camera_api] send() HTTP Response status=200 content-type=(text/html)
2021-11-07 17:25:45 DEBUG (MainThread) [reolink.camera_api.data] send() HTTP Response data: [
   {
      "cmd" : "GetMdState",
      "code" : 0,
      "value" : {
         "state" : 1
      }
   },
   {
      "cmd" : "GetAiState",
      "code" : 0,
      "value" : {
         "channel" : 0,
         "face" : {
            "alarm_state" : 0,
            "support" : 0
         },
         "people" : {
            "alarm_state" : 0,
            "support" : 1
         },
         "vehicle" : {
            "alarm_state" : 0,
            "support" : 1
         }
      }
   }
]

2021-11-07 17:25:46 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 3d78f4ce843b6b15114dc2f17c9b4110366e69249f2982b6d7d133a36553f948 from 192.168.178.32
2021-11-07 17:25:49 DEBUG (MainThread) [custom_components.reolink_dev.base] Webhook called
2021-11-07 17:25:49 DEBUG (MainThread) [reolink.camera_api] send() HTTP Request params ={'token': '55398ed602c50df'}
2021-11-07 17:25:49 DEBUG (MainThread) [reolink.camera_api] send() HTTP Request body =[{'cmd': 'GetMdState', 'action': 0, 'param': {'channel': 0}}, {'cmd': 'GetAiState', 'action': 0, 'param': {'channel': 0}}]
2021-11-07 17:25:49 DEBUG (MainThread) [reolink.camera_api] send() HTTP Response status=200 content-type=(text/html)
2021-11-07 17:25:49 DEBUG (MainThread) [reolink.camera_api.data] send() HTTP Response data: [
   {
      "cmd" : "GetMdState",
      "code" : 0,
      "value" : {
         "state" : 1
      }
   },
   {
      "cmd" : "GetAiState",
      "code" : 0,
      "value" : {
         "channel" : 0,
         "face" : {
            "alarm_state" : 0,
            "support" : 0
         },
         "people" : {
            "alarm_state" : 0,
            "support" : 1
         },
         "vehicle" : {
            "alarm_state" : 0,
            "support" : 1
         }
      }
   }
]

2021-11-07 17:25:50 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 3d78f4ce843b6b15114dc2f17c9b4110366e69249f2982b6d7d133a36553f948 from 192.168.178.32
cpainchaud commented 2 years ago

This is normal after a restart because Reolink firmware doesn't support onvif deregistering. It should stop after 15mins maximum.