Surveillance station camera motion detection in hass

Yes I have SSL lets encrypt. I dont know nginx. Do you have some tutorial you can recommend?

It is a lot of work, I would think there is a better way for you to get around it… I’ll have to think.

Can you access HA from your local network via HTTPS?

so https://abc.com

Yes I can access it this way. I have tried trigger event also via domain name but “nothing happen” also no error log. Do you know if authentication from Surveillance via user name and password works? I was thinking also to start another HA instance without SSL and password and send event via MQTT. But this is “big” workaround.

Yeah that seems like a lot of work. I was not able to get the hostname working so I had to use IP. The thing is the SSL is going to fail when you try to hit it via the IP because the cert is for the hostname not the IP.

I think the username and password is for basic auth which HA doesn’t use.

Check out this thread. I have it working by activating a script using the Action Rules.

Thanks for tip. Is this working with SSL and password authentication?

No SSL on HA but it is running the latest version with the new auth system.

This scripts calling from synology works with trusted_networks and http. Unfortunately not with https.

Maybe the new webhooks feature in 0.80 is a solution?

Good tip, will check it. Thank

I have this working using Actions on Surveillance Station and a webhook on HA.

http://10.0.1.32:8123/api/webhook/east_terrace_camera

For Example:

- alias: East Terrace Camera Detection
  initial_state: 'on'
  trigger:
  - platform: webhook
    webhook_id: east_terrace_camera
  action:
    - service: tts.google_say
      data:
       entity_id: media_player.kitchen_speaker
       message: "Motion detected by East Terrace camera"
    - service: notify.mobile_app_ash_x
      data:
        message: "East Terrace camera motion detected"

Works a treat.

Sadly, this has now stopped working. @jsg4 is having the same issue.

When the webook…

http://10.0.1.32:8123/api/webhook/carpark_camera_motion

…is entered in a browser I now get…

405: Method Not Allowed

…whereas before I’d get a ‘success’ message and my HA automation would trigger successfully when the webhook was actioned by ST.

This leads me to believe that the issue is HA related, rather than Surveillance Station, but I don’t know where to look for the issue.

Does anyone here have any idea how to get me started with a fix?

1 Like

I have tried to inspect what’s fired from Surveillance Station and it looks like a GET request instead of a POST request. I’m not sure if that’s the issue but I remember reading HA needed a POST one. What’s strange is that I downgraded to the previous version which came out in January and it seems like the same, but I know that was working as expected for a lot of people.

I’m pretty sure it’s not SS as I’ve not had my Synology that long so it’s unlikely an update that broke it.

I think it’s something in HA since I updated to 0.94.3, but can’t be sure of that.

Awesome and that makes sense. Would love a fix!

@w1ll1am23 can you help at all

Unfortunately I don’t have any way to test this out. I am in the process of moving/selling my place so I took down all my HA stuff and cameras.

Regardless of whether Surveillance Station is being used or not, to my understanding, entering http://10.0.1.32:8123/api/webhook/carpark_camera_motion into a browser address bar should deliver a ‘success’ message, as it used to, rather than a ‘405: Method Not Allowed’ message.

Unfortunately, I do not yet have the skills to work out why this has changed in HA.

So the auth system has changed in HA do you have the computer you are hitting that endpoint from set in allowed network auth providers? I would think if that was the issue you would get a 401 not a 405 but still could be something