New plugin under development - Camect

Posted on
Sun Jan 10, 2021 3:23 pm
FlyingDiver offline
User avatar
Posts: 7190
Joined: Jun 07, 2014
Location: Southwest Florida, USA

New plugin under development - Camect

Interesting gadget. Very smart object detection. https://camect.com

Got a bare-bones plugin working that receives and triggers on alerts from the device. I haven't tuned how the events are reported yet.

I won't be doing releases yet, but if you want to play along, grab the latest commit: https://github.com/FlyingDiver/Indigo-Camect

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Jan 10, 2021 8:23 pm
RogueProeliator offline
User avatar
Posts: 2501
Joined: Nov 13, 2012
Location: Baton Rouge, LA

Re: New plugin under development - Camect

Got a bare-bones plugin working that receives and triggers on alerts from the device. I haven't tuned how the events are reported yet.

Is the plugin able to connect straight to the device or does it have to go through their cloud service that they use for email alerts and such? I have no real need for the recording aspect but might be interested in the object detection (using the a secondary/RTSP stream off the cameras).

Also, if you have played with it, can you mask off parts of the view from detection/alerting? For example, I might be interested to know that UPS/FedEx are in the driveway, but I don't want it being detected on the street which is at the edge of the view.

Posted on
Sun Jan 10, 2021 8:36 pm
FlyingDiver offline
User avatar
Posts: 7190
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: New plugin under development - Camect

It connects directly to the device on your LAN. No cloud.

I haven't played with it much yet, but you can mask off both ignore areas and detection areas.

Their support forum is a Google group: https://groups.google.com/a/camect.com/g/forum
There's some interesting threads on there about optimizing detection areas.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Mon Jan 11, 2021 7:46 am
norcoscia offline
User avatar
Posts: 1206
Joined: Sep 09, 2015

Re: New plugin under development - Camect

Wanted to give this a try and provide feedback - but plug-in will not run - see error below.

BTW, thanks for taking on this project - Let me know how to send you the 100 dollar bounty (but would like to wait a ~week for my credit card to close if OK).
Attachments
2021-01-11_05-41-59.png
2021-01-11_05-41-59.png (18.53 KiB) Viewed 6385 times

_______
Norm

Posted on
Mon Jan 11, 2021 7:47 am
FlyingDiver offline
User avatar
Posts: 7190
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: New plugin under development - Camect

Try this in terminal, then restart plugin:

Code: Select all
sudo pip install urllib3


No need for the bounty, I can afford my toys. ;)

And in the future, cut and past from the Indigo log, don't do screen shots.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Mon Jan 11, 2021 9:01 am
norcoscia offline
User avatar
Posts: 1206
Joined: Sep 09, 2015

Re: New plugin under development - Camect

OK, that fixed it. Working now and getting messages from my cameras. Sorry about the screen shot - guess it was hard to read.

I will just send you the 100 dollars next week using the show your appreciation button from one of your many existing apps - I'm Italian so a deal is a deal :-)

Thanks again!!!!!

_______
Norm

Posted on
Tue Jan 12, 2021 2:54 pm
Different Computers offline
User avatar
Posts: 2533
Joined: Jan 02, 2016
Location: East Coast

Re: New plugin under development - Camect

Any chance that stills from Camnect can be pulled into an Indigo control page, and then updated over time?

Didn't see any mention of a stills-serving feature on the product site, at least not prominently.

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Posted on
Tue Jan 12, 2021 3:31 pm
FlyingDiver offline
User avatar
Posts: 7190
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: New plugin under development - Camect

Not currently, but it's a hot item on the Support Forum - https://groups.google.com/a/camect.com/ ... PLRDMPR02Q

Though there is an API call to grab a current still (not from the event) from the device. It looks like it would return a JPEG image blob. What would I do with that in the plugin to make it useful for a control page?

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Wed Jan 13, 2021 8:17 am
Different Computers offline
User avatar
Posts: 2533
Joined: Jan 02, 2016
Location: East Coast

Re: New plugin under development - Camect

FlyingDiver wrote:
Though there is an API call to grab a current still (not from the event) from the device. It looks like it would return a JPEG image blob. What would I do with that in the plugin to make it useful for a control page?



Hmm. Can't answer for everyone, but for me, copying it into the Indigo public HTML directory would be the thing. I suppose just making the destination end user configurable would be the way to go.


Thanks for thinking about it!

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Posted on
Wed Jan 13, 2021 2:26 pm
FlyingDiver offline
User avatar
Posts: 7190
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: New plugin under development - Camect

OK, for now it's just writing the image file to the IndigoWebServer directory. Name is snapshot-<camera ID>.jpg.

Be aware there's about a 4 second delay between running the snapshot image and it actually getting written to the file. And that's pretty much all on the Camect API. So I'm not sure how useful that will be for displaying an image of whatever caused the alert.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Wed Jan 13, 2021 5:15 pm
FlyingDiver offline
User avatar
Posts: 7190
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: New plugin under development - Camect

First public test release: https://github.com/FlyingDiver/Indigo-C ... /tag/0.0.1

States and events have changed, so if you were using a previous commit, edit those to fix.

Events will trigger for either alerts or mode changes. Alerts can specify the camera and the object. Or pick "any".

Camera snapshots work, but there's a delay in the device of close to 4 seconds. Don't ask me how to add them to a control page. ;). I don't use control pages.

A couple of my cameras pick up sections of the canal behind the house. The Camect thinks most boats are cars or trucks. It thinks people in crew sculls or kayaks are pedestrians.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Tue Jan 19, 2021 12:14 pm
Different Computers offline
User avatar
Posts: 2533
Joined: Jan 02, 2016
Location: East Coast

Re: New plugin under development - Camect

Thanks for this!

I've been hemming and hawing for months about SecuritySpy purchase and this may have just eliminated SS as a contender. The dev of SS got me grumbling when there was no "per camera" upgrade available between 8 and 16 cameras, because I have 12 and didn't want to lay out the cash for a 16 cam license.

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Posted on
Tue Jan 19, 2021 12:21 pm
FlyingDiver offline
User avatar
Posts: 7190
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: New plugin under development - Camect

I don't think the triggers are working right in the current version, but expect to have another one out today or tomorrow. I'm working on allowing selection of multiple objects in one trigger, so you could have one that covers all delivery services.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Jan 31, 2021 10:24 am
FlyingDiver offline
User avatar
Posts: 7190
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: New plugin under development - Camect

Posted 0.0.2 on GitHub today. Triggers are working, and you can now select multiple detection objects for one trigger.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Jan 31, 2021 12:06 pm
norcoscia offline
User avatar
Posts: 1206
Joined: Sep 09, 2015

Re: New plugin under development - Camect

Downloaded the latest (BTW in the plug-in list it is labeled 0.0.3 not 0.0.2).

I did get some errors when it updated
Error device "Camect" state key name not defined (ignoring update request)
Error device "Camect" state key cloud_url not defined (ignoring update request)
Error device "Camect" state key local_https_url not defined (ignoring update request)
Error device "Camect" state key mode not defined (ignoring update request)
Error device "Camect" state key id not defined (ignoring update request)


but it seems to be running fine. Tested a person trigger and it worked. But getting more errors in the log when the event is triggered - see below

Error device "Camect" state key last_event_type not defined (ignoring update request)
Error device "Camect" state key last_event_desc not defined (ignoring update request)
Error device "Camect" state key last_event_url not defined (ignoring update request)
Error device "Camect" state key last_event_cam_id not defined (ignoring update request)
Error device "Camect" state key last_event_cam_name not defined (ignoring update request)
Error device "Camect" state key last_event_detected not defined (ignoring update request)


PS. I set up a Mode event to trigger but not sure what that is for - does the API notify if it goes from home to away mode, or is it something else?

_______
Norm

Who is online

Users browsing this forum: No registered users and 2 guests