Hi, Does anyone know a way to get motion/recording triggers from the camera please? I want to record a clip locally to a NAS but only when motion is detected. Thanks
Love it! Thank you very much!! Is there any way to make it on a picture glance card? Then when you click on it the picture gets bigger… Probably not. Also cant get it to show the picture on the mobile app but the motion controls work!
Yes. In order to trigger it:
In a new automation:
under triggers click state then
under entity click the camera you want to record from
Leave everything else in the trigger section blank.
I’m pretty sure you have to make sure that alarm is NOT disabled in the app first.
If you have other cameras that record, use that in the action section.
I’m no expert and not sure if this is the correct way to do it, but on mine I can see the local IP as an attribute if I go to Dev tools/states and look the camera up,
You may then be able to change an attribute using configuration/customizations (require advanced setting to be on) .
Above said, mine picked up the IP address automatically so does seem that there is something wrong if it is not doing that.
Thanks, I tried this and with no attribute in the tigger and it caused the automation to run every 5 minutes. Looking at the detail it seems like the access_token changes every 5 minutes and this triggers the automation. However reading @EnryDalo post above, I used the “Last Alarm Trigger” attribute and that works, sort of. Unfortunately it has about a 15 /20 second delay which is long enough that the motion could be finished by the time the recording starts. Would be ideal if the integration could pick up the motion detection trigger directly
stream:
ffmpeg:
camera:
ezviz_cloud:
cameras:
E12345678: Serial number from camera
username: admin
password: Password_from_camera_sticker.
E12345678: Serial number from camera
username: admin
password: Password_from_camera_sticker.
Tyvm! Good call. I never even noticed this as I was only checking soon after I intentionally walked by the camera. I edited my above post to reflect your change.
@Thranth, Thanks, does the lookback value work for you? It doesn’t seem to for me and I thought it needed a active HLS stream which I didn’t think this interrogation had, although I may have that wrong. For me lookback not working means that if the motion lasts less then c15 seconds, I miss it in the recorded clip. Also in your config you dont seem to have the lines for the ezviz account details so I wonder how it is working for youi at all!
Ok so now i see how it is working for you… I hadn’t realised that the name and config required has changed as I was just updating in HACS so I think I am still using ha-ezviz. Hold my beer…
Ok so old ha-ezviz integration removed and updated one, and newer config installed and working fine, however the lookback value on the camera.record action still doesn’t work for me and the automation trigger is too slow to catch initial activity unfortunately.
@RenierM, now if we could access the SD stored files from the integration to off load them then the motion notification wouldn’t matter so much. The Eziviz API documentation, what there is of it, suggests that it supports the function “Playback (video stored in SD card or Cloud Storage)” Thanks for all your work on this
This is really encouraging to see this being developed!
I have successfully added my EZViz DB1 to HA - But really need the PIR exposed as a sensor so when motion has been detected I can trigger automation to turn on a light for example.
I know this basic functionality is available using IFTTT - but there is around a 10 - 20 second delay in the light coming on so currently not of much use for this purpose.
Has anyone made any cool love lace cards similar to that detailed in the original integration?
Hey @RenierM - Happy to help with any testing, I see you have been working on services so hopefully above support for exposing PIR as a sensor is on the roadmap?
Actually the PIR alarm alert triggers almost instantly, and the updated date / time stamp is available in home-assistant.
Last alarm triggered: Today 10:13:46
Ideally need a value or sensor to set PIR Triggered: true when it has triggered (but obviously needs something to set it back to false again after a period of time should another motion event occur, and must be possible if EZViz offer this as part of an IFTTT routine already.
I agree the video is slightly delayed, well at least from RSTP > love-lace, its around 15 / 20 seconds video streaming in the EZViz App seems to be OK.