Problem with Zoneminder component in Homeassistant
Posted: Tue Oct 15, 2019 6:23 pm
Hi,
I have a problem when using the Zoneminder component in Homeassistant. It won't let me login, gives me error "Connection error logging into ZoneMinder. I have tried both ip-address and domainname as host but cannot get it to work.
Then I thought that I can use the API with curl commands instead and see if that would work. I get the error below. I am using zmeventnotification and that works like a charm.
johnny@UBUNTU:~$ curl -XPOST -c cookies.txt -d "user=username&pass=password&stateful=1" https://mydomain.com:443/zm/api/host/login.json
{"success":false,"data":{"name":"Login denied for user "username"","message":"Login denied for user "username"","url":"\/zm\/api\/host\/login.json","exception":{"class":"UnauthorizedException","code":401,"message":"Login denied for user \"username\""}}}
I think there might be the same problem for both Homeassistant component and Zoneminder API.
Any ideas?
I have a problem when using the Zoneminder component in Homeassistant. It won't let me login, gives me error "Connection error logging into ZoneMinder. I have tried both ip-address and domainname as host but cannot get it to work.
Then I thought that I can use the API with curl commands instead and see if that would work. I get the error below. I am using zmeventnotification and that works like a charm.
johnny@UBUNTU:~$ curl -XPOST -c cookies.txt -d "user=username&pass=password&stateful=1" https://mydomain.com:443/zm/api/host/login.json
{"success":false,"data":{"name":"Login denied for user "username"","message":"Login denied for user "username"","url":"\/zm\/api\/host\/login.json","exception":{"class":"UnauthorizedException","code":401,"message":"Login denied for user \"username\""}}}
I think there might be the same problem for both Homeassistant component and Zoneminder API.
Any ideas?