Amcrest ASH26 Floodlight Camera

Do you think it would be difficult to add monitoring the motion detection so it could report motion to HE?

It looks like logging locally or sending an email on motion detect is possible. If there were a way to receive and process the email, I suppose near real-time notification might be possible. Otherwise, I think polling the API for recent log entries would be the only way to do it.

I could be missing something, though...

If you've exposed the entire Amcrest API in the code, isn't motion detected a separate event?

I hope you don't mind, I'm trying to modify this driver for Dahua cameras too as I have both Amcrest and Dahua. Your driver made a connection with Dahua perfectly it just wouldn't read anything on refresh or do anything with on/off, so I changed the Lighting_V2[0][0][1].Mode to Lighting[0][1].Mode (where 1 is the cameras Day profile, which it uses 24/7) and now the On and Off work for the white LEDs on my IPC-T5442TM-AS-LED, although I haven't figured out the refresh options, I found the Dahua API at

This is the first time I've tried to modify a driver on Hubitat. I'd like to fix the refresh optionsat some point, but I'm just happy to finally be able to automate the white LED!

Thanks!

So far as I can tell the API is a simple HTTP GET-based affair and requires a persistent connection to receive events. That said, I'm not a developer and welcome those that are (and who want to do more than just turn on the lights) to take a look at the API docs and see what is possible.

You are correct.

I just got a response back from their support team. Their is no way to have the camera push events to HE. The only way is to have HE poll the devices for events and act on them.

This kind of sucks as I wouldn't want to have so many drivers constantly doing this as I add more cameras.

These devices meet about 99% of my requirements.

Am I misreading the logs, The driver as written is polling every minute to status the light condition. So is it difficult to just add the Motion. I tried reading the api description, but I could not determine what actually signified a Motion sense

That's how it currently operates, but perhaps a persistent HTTP connection to the camera would allow for real-time motion detection alerts. That's beyond my capabilities (and not sure HE even supports it), but might be worth some exploration.

Dave

Thank you for writing this!
I’ve been looking for a way to tell my amcrest cameras to save a video or snap a still using a motion event from an IR sensor on my HE as a trigger. Do you think this driver will open up that possibility?

What system do you use with your Amcrest cameras for monitoring/recording? If you use Blue Iris it's easy to get the motion events to trigger Hubitat virtual motion sensors for use in automations.

Will this work with any Amcrest camera or only the ASH26 Floodlight Camera?
I have 3 amcrest cameras but none is the floodlight.
Plus what exactly will i be able to do with this driver?

I currently have 2 4K 30fps POE cams feeding into an Amcrest NVR, NV2180E-HS.

If this driver opens up the full Amcrest API, hoping it might work with either my PoE cams or the NVR.

Edit to add, I recall researching this a year ago, or so, and iirc people were suggesting to use the http post trigger that’s supported by the cameras, but the HE did not offer a way to forward the authentication (username and password) that they require.

I don’t know if it will work with your models, but I suspect it will. Currently it only turns on the floodlight, but can be modified to access anything in the API. I also read some of the previous threads and, if I remember correctly, the old community drivers were discontinued due to the move to HTTP digest authentication. This driver does that, so it may be able to be backported into some of those more robust implementations. I can’t seem to find them now, it if you want to send a link along I can pass along the info to the authors or potentially fork if they have given up supporting them.

What are the keys features folks would be looking for in a more advanced driver?

Dave

This is great, it would be wonderful to be able to control the light functions (amongst other settings) with HA! My WAF would increase significantly if even just the light on/off could be controlled. Silly question, is there an app that uses this driver - how does one integrate this?

You can control the light with the driver in the current version of the driver, no app needed. Simply install the driver code and add a new device, specifying the ASH26 device type.

Best,
Dave

Thanks for the reply, that worked! For those reading this in the future, add a virtual device using the driver and when you do it will add the device allowing you to specify the IP and credentials.

I have this running which is awesome. Have you had any thoughts on being able to enable notifications? I would love notifications when I’m not home but when I’m home turn them off.
I know I can so this with blueiris but prefer not to.

I haven't investigated that as I am also using BI for motion detection.
Dave

@david22
Doesn't seem hard I am just not a coder lol. I wonder if I can do it with a web call in Hubitat?
Method GET
Description Set Motion Detect config.
Example Enable motion detection:
http://192.168.1.108/cgi-bin/configManager.cgi?action=setConfig&MotionDetect[0].Enable=true

Might be of interest to some of you:

Dahua and Amcrest integration for cameras and doorbells - :gear: Custom Apps and Drivers - Hubitat

1 Like