Hello there @alexandresalome, awesome write-up!! Thanks a million for putting this all together in the first place.
I’ve been carefully following it step by step and started troubleshooting the different steps when I tried it end-to-end and wouldn’t work. So far I managed to “unit test” steps 1 up to 7 but I got stuck in number 7. I would swear that the rest API call isn’t successful:
Marcs-Air:~ marc$ curl -XPOST http://192.168.1.5:7999/1/detection/start
curl: (52) Empty reply from server
Marcs-Air:~ marc$ curl -XPOST http://192.168.1.5:7999/1/detection/stop
curl: (52) Empty reply from server
I think it is important to state that I’m running the duckdns add-on. I’m saying this because in step #4 I had to fine tune the commands like this
from:
curl -XPOST http://home-assistant:8123/api/webhook/motioneye-camera1-started
to
curl -XPOST https://MYDUCKDNSADDRESS.ORG:8123/api/webhook/motioneye-camera1-started
(note that I have a local definition in my router in /etc/hosts to redirect the lookup of MYDUCKDNSADDRESS.ORG to the local IP
Marcs-Air:~ marc$ nslookup MYDUCKDNSADDRESS.ORG
Server: 192.168.1.1
Address: 192.168.1.1#53
Name: MYDUCKDNSADDRESS.ORG
Address: 192.168.1.5
I’ve now tested both over http
Marcs-Air:~ marc$ curl -XPOST http://192.168.1.5:7999/1/detection/start
curl: (52) Empty reply from server
Marcs-Air:~ marc$ curl -XPOST http://192.168.1.5:7999/1/detection/stop
curl: (52) Empty reply from server
and over https
Marcs-Air:~ marc$ curl -XPOST https://192.168.1.5:7999/1/detection/start
curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to 192.168.1.5:7999
and it won’t work. Motioneye won’t display any change in the toggle for motion detection and I don’t get any notification email either.
If I do a telnet into the port, I do see that a service is listening. And if I check the add-on log, I see I’m warned about the lack of authentication and the lack of encryption, so I’m ruling out the add on being not properly configured.
Marcs-Air:~ marc$ telnet 192.168.1.5 7999
Trying 192.168.1.5...
Connected to MYDUCKDNSADDRESS.ORG.
Escape character is '^]'.
^C
Anybody running motioneye as an add-on and duckdns add-on could help me finish this up? Should the REST calls above change this section in all my defined cameras at once or is there any global setting hidden somewhere?
thanks!!