jakowenko / double-take-hassio-addons Goto Github PK
View Code? Open in Web Editor NEWDouble Take Hass.io Add-ons
Home Page: https://github.com/jakowenko/double-take
Double Take Hass.io Add-ons
Home Page: https://github.com/jakowenko/double-take
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
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?
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
Additional context
I was able to fix it by removing SECRET_PATH
from the config.json
for the stable branch.
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! 👍
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
There some issues in this version from deepstack. Plz update to current version.
Hello.
Just asking...
I want to add the 2 other detectors to this add-on. Is it OK for you that I expand it?
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.
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!
Greetings!
DeepStack 2022.01.1 Release, please update addon.
Hi guys, is it possible to implement a version without the AVX2 requirment?
CompreFace does nativly support normal AVX.
Was wondering where that diskspace went, seemed although i uninstalled the addons the images were still there.
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
Double take proxy was working for a pretty long time. No problems at all. Since recently, it gives a 404 error.
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.
proxy_pass is hard-coded to http. Allowing a toggle between http and https would improve compatibility with ingress controllers.
(I personally use linuxserver.io's swag container and authelia to provide tls and authentication)
Hi!
I am getting error "SqliteError: database disk image is malformed" and no images or training images are available.
Please advise.
Thanks in advance for your help
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.
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
Double take addon can't connect to Deep Stack addon, maybe it's related to:
https://community.home-assistant.io/t/facial-recognition-room-presence-using-double-take-frigate/290943/342
My double take conf:
mqtt:
host: 192.168.1.101
user: **
password: **
frigate:
url: http://192.168.1.101:5000
detectors:
deepstack:
url: http://192.168.1.101:5002
timeout: 30
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.