Skip to content
This repository has been archived by the owner on Mar 19, 2023. It is now read-only.

HA Entity state not updating #45

Closed
cigas4 opened this issue May 15, 2021 · 10 comments
Closed

HA Entity state not updating #45

cigas4 opened this issue May 15, 2021 · 10 comments

Comments

@cigas4
Copy link

cigas4 commented May 15, 2021

Hi, I am trying to run deepstack face recognition on my HA.
HASS is running on rpi4, and deepstack is running on another rpi4. Issue what I am facing at the moment is that I dont get any recognition update on entity inside HA. State of this entity always stays Unknown. However if I check deepstack on another rpi4 I can see my recognition request from HA, so not sure what is wrong. Are there any log files on HA or on deepstack side?
So ether recognition is not accuring or recognition result is not geting back to HA.
I am also running frigate container together with deepstack on same rpi4, not sure if it can have some effect.

HA config:

  • platform: deepstack_face
    ip_address: 192.168.31.13
    port: 80
    timeout: 5
    detect_only: False
    save_file_folder: /config/www/snapshots/
    save_timestamped_file: True
    save_faces: True
    save_faces_folder: /config/www/faces/
    show_boxes: True
    source:
    - entity_id: camera.entrance_person
    name: deepstack_face_recognition

Screenshot 2021-05-15 at 15 08 07

Screenshot 2021-05-15 at 15 06 45

@hristo-atanasov
Copy link

I'm running HASS Deepstack face on docker on windows PC and I have the same problem.

@DivanX10
Copy link

Watch this video, maybe this will help you
Посмотрите это видео, возможно это вам поможет

@cigas4
Copy link
Author

cigas4 commented May 17, 2021

Also when I start deepstack it says "visit local host to activate Deepstack". Maybe it needs some kind of activation to work? Unfortunately cant find any info on activation.. If I enter random key it says "Can't reach activation server".

Screenshot 2021-05-17 at 08 57 11

@DivanX10
Copy link

DivanX10 commented May 17, 2021 via email

@cigas4
Copy link
Author

cigas4 commented May 17, 2021

You have installed deepstack version 1.0, which means you have it installed on raspberry. I personally encountered this when I tried to install it on a raspberry. Deepstack has dropped support for raspberry. You need to install the latest version, and this is version 2 and it is already activated Вы установили deepstack версии 1.0, а значит у вас это установлено на raspberry. Сам лично сталкивался с этим, когда пытался установить на raspberry. Deepstack прекратил поддержку для raspberry. Нужно ставить последнюю версию, а это версия 2 и она уже активированная пн, 17 мая 2021 г., 9:01 Andrius @.***>:

Hi, Thanks for info. Is version 2 even available for PI?

@DivanX10
Copy link

DivanX10 commented May 17, 2021 via email

@cigas4
Copy link
Author

cigas4 commented May 17, 2021

Unfortunately for raspberry, images are no longer made. At the moment there is only this deepstack v 1.0 image that requires activation. You can install deepstack v 2 on windows, linux, docker К сожалению для raspberry больше не делают образы. На данный момент есть только этот образ deepstack v 1.0 который требует активации. Вы можете установить deepstack v 2 на windows, linux, docker пн, 17 мая 2021 г., 10:08 Andrius @.***>:

I am running docker on same rpi4. Also tried installing deepstack docker container, but there was some issues running it.. Only this method with image was working. Maybe need to check it again.

For installation I used this script:

#!/bin/bash
echo "Setting Up Prerequisites."
sudo apt-get update
sudo apt-get install redis-server -y
sudo apt-get install libatlas-base-dev libjpeg-dev -y
py=python3.7
$py --version
py_check=$?
if [ $py_check -ne 0 ]
then
py=python3.5
fi
sudo $py -m pip install numpy --upgrade
status=$?
if [ $status -ne 0 ]
then
exit
fi
sudo $py -m pip install scipy --upgrade
status=$?
if [ $status -ne 0 ]
then
exit
fi
sudo $py -m pip install pillow --upgrade
status=$?
if [ $status -ne 0 ]
then
exit
fi
sudo $py -m pip install redis --upgrade
status=$?
if [ $status -ne 0 ]
then
exit
fi
echo "Getting DeepStack"
sudo rm deepstack.deb
wget https://deepquest.sfo2.digitaloceanspaces.com/deepstack/deepstack.deb
echo "Installing DeepStack"
sudo dpkg -i deepstack.deb
sudo rm deepstack.deb
status=$?
if [ $status -eq 0 ]
then
echo 'DeepStack installed, run with sudo deepstack start "VISION-SCENE=True"'
fi

@DivanX10
Copy link

DivanX10 commented May 17, 2021

I was unable to run docker on the PI. I have successfully launched only on synology and on vmware with Hass OS with portainer integration
Мне не удалось запустить docker на PI. Я успешно запустил только на synology и на vmware с Hass OS c интеграцией portainer

Read on the forum deepstack
Почитайте на форуме deepstack

The answer of the author himself is that pi will no longer be supported and they go completely to docker
Ответ самого автора, что pi больше не будет поддерживаться и они уходят полностью в docker
image
VorlonCD/bi-aidetection#65 (comment)

@robmarkcole
Copy link
Owner

Is this still an issue on latest deepstack image?

@robmarkcole
Copy link
Owner

stale closing

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants