all 5 seconds? did you set the sensor_update_time to 5?
it was default at 10 and then you could only get an error every 10 seconds
and you would have 2 different errors.
but thats only for the update in HA.
/appdaemon/logs/appdaemon_error.log
2017-05-09 21:43:50.086977 WARNING Logged an error to /home/pi/appdaemon_dashboard/appdaemon/logs/appdaemon_error.log
2017-05-09 21:44:00.089553 WARNING Logged an error to /home/pi/appdaemon_dashboard/appdaemon/logs/appdaemon_error.log
2017-05-09 21:44:10.088618 WARNING Logged an error to /home/pi/appdaemon_dashboard/appdaemon/logs/appdaemon_error.log
2017-05-09 21:44:20.081112 WARNING Logged an error to /home/pi/appdaemon_dashboard/appdaemon/logs/appdaemon_error.log
2017-05-09 21:44:26.007986 INFO /home/pi/appdaemon_dashboard/appdaemon/conf/appdaemon.cfg modified
2017-05-09 21:44:26.040808 INFO App 'foscam' changed - reloading
2017-05-09 21:44:26.043862 INFO Loading Object foscam using class foscam from module foscam
2017-05-09 21:44:31.175809 WARNING foscam: Entity sensor.foscam_motion not found in Home Assistant
2017-05-09 21:44:42.778033 INFO AppDaemon Version 2.0.0beta3.5 starting
2017-05-09 21:44:49.399634 INFO Got initial state
2017-05-09 21:44:49.405508 INFO Loading Module: /home/pi/appdaemon_dashboard/appdaemon/conf/apps/foscam.py
2017-05-09 21:44:49.463730 INFO Loading Object foscam using class foscam from module foscam
2017-05-09 21:44:49.481353 INFO Loading Module: /home/pi/appdaemon_dashboard/appdaemon/conf/apps/hello.py
2017-05-09 21:44:49.487418 INFO Loading Object hello_world using class HelloWorld from module hello
2017-05-09 21:44:49.974326 INFO hello_world: Hello from AppDaemon
2017-05-09 21:44:49.983961 INFO hello_world: You are now ready to run Apps!
2017-05-09 21:44:49.986762 INFO App initialization complete
2017-05-09 21:44:49.992881 INFO Starting dashboard
2017-05-09 21:44:50.059111 INFO HADashboard Started
2017-05-09 21:44:50.060822 INFO Listening on ('192.168.1.22', 5050)
2017-05-09 21:44:51.326139 INFO Connected to Home Assistant 0.44.1
2017-05-09 21:44:54.779211 WARNING foscam: Entity sensor.foscam_sound_alarm not found in Home Assistant
2017-05-09 21:44:54.920873 WARNING foscam: Entity sensor.foscam_recording not found in Home Assistant
2017-05-09 21:44:58.534739 INFO foscam: devstate gaf foute data
2017-05-09 21:45:05.815313 INFO foscam: devstate gaf foute data
sensor motion, etc are made also.
so it seems like you got it working now.
i havent explained that by the way but
the move vertical, move horizontal and move zoom, are made like this:
setting it to -1 or 1 starts it and it goes on for 1 second speed slow
-2 or 2 same but at higher speed,
etc.
but i only use -1 or 1, because the cam gets a bit buggy reactions if its set to higher speed.
i created an app that take a picture every minute. to give me a fast moving day video.
its about the easiest thing to do.
import appdaemon.appapi as appapi
import datetime
class speedup(appapi.AppDaemon):
def initialize(self):
runtime = datetime.time(12, 0, 0)
self.run_minutely(self.savepic,runtime)
def savepic(self, kwargs):
self.turn_on("input_boolean.foscam_snap_picture_now")
you could start the cruise at a specific point of the day, or enable and disable the infrared at other times then the cam default.
for instance when you have outside lights in the evening and dont want the infrared at that moment.
you could set the brightness a little lower if you have a sensor detecting outside light is very Sunny.
I guess it is supposed to save the single pics in pre configured folder but do u also create like a movie with it? Would be awesome then to also send this to email or even xmpp
yeah you need to set the folders in the cam.
the cam makes a movie and saves it when motion detect, but only through the settings.
in the cam settings you can say that he must send pics to an email address.
you can make preset cruise routes and presets for the direction the cam is watching.
those presets needs to be given a name and then you can use the same names in your HA input_selects to use those settings from HA.
@ReneTode - Iāve got this mostly working, but some of the controls donāt seem to work. For example, I canāt seem to enable/disable motion detection. I donāt see a listener registered for that switch. Is that something that is a work in progress or am I missing something?
you are not missing something, i missed something.
the motion switch is updated from the cam, so it gives the correct situation, but i forgot to implement to possibility to set it.
the app is getting a complete workaround, giving it decent warnings and info, and also making it partly work for older models.
i will put it in there.
i thing i noticed since i did write the app, is that when the cam is somewhat busy it doesnt give the asked data back but Always the same return.
at this moment my app gives me a decent warning : āCamera is to busy, sensor value not retrievedā
i will also implement checkups and warnings like that for all other commands
as it is right now if you send a command, the app doesnt check with the cam if the command has actually succeeded.
so if you have a little patience i will release a new version shortly.
Awesome, thanks. Let me know if you are working on this today, otherwise I will likely implement the motion detect setting myself and give you a pull request in git.
i am working on some other things now, that took priority.
so if you implement it an give a pull request i will take that, for now. (so that others in the meantime have that option also.
i noticed another thing also, that i already took care of in the new version.
the speed isnt set higher or lower when zooming or moving left or right, like it is supposed to do.