Hi Rene
I just installed the app but have some problems getting the dashboard created.
In Home Assistant I can see the camera and control it (PTZ at least), but the dashboard does not work. I’ve several dashboards already working, so I dont know whats wrong with my configuration.
Any advice will be highly appreciated.
This is my log file:
2018-05-27 21:21:38.570380 INFO AppDaemon Version 2.1.12 starting
2018-05-27 21:21:38.571107 INFO Configuration read from: /home/homeassistant/.homeassistant/conf/appdaemon.yaml
2018-05-27 21:21:38.590580 WARNING Unable to connect to Home Assistant, retrying in 5 seconds
2018-05-27 21:21:43.604035 WARNING Unable to connect to Home Assistant, retrying in 5 seconds
2018-05-27 21:21:48.616833 WARNING Unable to connect to Home Assistant, retrying in 5 seconds
2018-05-27 21:21:53.625652 WARNING Unable to connect to Home Assistant, retrying in 5 seconds
2018-05-27 21:21:58.635661 WARNING Unable to connect to Home Assistant, retrying in 5 seconds
2018-05-27 21:22:10.460681 WARNING Unable to connect to Home Assistant, retrying in 5 seconds
2018-05-27 21:22:15.473416 WARNING Unable to connect to Home Assistant, retrying in 5 seconds
2018-05-27 21:22:21.282256 INFO Starting Apps
2018-05-27 21:22:21.576811 INFO Got initial state
2018-05-27 21:22:21.578552 INFO Loading Module: /home/homeassistant/.homeassistant/conf/apps/foscam.py
2018-05-27 21:22:21.596434 INFO Loading Object foscam using class foscam from module foscam
2018-05-27 21:22:22.546961 WARNING foscam: I cant read motion detect settings, motion detect switch disabled
2018-05-27 21:22:22.547752 WARNING foscam: Entity sensor.foscam_last_error not found in Home Assistant
2018-05-27 21:22:22.645053 WARNING foscam: Entity sensor.foscam_motion not found in Home Assistant
2018-05-27 21:22:22.649111 ERROR foscam: unexpected error: dashboard couldnt be written
2018-05-27 21:22:22.652648 WARNING Logged an error to /home/homeassistant/.homeassistant/conf/log/error.log
2018-05-27 21:22:22.653014 INFO App initialization complete
2018-05-27 21:22:22.653737 INFO Starting dashboard
2018-05-27 21:22:22.677582 INFO API is disabled
2018-05-27 21:22:22.761880 INFO Connected to Home Assistant 0.64.3
2018-05-27 21:22:26.224067 WARNING foscam: Entity sensor.foscam_motion not found in Home Assistant
2018-05-27 21:22:26.274931 WARNING foscam: Entity sensor.foscam_sound_alarm not found in Home Assistant
2018-05-27 21:22:26.326131 WARNING foscam: Entity sensor.foscam_recording not found in Home Assistant
2018-05-27 21:22:53.513740 INFO function [get_dashboard] finished in 145 ms
2018-05-27 21:22:53.838751 INFO New dashboard connected: Inicio
2018-05-27 21:22:55.729791 INFO function [get_dashboard] finished in 133 ms
2018-05-27 21:22:55.746473 INFO Dashboard disconnected
2018-05-27 21:22:55.908205 INFO New dashboard connected: Inicio
2018-05-27 21:22:58.411598 INFO function [get_dashboard] finished in 125 ms
2018-05-27 21:22:58.425131 INFO Dashboard disconnected
2018-05-27 21:22:58.693222 INFO New dashboard connected: Inicio
2018-05-27 21:23:58.684400 INFO function [get_dashboard] finished in 137 ms
2018-05-27 21:23:58.722975 INFO Dashboard disconnected
2018-05-27 21:23:58.978754 INFO New dashboard connected: Inicio
2018-05-27 21:36:46.318294 WARNING foscam: Changing motion detect is disabled
2018-05-27 21:37:29.902022 INFO AppDaemon Version 2.1.12 starting
2018-05-27 21:37:29.903240 INFO Configuration read from: /home/homeassistant/.homeassistant/conf/appdaemon.yaml
2018-05-27 21:37:29.922728 WARNING Unable to connect to Home Assistant, retrying in 5 seconds
2018-05-27 21:37:34.935801 WARNING Unable to connect to Home Assistant, retrying in 5 seconds
2018-05-27 21:37:39.947403 WARNING Unable to connect to Home Assistant, retrying in 5 seconds
2018-05-27 21:37:44.960364 WARNING Unable to connect to Home Assistant, retrying in 5 seconds
2018-05-27 21:37:49.973470 WARNING Unable to connect to Home Assistant, retrying in 5 seconds
2018-05-27 21:37:54.987406 WARNING Unable to connect to Home Assistant, retrying in 5 seconds
2018-05-27 21:38:00.005851 WARNING Unable to connect to Home Assistant, retrying in 5 seconds
2018-05-27 21:38:12.212222 INFO Starting Apps
2018-05-27 21:38:12.583365 INFO Got initial state
2018-05-27 21:38:12.585040 INFO Loading Module: /home/homeassistant/.homeassistant/conf/apps/foscam.py
2018-05-27 21:38:12.600525 INFO Loading Object foscam using class foscam from module foscam
2018-05-27 21:38:13.696246 WARNING foscam: Entity sensor.foscam_motion not found in Home Assistant
2018-05-27 21:38:13.918993 ERROR foscam: unexpected error: dashboard couldnt be written
2018-05-27 21:38:13.923939 WARNING Logged an error to /home/homeassistant/.homeassistant/conf/log/error.log
2018-05-27 21:38:13.924301 INFO App initialization complete
2018-05-27 21:38:13.925035 INFO Starting dashboard
2018-05-27 21:38:13.943959 INFO API is disabled
2018-05-27 21:38:13.979081 INFO Connected to Home Assistant 0.64.3
2018-05-27 21:38:15.001730 WARNING Scheduler clock skew detected - delta = 1.0016579627990723 - resetting
2018-05-27 21:38:17.128925 WARNING foscam: Entity sensor.foscam_motion not found in Home Assistant
2018-05-27 21:38:17.156367 WARNING foscam: Entity sensor.foscam_sound_alarm not found in Home Assistant
2018-05-27 21:38:17.179469 WARNING foscam: Entity sensor.foscam_recording not found in Home Assistant
2018-05-27 21:38:20.883496 INFO New dashboard connected: Inicio
And my error file as well
2018-05-27 21:22:22.649719 WARNING ------------------------------------------------------------
2018-05-27 21:22:22.650239 WARNING Unexpected error during loading of foscam:
2018-05-27 21:22:22.650628 WARNING ------------------------------------------------------------
2018-05-27 21:22:22.651739 WARNING Traceback (most recent call last):
File “/home/homeassistant/.homeassistant/conf/apps/foscam.py”, line 416, in create_dashboard
with open(self.config[“HADashboard”][“dash_dir”] + “/” + self.dashboardsettings[“dashboard_file_name”] + “.dash”, ‘w’) as dashboard:
KeyError: ‘dash_dir’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/local/lib/python3.5/dist-packages/appdaemon/appdaemon.py”, line 912, in read_app
init_object(name, class_name, module_name, conf.app_config[name])
File “/usr/local/lib/python3.5/dist-packages/appdaemon/appdaemon.py”, line 583, in init_object
conf.objects[name][“object”].initialize()
File “/home/homeassistant/.homeassistant/conf/apps/foscam.py”, line 154, in initialize
self.create_dashboard()
File “/home/homeassistant/.homeassistant/conf/apps/foscam.py”, line 622, in create_dashboard
self.log("tried to write: " + self.config[“HADashboard”][“dash_dir”] + “/” + self.dashboardsettings[“dashboard_file_name”] + “.dash”,“ERROR”)
KeyError: ‘dash_dir’
2018-05-27 21:22:22.652247 WARNING ------------------------------------------------------------
2018-05-27 21:38:13.919665 WARNING ------------------------------------------------------------
2018-05-27 21:38:13.921422 WARNING Unexpected error during loading of foscam:
2018-05-27 21:38:13.921934 WARNING ------------------------------------------------------------
2018-05-27 21:38:13.923079 WARNING Traceback (most recent call last):
File “/home/homeassistant/.homeassistant/conf/apps/foscam.py”, line 416, in create_dashboard
with open(self.config[“HADashboard”][“dash_dir”] + “/” + self.dashboardsettings[“dashboard_file_name”] + “.dash”, ‘w’) as dashboard:
KeyError: ‘dash_dir’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/local/lib/python3.5/dist-packages/appdaemon/appdaemon.py”, line 912, in read_app
init_object(name, class_name, module_name, conf.app_config[name])
File “/usr/local/lib/python3.5/dist-packages/appdaemon/appdaemon.py”, line 583, in init_object
conf.objects[name][“object”].initialize()
File “/home/homeassistant/.homeassistant/conf/apps/foscam.py”, line 154, in initialize
self.create_dashboard()
File “/home/homeassistant/.homeassistant/conf/apps/foscam.py”, line 622, in create_dashboard
self.log("tried to write: " + self.config[“HADashboard”][“dash_dir”] + “/” + self.dashboardsettings[“dashboard_file_name”] + “.dash”,“ERROR”)
KeyError: ‘dash_dir’
2018-05-27 21:38:13.923552 WARNING ------------------------------------------------------------
Thanks in advance for your support. I always try to read and search deeply before asking, but now I dont know whats wrong.