GithubHelp home page GithubHelp logo

jakowenko / double-take-hassio-addons Goto Github PK

View Code? Open in Web Editor NEW
101.0 8.0 43.0 269 KB

Double Take Hass.io Add-ons

Home Page: https://github.com/jakowenko/double-take

JavaScript 13.65% Dockerfile 30.41% Shell 44.71% Groovy 11.23%
home-automation mqtt face-recognition home-assistant facebox room-presence deepstack frigate compreface

double-take-hassio-addons's Introduction

double-take-hassio-addons's People

Contributors

bentasker avatar felipecrs avatar jakowenko avatar sangoku avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

double-take-hassio-addons's Issues

Can i expand your addon?

Hello.
Just asking...
I want to add the 2 other detectors to this add-on. Is it OK for you that I expand it?

[BUG] Double take exists immediately (<1s)

Describe the bug
The container starts but exists after MQTT connected is printed to console (level:silly)

Version of Double Take
1.7.0-SHA7

Expected behavior
Double take starts

Screenshots

info: Double Take v1.7.0-bf3e911
verbose: {
  auth: false,
  detect: {
    match: {
      save: true,
      base64: false,
      confidence: 60,
      purge: 168,
      min_area: 10000
    },
    unknown: {
      save: true,
      base64: false,
      confidence: 40,
      purge: 8,
      min_area: 0
    }
  },
  time: { timezone: 'UTC' },
  frigate: {
    attempts: { latest: 10, snapshot: 10, mqtt: true, delay: 0 },
    image: { height: 500 },
    labels: [ 'person' ],
    url: 'http://192.168.1.198:5000'
  },
  mqtt: {
    topics: {
      frigate: 'frigate/events',
      matches: 'double-take/matches',
      cameras: 'double-take/cameras',
      homeassistant: 'homeassistant',
      detect: [Object]
    },
    host: '***',
    username: '***',
    password: '********'
  },
  logs: { level: 'silly' },
  ui: {
    path: '',
    theme: 'bootstrap4-dark-blue',
    editor: { theme: 'nord_dark' },
    logs: { lines: 500 },
    pagination: { limit: 50 },
    thumbnails: { quality: 95, width: 500 }
  },
  detectors: { deepstack: { timeout: 15, url: '***' } },
  server: { port: 3000 },
  storage: {
    path: '/config/double-take',
    config: { path: '/config/double-take' },
    secrets: { path: './.storage/config', extension: 'yaml' },
    media: { path: '/media/double-take' },
    tmp: { path: '/dev/shm/double-take' }
  },
  version: '1.7.0-bf3e911'
}
info: MQTT: connected

This is al that is printed before the container exits with status code 1

Hardware

  • HassOS 7.0

Additional context
I was able to fix it by removing SECRET_PATH from the config.json for the stable branch.

Double-Take-Proxy results in 404 error

Double take proxy was working for a pretty long time. No problems at all. Since recently, it gives a 404 error.

image

If I manually paste the configured IP address with port number into my browser, double-take starts up just fine, it is just the proxy part which doesn't work.

There are no logs anywhere, at least, non I can find. The log of the addon just shows it is started without an issue. And inside double take the log shows no error, just faces getting recognized.

Is this something commonly?

Running the latest software i'm aware of:

Home Assistant 2023.8.2
Supervisor 2023.08.1
Frontend-versie: 20230802.0 - latest

Double take v1.13.10 on a docker host based on a pi4.

Double-take-proxy is the latest 1.0.0 version.

Compreface configuration in double take

Hello I wanted to add several detector in double take but I am not sure how to add the api key in the double take config:

my double-take config looks like this

# Double Take
detectors:
  deepstack:
    url: http://192.168.1.41:5001
    timeout: 30
  compreface:
    url: http://192.168.1.41:8000
    api_key: 5a06f69b-8cce-420a-8294-1fb1d9f646e3

AxiosError: url validation error: Request failed with status code 404

Hi,

Not sure if this is a deepstack or double-take issue, but I only see the error in double take log.
It seems it can connects for a short period, but then for no reason times-out.

Log:
22-09-15 17:26:21 info: processing Kitchen1: 1663256129.374423-7unxhg
22-09-15 17:26:43 info: done processing Kitchen1: 1663258360.425541-ozmrqi in 22.69 sec
22-09-15 17:26:43 info: {
id: '1663258360.425541-ozmrqi',
duration: 22.69,
timestamp: '2022-09-15T16:26:43.757Z',
attempts: 11,
camera: 'Kitchen1',
zones: [],
matches: [],
misses: []
}
22-09-15 17:27:07 info: processing Upstairs: 1663250294.313248-8knpek
22-09-15 17:28:27 info: processing Kitchen1: 1663259307.252954-ise4s8
22-09-15 17:28:29 info: processing Kitchen1: 1663259308.194997-ulfczx
22-09-15 17:28:29 info: processing kitchen1: db29d5d1-5fce-4cf0-955e-7b7c8e24fd70
22-09-15 17:28:29 error: AxiosError: url validation error: Request failed with status code 404
22-09-15 17:28:39 info: processing Upstairs: 1663259312.224723-gewikw
22-09-15 17:28:39 error: AxiosError: url validation error: Request failed with status code 404

Let me know if you need more info.

I am on the last version of HA.

Thanks,

Pim

Double Take: Invalid or unexpected token

After installing Double Take and starting it, I get this error:

/double-take/api/node_modules/mqtt/node_modules/ws/lib/permessage-deflate.js:1
�
^
SyntaxError: Invalid or unexpected token
    at Object.compileFunction (node:vm:360:18)
    at wrapSafe (node:internal/modules/cjs/loader:1084:15)
    at Module._compile (node:internal/modules/cjs/loader:1119:27)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1209:10)
    at Module.load (node:internal/modules/cjs/loader:1033:32)
    at Function.Module._load (node:internal/modules/cjs/loader:868:12)
    at Module.require (node:internal/modules/cjs/loader:1057:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object.<anonymous> (/double-take/api/node_modules/mqtt/node_modules/ws/lib/websocket.js:14:27)
    at Module._compile (node:internal/modules/cjs/loader:1155:14)


Any idea what the problem is and how to fix it?
I'm running HA in a Proxmox VM and that instance 6 GB of RAM.

ODroid incompatibility?

I'm running HA on an ODroid, but most of the dockers are unavailable.
Any chance to fix this?

image

image

Sensors Not Being Created

My current setup includes a RPi4 running only Frigate, a Jetson Nano running the Jetpack version of DeepStack, and an i5 laptop running Home Assistant and Double Take among the rest of the majority of my integrations and automations. There are 3 people in my house that I've been working to train and setup actionable notifications that allow them to unlock the door if they are detected and their Device is home. The problem is that not all of the sensors seems to have been created. Mine and my wife's sensors created ok, and even though I have an even in frigate and a detection in DT from DS, the sensor hasn't been created. I'm not seeing anything that pops out at me in the HA logs but I might just be overlooking something. Any suggestion or command you have that cam force a creation of the HA sensors for trained faces?

And also, thanks for this kick ass integration. This makes what I was going to do soooooooo much easier! Way to go man! 👍

RAM usage

Hi, I'm using double take with compreface in my Home Assistant installation, however compreface is using almost 4GB of RAM on it's own, which seems a bit weird to me. Is that too much? Should I give it more RAM?

Thank you!

Deepstack addon crashes on exceeding 1GB memory limit

Hi,

In my Proxmix Home Assistant OS installation the Deepstack addin crashes after a couple of hours, because I think it exceeds the (fixed?) addon memory limit of 1GB. The watchdog does not restart the addon. The addon continues to run with no cpu and ram usage. Double Take can’t connect anymore. Only a restart of the Deepstack addon resolves the problem.

frigate.events is not of a type(s) object

I had this working a few months ago but stopped my testing because life got busy. I recently started up my docker containers including frigate/deepstack/doubletake but I'm not getting this "validation" error in my logs and in the webUI.

frigate.events is not of a type(s) object

I even recreated all the containers on a new server and get green lights on mqtt, frigate and deepstack but Doubltake has a yellow light in the UI. Any advice would be appreciated.

here's my yaml:

mqtt:
  host: 192.168.1.5
  username: !secret mqtt_user
  password: !secret mqtt_pass

frigate:
  url: http://192.168.1.5:5000
  events:
  attempts:
    latest: 0
    mqtt: true

detectors:
  deepstack:
    url: http://192.168.1.5:5001
   
detect:
  match:
    # minimum confidence needed to consider a result a match
    confidence: 80
    # minimum area in pixels to consider a result a match
    min_area: 2000

  unknown:
    # minimum confidence needed before classifying a name as unknown
    confidence: 40
    # minimum area in pixels to keep an unknown result
    min_area: 1999

Version without AVX2

Hi guys, is it possible to implement a version without the AVX2 requirment?
CompreFace does nativly support normal AVX.

Double take addon keeps stopping without error

I have the Frigate Addon installed and working. I have the Deepstack CPU Addon installed. I have MQTT configured and working with other devices. I set the initial configuration for Double Take and when I start the Double Take Addon and go to the config tab I can see the green dots next to Double Take, MQTT, Frigate, and Deepstack. The log shows:

info: Double Take v1.13.1-8e2728d
info: MQTT: connected
info: MQTT: subscribed to frigate/events, frigate/+/person/snapshot

Then the Double Take dot on the config page turns red and the addon stops. No other info appears in log.

Edit: Adding info from UI log

23-02-03 20:21:05 info: Double Take v1.13.1-8e2728d
23-02-03 20:21:06 info: MQTT: connected
23-02-03 20:21:06 info: MQTT: subscribed to frigate/events, frigate/+/person/snapshot
23-02-03 20:21:28 info: Double Take v1.13.1-8e2728d
23-02-03 20:21:29 info: MQTT: connected
23-02-03 20:21:29 info: MQTT: subscribed to frigate/events, frigate/+/person/snapshot
23-02-03 20:21:49 info: Double Take v1.13.1-8e2728d
23-02-03 20:21:50 info: MQTT: connected
23-02-03 20:21:50 info: MQTT: subscribed to frigate/events, frigate/+/person/snapshot

Edit: Add config.yml

# MQTT Settings
mqtt:
  host: [homeassistant_ip_address]
  user: [mqtt_user_name]
  password: [mqtt_password]

# detector settings (default: shown below)
detectors:
  deepstack:
    url: http://[homeassistant_ip_address]:5001
    #key:
    # number of seconds before the request times out and is aborted
    timeout: 15
    # require opencv to find a face before processing with detector
    opencv_face_required: false
    # only process images from specific cameras, if omitted then all cameras will be processed
    # cameras:
    #   - front-door
    #   - garage
    
# Frigate Settings  
frigate:
  url: http://[homeassistant_ip_address]:5000

Movidius Compute Stick support?

Hi, Im have a Rpi4 running 64 bit, I also have the intel movidius compute stick. I'd like to use it with this add on. Is that possible?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.