what did you put in your HA configuration?
can you see anything in HA or is there any kind of error in the HA log?
I have nothing in HA except for the Appdaemon thing. (The input sliders and so on)
In the AppDaemon i see this tho:
2017-07-27 19:36:32.611178 INFO Got initial state
2017-07-27 19:36:32.611933 INFO App initialization complete
2017-07-27 19:36:32.747202 INFO Connected to Home Assistant 0.46.1
Is the any kind of config in HA i should have to connect to AppDaemon?
first you need to set up the cam in HA, or else you will never be able to see any cam in HA.
in HA you dpnt need anything from AD.
in HA you should set up the cam like so:
camera:
- platform: foscam
ip: your ip
port: 88
username: username
password: pasword
name: anyname
Yes that i have working.
I can see the camera in HA, i just cant control it. (like turn off motion, turn it to the left or right)
oke so we have a working cam in HA
you say you can use CGI commands to control the cam.
please give me 1 CGI command that works.
http://192.168.1.131:88/cgi-bin/CGIProxy.fcgi?cmd=zoomIn&usr=admin&pwd=xxxx
http://192.168.1.131:88/cgi-bin/CGIProxy.fcgi?cmd=zoomOut&usr=admin&pwd=xxxx
Also to see the IP config work.
Any specific CGI command i should try?
that are the CGI commands that work with this app, so we must be able to get it to work
and the next thing i ask is what do you have in your appdaemon configuration and did you save the app? where? and with what name?
I did msg you my config
seems like that Appdaemon cant find the app because you have no pointer for appdaemon where it should find the apps.
Where should i put this pointer?
what i said to you in PM
in the section AppDaemon you need a line
app_dir: your_app_dir/
and the apps should be placed in that dir.
I did try this:
AppDaemon:
logfile: /home/homeassistant/conf/log/log
errorfile: /home/homeassistant/conf/log/error
threads: 10
app_dir: /home/homeassistant/conf/
Then AppDaemon wont start
pberrypi:/home/homeassistant/conf $ appdaemon -c /home/homeassistant/conf/
Traceback (most recent call last):
File “/usr/local/bin/appdaemon”, line 11, in
sys.exit(main())
File “/usr/local/lib/python3.4/dist-packages/appdaemon/appdaemon.py”, line 1823, in main
run()
File “/usr/local/lib/python3.4/dist-packages/appdaemon/appdaemon.py”, line 1197, in run
read_apps(True)
File “/usr/local/lib/python3.4/dist-packages/appdaemon/appdaemon.py”, line 1045, in read_apps
dependent_modules = find_dependent_modules(module)
File “/usr/local/lib/python3.4/dist-packages/appdaemon/appdaemon.py”, line 985, in find_dependent_modules
if “dependencies” in config[mod]:
TypeError: argument of type ‘NoneType’ is not iterable
the app_dir need to be an empty dir with only your apps in it.
the conf dir you had can stay like it is. and you should point to that with your startupcommand.
so something like:
app_dir: /home/homeassistant/apps/
and then the command you used before to start AD
and in that app dir there should be the file foscam.py
and dont forget you need indention:
AppDaemon:
app_dir: /home/homeassistant/apps/
Should I put that in home assistant?
no in your appdaemon.yaml from appdaemon.
okey! new config
AppDaemon:
logfile: /home/homeassistant/conf/log/log
errorfile: /home/homeassistant/conf/log/error
threads: 10
app_dir: /home/homeassistant/conf/apps/
cert_path: <path/to/root/CA/cert>
cert_verify: True
time_zone:
HASS:
ha_url: https://deedje.ddns.net:8123
ha_key: XXXXXXXXX
Apps
hello_world:
module: hello
class: HelloWorld
foscam:
module : foscam
class : foscam
host : 192.168.1.131
port : 88
user : admin
password : xxx
sensor_update_time : 10
motion_sensor : sensor.foscam_motion
recording_sensor : sensor.foscam_recording
soundalarm_sensor : sensor.foscam_sound_alarm
up_down_slider : input_slider.foscam_up_down
left_right_slider : input_slider.foscam_left_right
infrared_switch : input_boolean.foscam_infrared
auto_infrared_switch : input_boolean.foscam_auto_infrared
motion_switch : input_boolean.foscam_motion_detect
zoom_slider : input_slider.foscam_zoom
preset_points_select : input_select.foscam_preset_points
start_cruise_select : input_select.foscam_preset_cruise
stop_cruise_switch : input_boolean.foscam_stop_cruise
brightness_slider : input_slider.foscam_brightness
contrast_slider : input_slider.foscam_contrast
hue_slider : input_slider.foscam_hue
saturation_slider : input_slider.foscam_saturation
sharpness_slider : input_slider.foscam_sharpness
default_pic_settings_switch : input_boolean.foscam_default_picture_settings
mirror_switch : input_boolean.foscam_mirror
flip_switch : input_boolean.foscam_flip
snap_picture_switch : input_boolean.foscam_snap_picture_now
Then i get this error:
Traceback (most recent call last):
File “/usr/local/bin/appdaemon”, line 11, in
sys.exit(main())
File “/usr/local/lib/python3.4/dist-packages/appdaemon/appdaemon.py”, line 1823, in main
run()
File “/usr/local/lib/python3.4/dist-packages/appdaemon/appdaemon.py”, line 1197, in run
read_apps(True)
File “/usr/local/lib/python3.4/dist-packages/appdaemon/appdaemon.py”, line 1045, in read_apps
dependent_modules = find_dependent_modules(module)
File “/usr/local/lib/python3.4/dist-packages/appdaemon/appdaemon.py”, line 985, in find_dependent_modules
if “dependencies” in config[mod]:
TypeError: argument of type ‘int’ is not iterable
What can i be doing wrong?
please edit your posting, you did put in your pasword and i gave you a link how to post correctly
i see where it goes wrong.
you have the new AD version with YAML configuration.
and YAML translates to int where the old config didnt.
change this:
port : 88
user : admin
password : xxx
sensor_update_time : 10
to
port : "88"
user : admin
password : xxx
sensor_update_time : "10"
My HA did totaly crach, so im going to reinstall it tonight with hassio insted.
I will let you know how it works out.