It worked fine until V0.50; there was an issue with 0.51 but it’s been fixed with 0.52.1 I understand.
I’m still on 0.52 but I’ve used this change to get it work:
2017-09-03 22:35:54 INFO (MainThread) [homeassistant.components.camera] Setting up camera.foscam
2017-09-03 22:35:54 ERROR (MainThread) [homeassistant.components.camera] Error while setting up platform foscam
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py", line 164, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
File "/usr/lib/python3.6/asyncio/tasks.py", line 352, in wait_for
return fut.result()
File "/usr/lib/python3.6/asyncio/futures.py", line 244, in result
raise self._exception
File "/usr/lib/python3.6/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3.6/site-packages/homeassistant/components/camera/foscam.py", line 39, in setup_platform
add_devices([FoscamCam(config)])
File "/usr/lib/python3.6/site-packages/homeassistant/components/camera/foscam.py", line 56, in __init__
from foscam.foscam import FoscamCamera
File "/usr/lib/python3.6/site-packages/foscam/__init__.py", line 1, in <module>
from foscam import FoscamCamera
ImportError: cannot import name 'FoscamCamera'
Understood - that’s one of the reasons I’ve not tried hass.io so far.
I have a few components that need(ed) tinkering with the py-files directly and not having access to them would have made them stop working.
Is there a way for you to downgrade your hass.io installation to e.g. V0.49 run it once or twice and then upgrade it to 0.52.1 again?
I’ve had some stubborn components in the past that needed the extra nudge to install the latest version when I upgraded the homeassistant itself, e.g. the USPS one.
Can anyone help how to access init.py file? I have searched through the entire PI after logging as root user but folder /srv, it is showing empty and full search did not find any file with name init.py. I am using two Foscam R2 cameras. I upgraded it to Hassio 0.53 but issue still persists, any help appreciated.
There is a fix for Foscam in 0.53.1 - not sure, though, if it addresses exactly this issue.
If you read the post by @jpostema just before yours - and a little bit of the history just before it - you can see that he could only get it working by installing HA manually, so that he could gain access to the init.py file.
Thanks for prompt reply. Yes I noticed the manual install as an option but not comfortable in building it manually. They are releasing version after version and somehow not fixing it. It is a known issue after version 0.49. I was trying for find an option to access these hidden files. Thanks again.
I though about switching my install to hass.io but decided not to do it - I’m a complete noob as well, but if you feel comfortable enough searching for access to hidden files, you should be fine installing HA in a virtual environment.
That’s what I did by following the step-by-step guide.
And if gives me the possibility to tinker with files when I run into issues like this one.
I’m not much beyond accessing my installation via WinSCP to edit them from there.
That’s what I do for my configuration and the odd adjusting of py-files.
I cannot get this cam working too. Another Foscam works perfect with the mpeg platform.
I installed the Hassbian image version 0.53.1
The camera has the message “no image available”
I can cannot find any of the folders from jpostema’s , searched for “Foscam” and “site-packages”. so no init.py
Do I have to install an additional module or something like that ?
Just to share with all of you, mine started working with upgrade to 0.53.1 and I am not using any virtualization on PI3. I noticed fix for Foscam in Sep 12 release notes and applied upgrade. No PTZ controls available. Does anyone has a solution to record on a NAS, I am using WD 3TB NAS?