fwestenberg / reolink_dev

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

Webhook not removed from Reolink camera after removing and readding the reolink_dev integration #141

Open MrHollowPS opened 3 years ago

MrHollowPS commented 3 years ago

Describe the bug There are webhook calls from the camera after i removed it and readded it in home assistant.

2021-01-23 22:32:23 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 95961fff1ddadc77ba480c981f298a4f792f2a3bce2bee03ca92fb7427637e4a from 10.1.1.36 2021-01-23 22:32:27 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 95961fff1ddadc77ba480c981f298a4f792f2a3bce2bee03ca92fb7427637e4a from 10.1.1.36

To Reproduce 1) Add a Reolink camera using the reolink_dev integration 2) Remove the camera integration 3) Re-add the same Reolink camera

Expected behavior When removing the integration from home assistant, the webhook is removed from the camera

Screenshots If applicable, add screenshots to help explain your problem.

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

fwestenberg commented 3 years ago

Thanks! I just found the issue, will add this to the next release.

MrHollowPS commented 3 years ago

Awesome. Will this fix previous issues? How can i remove the webhook from the camera without resetting it?

fwestenberg commented 3 years ago

This should indeed fix the issue mentioned here. Why would you remove the webhook? If you: remove the camera integration or restart HA, the webhook and subscription will also be removed. After readd or restart, it get generated again.

leleboss commented 3 years ago

Hello all! same problem today with everything updated, The strange thing is that I have 7 cameras and the problem is only present on 5

Received message for unregistered webhook 2a5c90f8345c63c328dedad216f76631a67acca56eb21a5fd885ccf6c8d136ea from 10.0.0.242 Received message for unregistered webhook 7cce0313e750fc263362f8aad104d3ec1b9416f1d3ab09116375a0d661c4805a from 10.0.0.245 Received message for unregistered webhook 5cd6b444a27c840bdd528fda9ab58f963bef5c44def9808826c84ad17e654b7c from 10.0.0.246 Received message for unregistered webhook b34d17b4415954942860a983e679386c17c766d692d915d813b9d77bbb0630ec from 10.0.0.241 Received message for unregistered webhook 39b200371658905e93c1bd79493d4b6bad9c3ff7e3c175be2f415062f1b3cbfe from 10.0.0.243

ijustlikeit commented 3 years ago

Fresh install of integration with camera RLC-511 model and receiving messages: Received message for unregistered webhook 324e03648e00fbf71cb6bff931222ce45af1098437d94421bfd5878d904cf20d from 192.168.x.1xx 9:46:05 PM – Webhook (WARNING) - message first occurred at 9:37:25 PM and shows up 28 times

fwestenberg commented 3 years ago

This is not something to be concerned about. The camera currently has a bug it seems, so the unsubscribe is not working well. This means, the camera keeps sending motion events to the unregistered webhook for approximately 15m after you reboot or reload. After this time, it expires and will only send the events to the new webhook.

t0bse commented 3 years ago

Fresh install of integration with camera RLC-511 model and receiving messages: Received message for unregistered webhook 324e03648e00fbf71cb6bff931222ce45af1098437d94421bfd5878d904cf20d from 192.168.x.1xx 9:46:05 PM – Webhook (WARNING) - message first occurred at 9:37:25 PM and shows up 28 times

511w here:

2021-02-28 20:58:25 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 129f67a10e4c78c6eb45acda8e54566e2ed1b59c8dfa57dc5589288b4cf2bd68 from 10.1.3.110 2021-02-28 20:58:26 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook c41b5fd414b5db52996391849ae57cc305a97b9bcc51d1512839f86b0fd37761 from 10.1.3.110 2021-02-28 20:58:29 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 129f67a10e4c78c6eb45acda8e54566e2ed1b59c8dfa57dc5589288b4cf2bd68 from 10.1.3.110 2021-02-28 20:58:30 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook c41b5fd414b5db52996391849ae57cc305a97b9bcc51d1512839f86b0fd37761 from 10.1.3.110 2021-02-28 20:58:33 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 129f67a10e4c78c6eb45acda8e54566e2ed1b59c8dfa57dc5589288b4cf2bd68 from 10.1.3.110 2021-02-28 20:58:34 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook c41b5fd414b5db52996391849ae57cc305a97b9bcc51d1512839f86b0fd37761 from 10.1.3.110 2021-02-28 20:58:38 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 129f67a10e4c78c6eb45acda8e54566e2ed1b59c8dfa57dc5589288b4cf2bd68 from 10.1.3.110 2021-02-28 20:58:39 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook c41b5fd414b5db52996391849ae57cc305a97b9bcc51d1512839f86b0fd37761 from 10.1.3.110 2021-02-28 20:58:41 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 129f67a10e4c78c6eb45acda8e54566e2ed1b59c8dfa57dc5589288b4cf2bd68 from 10.1.3.110 2021-02-28 20:58:42 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook c41b5fd414b5db52996391849ae57cc305a97b9bcc51d1512839f86b0fd37761 from 10.1.3.110 2021-02-28 20:58:45 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 129f67a10e4c78c6eb45acda8e54566e2ed1b59c8dfa57dc5589288b4cf2bd68 from 10.1.3.110 2021-02-28 20:58:46 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook c41b5fd414b5db52996391849ae57cc305a97b9bcc51d1512839f86b0fd37761 from 10.1.3.110 2021-02-28 20:58:50 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 129f67a10e4c78c6eb45acda8e54566e2ed1b59c8dfa57dc5589288b4cf2bd68 from 10.1.3.110 2021-02-28 20:58:51 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook c41b5fd414b5db52996391849ae57cc305a97b9bcc51d1512839f86b0fd37761 from 10.1.3.110

lindsaymarkward commented 3 years ago

While we may not be concerned, is there a way to fix the problem of getting so many of these errors in logs for 15 minutes? Thanks!

DarwinData commented 3 years ago

Also getting the webhook warning cluttering my logs. This is on a fresh install of the add-on. Can this be fixed? thanks

richsimpson commented 3 years ago

Same but my feeds drop out too image