Hassio version .059.2 cameras not working

Hassio 05.59.2
camera:

  • platform: amcrest
    amcrest:
  • host: 192.168.1.74
    username: admin
    password: 5656lyte
    sensors:
    • motion_detector
    • sdcard
  • host: 192.168.1.81
    username: admin
    password: 5656lyte
    sensors:
    • motion_detector
    • sdcard
  • host: 192.168.1.93
    username: admin
    password: 5656lyte
    sensors:
    • motion_detector
    • sdcard
  • host: 192.168.1.83
    username: admin
    password: 5656lyte
    sensors:
    • motion_detector
    • sdcard
      group:
      security_cameras:
      name: all_camerias
      entities:
    • camera.amcrest_camera
    • camera.amcrest_camera_2
    • camera.amcrest_camera_3
    • camera.amcrest_camera_4
      cameria_view:
      name: cameras_all
      view: yes
      entities:
    • group.security_cameras
      Worked perfectly in previous version of hassio 58 showing each camera. In stlled .059.2 and now all camera’s show same image of only the last camera.

Log is as follows:

2017-12-08 13:17:23 WARNING (MainThread) [homeassistant.setup] Setup of notify is taking over 10 seconds.
2017-12-08 13:17:24 WARNING (MainThread) [homeassistant.setup] Setup of sensor is taking over 10 seconds.
2017-12-08 13:17:24 WARNING (MainThread) [homeassistant.setup] Setup of climate is taking over 10 seconds.
2017-12-08 13:17:24 WARNING (MainThread) [homeassistant.setup] Setup of camera is taking over 10 seconds.
2017-12-08 13:17:25 WARNING (MainThread) [homeassistant.setup] Setup of tts is taking over 10 seconds.
2017-12-08 13:17:25 ERROR (SyncWorker_4) [homeassistant.components.notify.smtp] Login not possible. Please check your setting and/or your credentials
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/homeassistant/components/notify/smtp.py”, line 120, in connection_is_valid
server = self.connect()
File “/usr/lib/python3.6/site-packages/homeassistant/components/notify/smtp.py”, line 113, in connect
mail.login(self.username, self.password)
File “/usr/lib/python3.6/smtplib.py”, line 729, in login
raise last_exception
File “/usr/lib/python3.6/smtplib.py”, line 720, in login
initial_response_ok=initial_response_ok)
File “/usr/lib/python3.6/smtplib.py”, line 641, in auth
raise SMTPAuthenticationError(code, resp)
smtplib.SMTPAuthenticationError: (534, b’5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbvt\n5.7.14 u5Qg0sQx6ajq9I3IW_I_pywZcTBTLm31hCYTTwY3WF3sXIfdo2EjBjgkpnf_EMNjv2yrwi\n5.7.14 jMmyJLqwg3rMDyIeHVleVh0M6Ndc0FplWIfgADw0RdQYsA0AG7ejBJyJ_T0bMOIruvlpfJ\n5.7.14 sM4xS43BIMcX_6pIw4sUW9kffnMHp7pZW9t5zqfCmEYYeJNI531J5jzpF_zCGwMQTv7gEG\n5.7.14 F8uFsSIhcTEvNi6V_9vCNfu4hze-E> Please log in via your web browser and\n5.7.14 then try again.\n5.7.14 Learn more at\n5.7.14 https://support.google.com/mail/answer/78754 q24sm3917392otd.61 - gsmtp’)
2017-12-08 13:17:25 ERROR (MainThread) [homeassistant.components.notify] Failed to initialize notification service smtp
2017-12-08 13:17:35 WARNING (MainThread) [homeassistant.components.sensor.yr] Retrying in 15 minutes: Cannot connect to host aa015h6buqvih86i1.api.met.no:443 ssl:True [Try again]
2017-12-08 13:17:47 WARNING (SyncWorker_17) [urllib3.connectionpool] Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProtocolError(‘Connection aborted.’, RemoteDisconnected(‘Remote end closed connection without response’,))’: /cgi-bin/snapshot.cgi?channel=0
2017-12-08 13:17:54 WARNING (SyncWorker_15) [netdisco.ssdp] Error fetching description at http://192.168.1.102:49152/wps_device.xml
2017-12-08 13:17:57 WARNING (SyncWorker_13) [urllib3.connectionpool] Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProtocolError(‘Connection aborted.’, RemoteDisconnected(‘Remote end closed connection without response’,))’: /cgi-bin/snapshot.cgi?channel=0
2017-12-08 13:23:09 WARNING (SyncWorker_13) [netdisco.ssdp] Found malformed XML at http://192.168.1.98:9080: status=ok
2017-12-08 13:27:37 WARNING (MainThread) [homeassistant.helpers.condition] Value cannot be processed as a number: idle
2017-12-08 13:32:40 WARNING (MainThread) [homeassistant.components.sensor.yr] Retrying in 15 minutes: Cannot connect to host aa015h6buqvih86i1.api.met.no:443 ssl:True [Try again]
2017-12-08 13:37:09 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.amcrest_camera_motion_detected_2 is taking over 10 seconds
2017-12-08 13:37:09 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.amcrest_camera_motion_detected is taking over 10 seconds
2017-12-08 13:37:09 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.amcrest_camera_sd_used_2 is taking over 10 seconds
2017-12-08 13:37:09 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.amcrest_camera_sd_used is taking over 10 seconds
2017-12-08 13:37:09 WARNING (MainThread) [homeassistant.components.sensor] Updating amcrest sensor took longer than the scheduled update interval 0:00:10
2017-12-08 13:47:46 WARNING (MainThread) [homeassistant.components.sensor.yr] Retrying in 15 minutes: Cannot connect to host aa015h6buqvih86i1.api.met.no:443 ssl:True [Try again]
2017-12-08 14:04:14 WARNING (MainThread) [homeassistant.components.sensor.yr] Retrying in 15 minutes: Cannot connect to host aa015h6buqvih86i1.api.met.no:443 ssl:True [Try again]
2017-12-08 14:19:20 WARNING (MainThread) [homeassistant.components.sensor.yr] Retrying in 15 minutes: Cannot connect to host aa015h6buqvih86i1.api.met.no:443 ssl:True [Try again]

yup some of us have this issue as well. Try to comment out the camera giving you a problem, that resolve it for me. I had to add it as a generic camera for the time being.

As I said, all the cameras worked in previous version of hassio so I don’t think it’s the camera’s. I also have notify configured had it working last night but when I restarted hassio it was lost. One thing forgot to mention my pi is wifi and not directly connected to my router. I think I will try direct connection and see if anything changes.

last version of Hassio killed my wemos switch, my chromecasts and one of two cameras. following.

does anybody had luck with the amcrest component using multiple cameras?? it seems to be broken on the last 2 updates, i think it was broken on 0.58 or 0.59.

i have 2 cameras and this is my config

host: 192.168.10.45
username: user
password: pass
name: cam1
stream_source: rtsp
resolution: high
host: 192.168.10.55
username: user
password: pass
name: cam2
stream_source: rtsp
resolution: high
sometimes both cameras work, sometimes cam1 works and sometimes cam2 works.

my theory is for some reason HASS is opening too many connections to the cameras but it never closes the TCP session, collapsing the camera resourses

check this output ( the output is actually showing more connections i just trimmed )

sudo netstat -taupen | grep 225:
tcp 0 0 192.168.10.10:34464 192.168.10.45:80 CLOSE_WAIT 1001 11675 850/python3
tcp 1 0 192.168.10.10:34552 192.168.10.45:80 CLOSE_WAIT 1001 11263 850/python3
tcp 0 0 192.168.10.10:34550 192.168.10.45:80 CLOSE_WAIT 1001 11262 850/python3
tcp 1 0 192.168.10.10:34810 192.168.10.45:80 CLOSE_WAIT 1001 13148 850/python3
tcp 1 0 192.168.10.10:34546 192.168.10.45:80 CLOSE_WAIT 1001 11260 850/python3
tcp 0 0 192.168.10.10:34584 192.168.10.45:80 CLOSE_WAIT 1001 11712 850/python3
tcp 0 0 192.168.10.10:34090 192.168.10.45:80 CLOSE_WAIT 1001 12811 850/python3
tcp 0 0 192.168.10.10:34080 192.168.10.45:80 CLOSE_WAIT 1001 12806 850/python3
tcp 0 0 192.168.10.10:34820 192.168.10.45:80 CLOSE_WAIT 1001 13153 850/python3
tcp 0 0 192.168.10.10:34070 192.168.10.45:80 CLOSE_WAIT 1001 12805 850/python3
tcp 1 0 192.168.10.10:34072 192.168.10.45:80 CLOSE_WAIT 1001 11177 850/python3
tcp 0 0 192.168.10.10:34544 192.168.10.45:80 CLOSE_WAIT 1001 11259 850/python3
tcp 0 0 192.168.10.10:34814 192.168.10.45:80 CLOSE_WAIT 1001 13150 850/python3
tcp 1 0 192.168.10.10:34082 192.168.10.45:80 CLOSE_WAIT 1001 12807 850/python3
tcp 0 0 192.168.10.10:34834 192.168.10.45:80 TIME_WAIT 0 0 -
tcp 0 0 192.168.10.10:34858 192.168.10.45:80 TIME_WAIT 0 0 -
tcp 1 0 192.168.10.10:34092 192.168.10.45:80 CLOSE_WAIT 1001 11539 850/python3
tcp 1 0 192.168.10.10:34822 192.168.10.45:80 CLOSE_WAIT 1001 13154 850/python3
tcp 1 0 192.168.10.10:34816 192.168.10.45:80 CLOSE_WAIT 1001 13151 850/python3
tcp 0 0 192.168.10.10:34874 192.168.10.45:80 TIME_WAIT 0 0 -
tcp 0 0 192.168.10.10:34844 192.168.10.45:80 TIME_WAIT 0 0 -
tcp 1 0 192.168.10.10:34460 192.168.10.45:80 CLOSE_WAIT 1001 11673 850/python3
tcp 0 0 192.168.10.10:34458 192.168.10.45:80 CLOSE_WAIT 1001 13028 850/python3
tcp 1 0 192.168.10.10:34540 192.168.10.45:80 CLOSE_WAIT 1001 11257 850/python3
tcp 0 0 192.168.10.10:34538 192.168.10.45:80 CLOSE_WAIT 1001 11256 850/python3
tcp 0 0 192.168.10.10:34808 192.168.10.45:80 CLOSE_WAIT 1001 13147 850/python3
tcp 0 0 192.168.10.10:34880 192.168.10.45:80 TIME_WAIT 0 0 -
tcp 1 0 192.168.10.10:34798 192.168.10.45:80 CLOSE_WAIT 1001 14388 850/python3
tcp 0 0 192.168.10.10:34794 192.168.10.45:80 CLOSE_WAIT 1001 14387 850/python3

Just upgraded to .60 and have the same issue. What I get is two camera images but both are tagged and show an image that the second camera would show. I have 4 cameras.

same problem here, generic camera isnt working. tried to show a qr code on 0.60

2018-01-06 19:17:09 ERROR (MainThread) [homeassistant.components.camera.generic] Error getting new camera image: Cannot connect to host 127.0.0.1:8123 ssl:True [[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:777)]

2018-01-06 19:17:19 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/aiohttp/web_protocol.py”, line 271, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
File “aiohttp_http_parser.pyx”, line 295, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: invalid HTTP method

2018-01-06 19:17:19 ERROR (MainThread) [homeassistant.components.camera.generic] Error getting new camera image: Cannot connect to host 127.0.0.1:8123 ssl:True [[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:777)]

Any work on this yet? My cameras recently updated and now Im getting these errors:

Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', RemoteDisconnected('Remote end closed connection without response',))': /cgi-bin/snapshot.cgi?channel=1
Home Assistant
Overview
Logbook
History
Configuration
Log out
Developer tools

I’m getting the same error now too with my 2 Amcrest cameras:

Log shows:
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', RemoteDisconnected('Remote end closed connection without response',))': /cgi-bin/snapshot.cgi?channel=1

Seeing similar errors in .84.6 as I posted here.

I’ve started testing ffmpeg streaming instead, however I’d like to use the best method with amcrest cameras.

Should this component work now?