jayha
(jay)
March 31, 2017, 11:34pm
1
HI,
I have the test / amcrest camera: here is my configuration:
# Cameras
camera:
- platform: amcrest
host: 10.10.1.224
port: 9080
name: kitchen
username: user
password: pass
here is the error i get:
Error: HTTPConnectionPool(host='10.10.1.224', port=9080): Max retries exceeded with url: /cgi-bin/global.cgi?action=getCurrentTime (Caused by ReadTimeoutError("HTTPConnectionPool(host='10.10.1.224', port=9080): Read timed out. (read timeout=3.0)",))
You will need to restart hass after fixing.
please help.
Is your camera using port 9080?
jayha
(jay)
April 2, 2017, 1:02pm
3
yes, i have it configured port 9080
Although not a solution, what happens if you go with your browser to the following URL:
http://10.10.1.224:9080//cgi-bin/global.cgi?action=getCurrentTime
1 Like
shivan
April 8, 2017, 1:59am
6
Did you get your Amcrest camera going? I just got an IP2M-841W and Iām having a lot of trouble.
jayha
(jay)
April 8, 2017, 2:01am
7
yes, but i cant get more than 1 to workā¦ if I add the second one in the config file it seems HA wont come upā¦
do you have 1 or more?
shivan
April 8, 2017, 2:02am
8
No. I only have the one camera. I tried adding it and it just looks awful.
jayha
(jay)
April 8, 2017, 2:05am
9
have you checked if its one of the supported models? what exactly is the error?
shivan
April 8, 2017, 2:15am
10
Yes, I checked compatibility on this list:
Itās the IP2M-841W, so it should be good.
I tried copying how you had yours set up with the port number and everything.
- platform: amcrest
host: 192.168.1.3
port: 9080
name: Lincoln
stream_source: snapshot
username: !secret camera_username
password: !secret camera_password
With this config I get the following error in Home Assistant:
17-04-06 23:06:50 WARNING (Thread-7) [requests.packages.urllib3.connectionpool] Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ReadTimeoutError("HTTPConnectionPool(host='192.168.1.3', port=9080): Read timed out. (read timeout=3.0)",)': /cgi-bin/snapshot.cgi?=channel=0
Iāll get a still image with that config, then after a while the camera crashes.
Iāve also tried using low resolution rather than a snapshot stream source. With that config the video feed is horrible in quality and only stays up for about 5 seconds before it freezes.
jayha
(jay)
April 8, 2017, 2:20am
11
shivan:
stream_source: snapshot
what happens if you leave the above outā¦? I am not using it and seems to work okā¦
shivan
April 8, 2017, 2:23am
12
If I donāt specify stream_source or resolution then I donāt get any picture at all since the camera doesnāt use MJPEG encoding.
jayha
(jay)
April 8, 2017, 2:29am
13
only other thing i can think of checking is the port your camera is running on is that http port? i used the amcrest ip cam software to check these portsā¦
i had 9080 show up as tcp port (configured in my android App), and 9083 show up as http portā¦
shivan
April 8, 2017, 2:34am
14
The port was the http port. By default it was port 80. I manually changed it to 9080.
shivan
April 8, 2017, 2:49am
15
Before I changed the port number or anything I was getting the same error that you were. What did you have to do to fix that?
jayha
(jay)
April 8, 2017, 2:08pm
16
in my instance the camera per its software was running on tcp 9080 and http 9083.
this was ānewsā to me since i though i was only running it on 9080 the port config i had changed from 80ā¦
i update my configs in HA to use 9083 instead of 9080.
kembo
May 13, 2017, 5:52pm
17
Did you solve the issue?
I am about to buy the same camera but I wanted to ensure it works with HA.
Any feedback on the camera with HA?
Thanks
shivan
May 16, 2017, 9:17pm
18
The camera works with HA, but there are some issues with it right now with the live feed. The developer has been working on it, and I think heās got a workaround, though I havenāt tested it yet. Hereās the thread where itās discussed:
Guys, I spent some time trying to make it work, however after some researching it seems that due to the HTTPDigest auth, aiohttp cannot be used yet. Please let me know if Iām wrong here.
Looking other codes like camera/generic.py, camera/mjpeg.py it seems to behave the same way.
Having said this, I kept the sensor/amcrest configured for the automation and motion_sensor but for the camera component Iām using camera/ffmpeg which is working great. Basically the configuration was:
# camera.yamlā¦
@kembo @shivan
Guys, I posted a PR today to generate the stream via RTSP
via ffmpeg
.
home-assistant:dev
ā tchellomello:amcrest_ffmpeg
opened 03:39AM - 18 May 17 UTC
This will be a good workaround while aiohttp
does not support HTTPDigest
authentication for the newer firmware.
shivan
June 6, 2017, 2:22am
20
Iāve been using this solution for a couple weeks now and it works great in low resolution. When I try it in high resolution the picture locks up. Is there something I can do to try and improve it?
Thanks again for all your hard work.