I would like to trigger home assistant event like
trigger:
platform: event
event_type: camera_motion
from Synology Surveillance station on camera movement. You can there define action rule - external device.
Action can be defined by URL, user name and password. Can you help me how to trigger event based on this? I have tried somethink like https://abc.com/api/events/camera_motion but no sucess. I have https, password, hass 0.78.
Thank you for any help.
So what I had to do was set up the http component in my config with a trusted_network and provide the IP address of the Surveillance station. I also had to use IP not hostname.
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.
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.