Hi @aimc just wondering if you got anything working in regards to detecting motion and then a large video stream appearing over the top of everything for x amount of seconds?
I’d like to do something like this for the ring.com video doorbell. Basically in the way the ring.com currently works on its own app where you rather than when you detect motion, you press the doorbell and then a live view of the camera pops up over everything for say 10 seconds.
Im not the best in this field but im thinking binary sensor as the trigger to then display the camera, or even set it up as to display a certain dashboard which will have the camera stream setup in it.
What part of my configuration do you need exactly? I’m not sure to which post of mine you replied, but I shared my motion binary_sensor on the 8th of October if you scroll up.
I thought I would play with this before I invest in additional motion sensors. The camera I am testing on is a Foscam FI9821P and running in Hassio. I keep getting a grep error… something simple I am sure.
grep: unrecognized option: P
BusyBox v1.26.2 (2017-05-23 16:46:32 GMT) multi-call binary.
Usage: grep [-HhnlLoqvsriwFE] [-m N] [-A/B/C N] PATTERN/-e PATTERN.../-f FILE [FILE]...
Search for PATTERN in FILEs (or stdin)
-H Add 'filename:' prefix
-h Do not add 'filename:' prefix
-n Add 'line_no:' prefix
-l Show only names of files that match
-L Show only names of files that don't match
-c Show only count of matching lines
-o Show only the matching part of line
-q Quiet. Return 0 if PATTERN is found, 1 otherwise
-v Select non-matching lines
-s Suppress open and read errors
-r Recurse
-i Ignore case
-w Match whole words only
-x Match whole lines only
-F PATTERN is a literal (not regexp)
-E PATTERN is an extended regexp
-m N Match up to N times per file
-A N Print N lines of trailing context
-B N Print N lines of leading context
-C N Same as '-A N -B N'
-e PTRN Pattern to match
-f FILE Read pattern from file
I don’t suppose you have ever done the same for Amcrest cameras? I saw the component but I have all my cameras ported through Zoneminder so I do not want to use the Amcrest component just to get motion.
Hi, everybody. This is my first post, although I usually read this forum.
I’ve had the same problem and I’ve just found how I might to solve the problem.
In the recent versions, the command “grep -oP” don’t work. You must change this command to this other:
command_state: 'curl -k --silent "http://myip:88/cgi-bin/CGIProxy.fcgi?cmd=getMotionDetectConfig&usr=myusuer&pwd=mypass" | grep -E -o "<isEnable>(.*)</isEnable>" | sed -e "s,.*<isEnable>\([^<]*\)</isEnable>.*,\1,g"`'
value_template: '{{ value == "1" }}'`
I get my switch work well. And I hope that It will be useful for you.