Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

A HACS integration for the Camect smart home surveillance system

Notifications You must be signed in to change notification settings

pfunkmallone/HACS-camect-integration

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HACS-camect-integration

hacs_badge HACS-camect-integration Maintenance

NOTICE

I'll be shutting down this project by June 2024. Another user, Fr3d has created a better integration which I've been using for several months. Please use his solution.

What is this?

This is a simple proof-of-concept which allows users to do very basic integration between their Home-Assistant and Camect using the Home-Assistant Community Store (aka HACS)

The integration creates a camera entity. Unforunately, the camera does not support "stream" mode, so it cannot be used to broadcast to Chromecast devices via this integration.

The integration creates a camect.change_op_mode service. This service allows you to change the home/away mode of the Camect software.

This integration now (as of version v2022.05.06) also creates a camect.disable_camera_alert and camect.enable_camera_alert service. These services enable and disable alerts for individual or multiple cameras directly. See below for examples. NOTE: By disabling an alert, you are essentially disabling Camect's detection of objects, so in the GUI, you won't see "marked" alerts like you'd normally see. Recording still continues, but you cannot "jump" to interesting events by using the little bell icon in the GUI.

Important notes:

I did NOT create this integration. I simply created this repo to simplify the installation of the integration via Home Assistant Community Store (aka HACS). The original proof-of-concept integration (written by one of the Camect developers) is located HERE. The Camect developers don't use Home Assistant so they can't prioritize improvements on the integration or custom card. Ideally, they hope that users in the Home Assistant community will take on the responsibility to improve it and keep it up-to-date with Home Assistant. I am not a developer, so I'm incapable of doing so.

Prerequisites:

Installation Steps:

  • Add this repo to HACS (as type "integration")
  • Add following to $ha_config_dir/configuration.yaml
camect:
  - host: YOUR_CAMECT_HOME_LOCAL_IP
    port: 443
    username: admin
    password: admin_PASSWORD
    camera_ids: YOUR_CAMERA_IDS_SEPARATED_BY_COMMA
    id: (optional)    // provide this is you have multiple device so you can
                      // tell which camera is from which home.

NOTE Your camera_ids can be found in the Camect web GUI. Click the camera settings icon, and select the i next to the Camera Name header. You will find the id for that camera in the pop-up window.

  • Check your config
  • Restart Home Assistant

To view the Camect streams within the Lovelace interface, use the HACS-camect-custom_card for Lovelace at https://github.com/pfunkmallone/HACS-camect-custom_card

Service Examples:

Disable multiple camera alerts:

service: camect.disable_camera_alert
data:
  camera: 
    - 0586c3143fd3db8b0149
    - 0686b3142fd5db7b0343

The web UI will display the fact that it's been disabled like so:

Enable a previously disabled camera alert:

service: camect.enable_camera_alert
data:
  camera: 0586c3143fd3db8b0149

Change the operating mode of Camect:

service: camect.change_op_mode
data:
  mode: away

Options include away and home