would be nice if that would work but its for the camtype fosbaby only
i added a check if motion detection is set in the cam before the motion detect on/off switch can be used.
i created 3 different dashboards for cams with infrared but not ptz, cams that hve both and cams that have none.
i have a C1 lite myself so i will test it for that.
i will add dependency check also and after i have done that ill update the github.
wonderful !
This is working with my C1 V3 and activate both, sound and motion:
/cgi-bin/CGIProxy.fcgi?cmd=setOneKeyAlarmConfig&isEnable=1&alarmLinkage=3
Same API for every kind of hardware I think
greetz
its strange that it is working on your cam.
the PDF clearly states:
5. FosBaby_P1 CGI(Only)
on page 101
i tried it, but no luck, so i cant use that.
i could use it for the C1 V3 cam, but that would mean creating seperate commands for every cam and thats a sliding point.
they have 3 kinds of CGI.
- the old 1 for older cams (which i dont support)
- the one 1 use for all cams from the last few years
- extra CGI for the fosbaby serie (which i guess they also are implementing partly in some newer types)
mhh ok, then we should work with setMotionDetectConfig and all the parameters.
uploaded the new version.
changes:
- motion detection switch now keeping settings. settings will be checked and saved at initialize from the app
- changed from untangle to xml.etree (default python)
- moved flip and mirror check from sensorcheck to initialize to optimize usage.
- created 3 different dashboard for different cam types
breaking changes:
- none
I tested version 2.0.2 and it works! Settings are taken over, but only if the motion detection was active at appdaemon start.
Second thing, if I have changed something in Foscam WebUI the param is not taken over to your script right?
right.
motion detection needs to be active at start (ill add that to the docs) when not active it gives no settings back
if you want to modify the dashboard to your wishes, you just set the parameter create dashboard to False and from that moment on it doesnt get recreated anymore.
if you want a new one, you could always change the name from the dash and set it to true again and you get a new one again.
Sorry I did not mean the HADashboard but that Foscam Webinterface
if you change settings in the foscam app its not noted in my app, except for these settings:
- motion detection sensor (not the switch)
- sound detection sensor
- infrared sensor
- infrared switch
- if recording is on or off
i did have checks for other settings also, but default the checkup is set to every 10 seconds.
and for all other stuff i need to send extra commands to the cam.
that is possible, but i have 3 cams running, so every extra check is done 3 times.
and i noticed that my RPI is using quite some CPU for every get request.
Hi @ReneTode
Quick question will your app work with fosbaby camera?
Also does your app have the ability to capture sound because I am trying to setup a smart baby monitor as per the home assistant blog.
Thanks.
the app would work with fosbaby.
i am not sure about if the foscam component from homeassistant captures sound.
it could be that the app gives sound, but i havent tried that myselve.
i have a c1 lite running that has sound, so i could try it in the next few days.
Thanks from the quick reply.
Yes I will be waiting to hear from you about capturing the sound from your app and then I can buy the fosbaby.
Thanks.
i just started the foscam webapp with firefox to go to my C1 lite cam, and i heard sounds from it.
then i did go to homeassistant and i heard nothing, also not when i moved to full screen.
i tried the app, but no sound either.
i tried finding out if i can capture sound seperatly, but i dont see anything about that, so i have no clue why the HA component doesnt give sound.
ill dig into it a bit more.
Will this install on Hassio running Appdaemon?
its a normal appdaemon app.
when you have appdaemon on hassio running it will work.
Hello, I’m using Hass.io and I saw your comment about you not using it but I’m hoping you can tell me why this is happening. I have the foscam app working from what I can tell but when I open the generated dashboard this is what it shows…
Any ideas as to why this is happening?
you have some errors somewhere that would explain it but i see 2 problems that you have.
- you have no ipnput selects created in HA.
- you probably didnt put the extra variables in the variables.yaml from the skin you use.
these variables:
input_select_title_style: $style_title
input_select_title2_style: $style_title2
input_select_widget_style: $background_style
input_select_select_style: "background-color: #999;color:black"
input_select_container_style: ""
new_input_slider_title_style: $style_title
new_input_slider_title2_style: $style_title2
new_input_slider_minvalue_style: $style_title
new_input_slider_maxvalue_style: $style_title
new_input_slider_value_style: $style_title
new_input_slider_slider_style: "-webkit-appearance: none"
new_input_slider_widget_style: $background_style
vertical_input_slider_title_style: $style_title
vertical_input_slider_title2_style: $style_title2
vertical_input_slider_minvalue_style: $style_title
vertical_input_slider_maxvalue_style: $style_title
vertical_input_slider_value_style: $style_title
vertical_input_slider_slider_style: ""
vertical_input_slider_widget_style: $background_style
light_with_brightness_icon_on: mdi-lightbulb
light_with_brightness_icon_off: mdi-lightbulb
light_with_brightness_title_style: $style_title
light_with_brightness_title2_style: $style_title2
light_with_brightness_slider_style: ""
light_with_brightness_widget_style: $background_style
light_with_brightness_icon_style_active: $style_active
light_with_brightness_icon_style_inactive: $style_inactive
light_with_colorpicker_icon_on: mdi-lightbulb
light_with_colorpicker_icon_off: mdi-lightbulb
light_with_colorpicker_title_style: $style_title
light_with_colorpicker_title2_style: $style_title2
light_with_colorpicker_button_style: ""
light_with_colorpicker_widget_style: $background_style
light_with_colorpicker_icon_style_active: $style_active
light_with_colorpicker_icon_style_inactive: $style_inactive
radial_widget_style: "background: none"
thermo_widget_style: "background: none"
heater_icon_on: fa-fire
heater_icon_off: fa-fire
heater_title_style: $style_title
heater_title2_style: $style_title2
heater_slider_style: ""
heater_widget_style: $background_style
heater_icon_style_active: $style_active
heater_icon_style_inactive: $style_inactive
need to be added to the variables.yaml from the skin you use.
if you dont use a skin you need to edit the default skin.
on my system the default skin can be found here:
/usr/local/lib/python3.5/dist-packages/appdaemon/assets/css/default
Thanks a lot man!
I’m having an issue getting my camera feed to show up. Any ideas on how to get this to work?