First off, @marthocoo, thank you for your work here ā this is awesome.
Iām running four Maximus cams with three on one wifi network and one on another. I use the Kuna app on my phone with no issues generally from the same network that has the single cam and the Pi running hass. Iām 1-week new to Home Assistant and Iām currently running hassbian
after dabbling with hassio
and a local VDI. Iām currently just looking at the overview page and have not yet played with downloading recordings and such.
v7
ā works for me with individual overview page thumbnails periodically flaking out, but coming back on their own in a matter of seconds. In the logs, the components all load up, then I see periodic timeouts continuing forever and lining up with when a UI thumbnail doesnāt load.
Apr 2 17:17:00 hassbian hass[488]: 2019-04-02 17:17:00 ERROR (MainThread) [pykuna.kuna] Request to Kuna API timed out
Apr 2 17:17:20 hassbian hass[488]: 2019-04-02 17:17:20 ERROR (MainThread) [pykuna.kuna] Request to Kuna API timed out
Apr 2 17:17:25 hassbian hass[488]: 2019-04-02 17:17:25 ERROR (MainThread) [pykuna.kuna] Request to Kuna API timed out
Apr 2 17:18:10 hassbian hass[488]: 2019-04-02 17:18:10 ERROR (MainThread) [pykuna.kuna] Request to Kuna API timed out
Apr 2 17:18:20 hassbian hass[488]: 2019-04-02 17:18:20 ERROR (MainThread) [pykuna.kuna] Request to Kuna API timed out
Apr 2 17:18:20 hassbian hass[488]: 2019-04-02 17:18:20 ERROR (MainThread) [pykuna.kuna] Request to Kuna API timed out
Apr 2 17:18:30 hassbian hass[488]: 2019-04-02 17:18:30 ERROR (MainThread) [pykuna.kuna] Request to Kuna API timed out
Apr 2 17:18:30 hassbian hass[488]: 2019-04-02 17:18:30 ERROR (MainThread) [pykuna.kuna] Request to Kuna API timed out
Apr 2 17:18:40 hassbian hass[488]: 2019-04-02 17:18:40 ERROR (MainThread) [pykuna.kuna] Request to Kuna API timed out
Apr 2 17:18:40 hassbian hass[488]: 2019-04-02 17:18:40 ERROR (MainThread) [pykuna.kuna] Request to Kuna API timed out
Apr 2 17:18:50 hassbian hass[488]: 2019-04-02 17:18:50 ERROR (MainThread) [pykuna.kuna] Request to Kuna API timed out
Apr 2 17:19:00 hassbian hass[488]: 2019-04-02 17:19:00 ERROR (MainThread) [pykuna.kuna] Request to Kuna API timed out
Apr 2 17:19:10 hassbian hass[488]: 2019-04-02 17:19:10 ERROR (MainThread) [pykuna.kuna] Request to Kuna API timed out
On the first run with v7
Iāll see a little more verbosity in the logs as well:
Apr 2 17:43:47 hassbian hass[489]: 2019-04-02 17:43:47 ERROR (MainThread) [pykuna.kuna] Request to Kuna API timed out
Apr 2 17:43:47 hassbian hass[489]: File "/home/homeassistant/.homeassistant/custom_components/kuna/__init__.py", line 208, in scan_for_recordings
Apr 2 17:43:47 hassbian hass[489]: File "/srv/homeassistant/lib/python3.5/site-packages/pykuna/recording.py", line 73, in get_download_link
v7.1
wonāt load for me at all with the same disable / timeout note in the logs that others have seen:
Apr 2 17:30:19 hassbian hass[468]: 2019-04-02 17:30:19 INFO (MainThread) [homeassistant.setup] Setting up kuna
Apr 2 17:30:22 hassbian hass[468]: 2019-04-02 17:30:22 ERROR (MainThread) [pykuna.kuna] Request to Kuna API timed out
Apr 2 17:30:22 hassbian hass[468]: 2019-04-02 17:30:22 ERROR (MainThread) [custom_components.kuna] There was an error logging into Kuna: No Kuna API token response returned, check username and password.
Apr 2 17:30:22 hassbian hass[468]: 2019-04-02 17:30:22 INFO (MainThread) [homeassistant.setup] Setup of domain kuna took 3.1 seconds.
Apr 2 17:30:22 hassbian hass[468]: 2019-04-02 17:30:22 ERROR (MainThread) [homeassistant.setup] Setup failed for kuna: Component 'kuna' did not return boolean if setup was successful. Disabling component.
Iāve noticed some funky troubleshooting behavior, like if I have v7
running properly, checkout v7.1
then restart hass from the UI, but do not reboot the Pi, everything starts up again and continues working. Once I reboot the Pi though, v7.1
refuses to start back up. Maybe something to do with how the dependencies are loaded?
@DKrics ā are you sure itās actually giving you the live shot for those 2-3 seconds as opposed to just showing you the still thumbnail. I had one cam that would show the thumbnails fine, but when you switched to live view it would show the thumbnail for a second or two, then go black after switching to the stream. The app saw the camera as online the whole time. Power cycling the camera cleared it up for me and itās been working fine for months.
I had another cam that had trouble staying online even with strong signal until one day it wouldnāt go back online at all. Kuna support easily replaced the defective cam, shipping me a replacement along with a pre-paid label to send them back the defective unit. If power cycling doesnāt work for you, Iām betting Kuna support can take care of you.