# Receive lan webhook with camera snapshot (surveillance station) in home assistant

**URL:** <https://discourse.nodered.org/t/receive-lan-webhook-with-camera-snapshot-surveillance-station-in-home-assistant/66961>\
**Category:** General\
**Tags:** home-assistant\
**Created:** [26 August 2022 10:28 UTC](https://discourse.nodered.org/t/receive-lan-webhook-with-camera-snapshot-surveillance-station-in-home-assistant/66961 "2022-08-26T10:28:21Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![PdeJ](https://avatars.discourse-cdn.com/v4/letter/p/c89c15/32.png) [@PdeJ](https://discourse.nodered.org/u/PdeJ)\
**Post date:** [28 August 2022 02:27 UTC](https://discourse.nodered.org/t/receive-lan-webhook-with-camera-snapshot-surveillance-station-in-home-assistant/66961/21 "2022-08-28T02:27:10Z")

</div>

Sorry can't help you there. I don't use Home Assistant, haven't seen the need, just Node Red. I use piVPN on my network so that I can access the Node Red dashboard remotely and the system is armed when personal mobile phones are out of the house (ie off the network). I receive notifications of motion activity from the PIR or camera all sent through Node Red to my to my mobile via Twitter.

---

<div class="post-metadata">

**Author:** ![djseek](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/djseek/32/67001_2.png) [@djseek](https://discourse.nodered.org/u/djseek)\
**Post date:** [28 August 2022 02:40 UTC](https://discourse.nodered.org/t/receive-lan-webhook-with-camera-snapshot-surveillance-station-in-home-assistant/66961/22 "2022-08-28T02:40:04Z")

</div>

no worries. can you share the url (with sensitive details hidden of course) that you use to post http request into rednode from Lan ? (http in)? keen to see how you format it

as i'm only dealing with node red now.

@PdeJ

---

<div class="post-metadata">

**Author:** ![PdeJ](https://avatars.discourse-cdn.com/v4/letter/p/c89c15/32.png) [@PdeJ](https://discourse.nodered.org/u/PdeJ)\
**Post date:** [28 August 2022 03:38 UTC](https://discourse.nodered.org/t/receive-lan-webhook-with-camera-snapshot-surveillance-station-in-home-assistant/66961/23 "2022-08-28T03:38:58Z")

</div>

I don't really understand by what you auth into node red. I assume you too are using MotionEYE, and I showed you an exmaple of a webhook re File Storage in MotionEye. The Http address is that of your computer running MotionEYE on your lan. In Node red you use the same name for the webhook (unlike my example of the Node Red Http In node where I now call it webhook\_Img rather than just wehook).  
When MotionEYE detects activity the Node Red 'Webhook' node outputs a msg object containing information in the part req.\_parsedUrl.query which gives the date and name of the file, so we can then get the url to make an http request for the relevant file to display

---

<div class="post-metadata">

**Author:** ![djseek](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/djseek/32/67001_2.png) [@djseek](https://discourse.nodered.org/u/djseek)\
**Post date:** [28 August 2022 03:49 UTC](https://discourse.nodered.org/t/receive-lan-webhook-with-camera-snapshot-surveillance-station-in-home-assistant/66961/24 "2022-08-28T03:49:00Z")

</div>

Sorry yes you have. What do you use as auth tho? Looks like there is no auth in your call? (In motion eye webhook)

I managed to get a response by disabling auth and updating my webhook from: [http://192.168.1.101:1880/endpoint/porch](http://192.168.1.101:1880/endpoint/porch) to [http://192.168.1.101:1880/](http://192.168.1.101:1880/)

so will keep playing with it and use your info which will be a massive help  
Thanks for all your help

---

<div class="post-metadata">

**Author:** ![PdeJ](https://avatars.discourse-cdn.com/v4/letter/p/c89c15/32.png) [@PdeJ](https://discourse.nodered.org/u/PdeJ)\
**Post date:** [29 August 2022 10:57 UTC](https://discourse.nodered.org/t/receive-lan-webhook-with-camera-snapshot-surveillance-station-in-home-assistant/66961/25 "2022-08-29T10:57:36Z")

</div>

Hope you are making progress. I seem to recall the author of MotionEYE saying there was an issue in using webhooks with passwords, but that was a long time ago so it may have been addressed. I do not have an auth as I haven't set a password for MotionEYE (perhaps I should), but I only use it over lan or access my network through a raspberry pi running piVPN. As I think I said, I don't use Home Assistant just Node Red..

---

<div class="post-metadata">

**Author:** ![djseek](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/djseek/32/67001_2.png) [@djseek](https://discourse.nodered.org/u/djseek)\
**Post date:** [29 August 2022 11:22 UTC](https://discourse.nodered.org/t/receive-lan-webhook-with-camera-snapshot-surveillance-station-in-home-assistant/66961/26 "2022-08-29T11:22:20Z")

</div>

I made some thank you. Got the webhook responding so have it alerting via home assistant mobile app. . Still working on snapshots.  
Thank you

[Previous page](https://discourse.nodered.org/t/receive-lan-webhook-with-camera-snapshot-surveillance-station-in-home-assistant/66961.md?page=1)
