Closed seventhplug closed 1 year ago
On PTZ Left and Right is good. Up and Down is inverted
fields are still empty but onvif is working
BusyBox v1.27.2 () built-in shell (ash)
__ __ _
\ \ / / | |
\ \/ / | |
\ / | |
/ / | |
/_/ |_|
------------------------------------
Welcome to XiaoYi Linux.
------------------------------------
root@Gavin:~# /tmp/sd/yi-hack/bin/onvif_srvd --conf_file=/tmp/onvif_srvd.conf
root@Gavin:~# Error 28 fault detected[no subcode]
"Address in use"
Detail: bind failed in soap_bind()
root@Gavin:~# cat /tmp/onvif_srvd.conf
pid_file=/var/run/onvif_srvd.pid
model=Yi Hack
manufacturer=Yi
firmware_ver=0.1.7
hardware_id=
serial_num=
ifs=wlan0
port=80
scope=onvif://www.onvif.org/Profile/S
#Profile 0
name=Profile_0
width=1920
height=1080
url=rtsp://%s/ch0_0.h264
snapurl=http://%s:8080/cgi-bin/snapshot.sh?res=high
type=H264
#PTZ
ptz=1
move_left=/tmp/sd/yi-hack/bin/ipc_cmd -M left
move_right=/tmp/sd/yi-hack/bin/ipc_cmd -M right
move_up=/tmp/sd/yi-hack/bin/ipc_cmd -M up
move_down=/tmp/sd/yi-hack/bin/ipc_cmd -M down
move_stop=/tmp/sd/yi-hack/bin/ipc_cmd -M stop
move_preset=/tmp/sd/yi-hack/bin/ipc_cmd -p %t
root@Gavin:~#
Thank you for supporting this device ^_^ i'll make time to study mqtt for my next pi iot project
I have the same Cam for testing here, LFUS on the sticker, can test things too
I have the same Cam for testing here, LFUS on the sticker, can test things too
Yes please help us test... More tester the better 😁
On PTZ Left and Right is good. Up and Down is inverted
Ok, I will fix it
fields are still empty but onvif is working
Run this command and post the output:
dd bs=1 count=20 skip=784 if=/tmp/mmap.info 2>/dev/null | cut -c1-20
Hi, here's the output ^_^ Don't forget the Dark Mode on your final release. Thank you again and again
login as: root
BusyBox v1.27.2 () built-in shell (ash)
__ __ _
\ \ / / | |
\ \/ / | |
\ / | |
/ / | |
/_/ |_|
------------------------------------
Welcome to XiaoYi Linux.
------------------------------------
root@Gavin:~# dd bs=1 count=20 skip=784 if=/tmp/mmap.info 2>/dev/null | cut -c1-
20
LFUSY60P6QLD9P210126
root@Gavin:~#
Hi @roleoroleo , could you tell me if these functions are already tested and working for the Dome U Pro or if they still need to be tested using the MQTT protocol: Camera on / off (privacy mode) AI human detection Motion detection
If I want to buy the same model (so as to do it also as a beta tester), how can I know in advance the firmware version and the prefix file if I buy through the online site?
Thank you
Hi @roleoroleo , could you tell me if these functions are already tested and working for the Dome U Pro or if they still need to be tested using the MQTT protocol: Camera on / off (privacy mode) AI human detection Motion detection
Actually not tested but probably working. When I add a new supported model, normally it's not necessary to customize these features.
If I want to buy the same model (so as to do it also as a beta tester), how can I know in advance the firmware version and the prefix file if I buy through the online site?
It's not possible.
@seventhplug The offset 784 is ok. The new system.sh should work. See the last commit.
Dark mode is already commited.
@seventhplug The offset 784 is ok. The new system.sh should work. See the last commit.
Dark mode is already commited.
Thank you very much
will this be compiled and added to the releases?
Yes, next release.
Yes, next release.
I can update thru webinterface right? ^_^ I'll also apply this hack to my other Yi U Dome Pro.
Hi @roleoroleo , could you tell me if these functions are already tested and working for the Dome U Pro or if they still need to be tested using the MQTT protocol: Camera on / off (privacy mode) AI human detection Motion detection
Actually not tested but probably working. When I add a new supported model, normally it's not necessary to customize these features.
If I want to buy the same model (so as to do it also as a beta tester), how can I know in advance the firmware version and the prefix file if I buy through the online site?
It's not possible.
Thanks for the reply, I try to buy it on amazon, in case I ask for a return.
Just so as not to make a mistake with the model, is this the model we are discussing?
https://www.amazon.it/Videocamera-Sorveglianza-Intelligenza-Artificiale-Bidirezionale/dp/B08RDFMD1Z/
If I take it we try the MQTT part
Thanks again
Hi @roleoroleo , could you tell me if these functions are already tested and working for the Dome U Pro or if they still need to be tested using the MQTT protocol: Camera on / off (privacy mode) AI human detection Motion detection
Actually not tested but probably working. When I add a new supported model, normally it's not necessary to customize these features.
If I want to buy the same model (so as to do it also as a beta tester), how can I know in advance the firmware version and the prefix file if I buy through the online site?
It's not possible.
Thanks for the reply, I try to buy it on amazon, in case I ask for a return.
Just so as not to make a mistake with the model, is this the model we are discussing?
https://www.amazon.it/Videocamera-Sorveglianza-Intelligenza-Artificiale-Bidirezionale/dp/B08RDFMD1Z/
If I take it we try the MQTT part
Thanks again
Yes thats the one.. you'll be a big help in developing mqtt. I dont know anything about it at the moment
I can update thru webinterface right?
Yes.
Hi @roleoroleo , could you tell me if these functions are already tested and working for the Dome U Pro or if they still need to be tested using the MQTT protocol: Camera on / off (privacy mode) AI human detection Motion detection
Actually not tested but probably working. When I add a new supported model, normally it's not necessary to customize these features.
If I want to buy the same model (so as to do it also as a beta tester), how can I know in advance the firmware version and the prefix file if I buy through the online site?
It's not possible.
Thanks for the reply, I try to buy it on amazon, in case I ask for a return. Just so as not to make a mistake with the model, is this the model we are discussing? https://www.amazon.it/Videocamera-Sorveglianza-Intelligenza-Artificiale-Bidirezionale/dp/B08RDFMD1Z/ If I take it we try the MQTT part Thanks again
Yes thats the one.. you'll be a big help in developing mqtt. I dont know anything about it at the moment
OK! Thanks
Is there anything I can help with at the moment to get this into the next release?
No. Simply I have to complete some other tasks and publish the new release.
is MQTT tested?
I have an mqtt server I could test it if you say how
Configure the cam with the ip address of your mqtt server and check if the cam sends the messages:
No. Simply I have to complete some other tasks and publish the new release.
Done.
Thank you very much for your hardwork.
Just tested 0.1.8 everything works except on ptz up and down still inverted. Thanks
Hi! I'm adding to this thread as well, let me know if need any additional help or testing.
I'm currently testing release 0.1.8 with no changes, looks like the camera reboots or gets stuck whenever I try to get a screenshot in high quality. Also happens when using Homeassistant ONVIF integration.
EDIT: Looks like this is happening because of lack memory resources. Added Swap enable and seems to work now.
Here is the evidence about PTZ Up/Down inverted. Sorry I've been busy this few days https://user-images.githubusercontent.com/23691755/122859353-7e037e00-d34e-11eb-83ef-10b44459d9d9.mp4
hi @roleoroleo , I just got the Dome U Pro.
I saw it has DID: LFUSY60X17 with firmware 9.0.27.10_202101202037, but it asks for update 9.0.27.19_202105131533 to work.
I can't find the prefix file to see compatibility with your component.
Where can I see it? I have this other info (YHS6020), if they can be useful to verify the possibility of installing your component.
Thanks
The suffix is h60ga.
The suffix is h60ga.
Thanks for the quick reply.
Can I update the original firmware and then follow the procedure for your custom?
Hi @roleoroleo i installed your firmware, but unfortunately i have frequent reboots of the device.
I tried several MicroSD, but the problem remained.
Every now and then the LED turns yellow and the cam restarts.
What can I do?
hi @roleoroleo , I just got the Dome U Pro.
I saw it has DID: LFUSY60X17 with firmware 9.0.27.10_202101202037, but it asks for update 9.0.27.19_202105131533 to work.
I can't find the prefix file to see compatibility with your component.
Where can I see it? I have this other info (YHS6020), if they can be useful to verify the possibility of installing your component.
Thanks
I updated it first before applying the hack.
Hi @roleoroleo i installed your firmware, but unfortunately i have frequent reboots of the device.
I tried several MicroSD, but the problem remained.
Every now and then the LED turns yellow and the cam restarts.
What can I do?
At first it will do that several times before settling in.. i hope you setup your cam first before applying the firmware. I havent tried a fresh 0.1.8 install on my other cam. Im using original 64gb and 128gb sandisk microsd xc1 class 10
hi @roleoroleo , I just got the Dome U Pro. I saw it has DID: LFUSY60X17 with firmware 9.0.27.10_202101202037, but it asks for update 9.0.27.19_202105131533 to work. I can't find the prefix file to see compatibility with your component. Where can I see it? I have this other info (YHS6020), if they can be useful to verify the possibility of installing your component. Thanks
I updated it first before applying the hack.
Hi @roleoroleo i installed your firmware, but unfortunately i have frequent reboots of the device. I tried several MicroSD, but the problem remained. Every now and then the LED turns yellow and the cam restarts. What can I do?
At first it will do that several times before settling in.. i hope you setup your cam first before applying the firmware. I havent tried a fresh 0.1.8 install on my other cam. Im using original 64gb and 128gb sandisk microsd xc1 class 10
Hi, i installed the firmware update before carrying out the hack procedure
What do you mean by setting up my cam before the hack?
Now I am trying the MQTT commands
hi @roleoroleo I'm testing the sensors via MQTT:
Yi Camera Switch Status = YES Yi Camera Status Led = YES Yi Camera Rotate = YES Yi Camera IR Led = YES Yi Camera Sound Detection = YES every 10 minutes
Yi Camera Human Detection = Not always
Yi Camera Movement = NO
PS cam restarts still happen very frequently. I tried to insert class 10 U1 A1 SD card
Yi Camera Sound Detection = Not always
The sound detection event is only every 10 minutes.
PS cam restarts still happen very frequently. I tried to insert class 10 U1 A1 SD card
Is swap enabled?
Yi Camera Sound Detection = Not always
The sound detection event is only every 10 minutes.
PS cam restarts still happen very frequently. I tried to insert class 10 U1 A1 SD card
Is swap enabled?
Thanks for the reply, I was timing and I realized that after 10 minutes it detects the sound again, I didn't understand if it depended on the hack or the official app.
On home assistant I saw that when it detects the sound, it remains in "detected" for about 55 seconds, then returns to "absent", but you always have to wait 10 minutes before the next detection.
As for "camera human detect", how does the detection work? How soon is it detected after the first detection? At least I don't go crazy with the stopwatch :-) On Home Assistant, however, it got stuck on "detected", even restarting the cam.
As for the swap file, if you refer to this option "Enable swap file on SD card. This option will create a file (/ tmp / sd / swapfile) to expand your memory." I left it disabled as default. If you want I try to enable it
Do you know how to activate this display with MQTT sensor?
type: picture-entity entity: camera.yi_camera_motion_detection_image
Hi @seventhplug , Were you able to enable motion detection (no Human Detection) to preview the image detected after the motion event?
I tried to disable the AI Human Detection function in the camera setting, but it still does not detect movement and does not show any image.
Sound detection and human detection work fine, but they don't show the last detected image
Thanks
Hi @seventhplug , Were you able to enable motion detection (no Human Detection) to preview the image detected after the motion event?
I tried to disable the AI Human Detection function in the camera setting, but it still does not detect movement and does not show any image.
Sound detection and human detection work fine, but they don't show the last detected image
Thanks
Yes detection is fine. And i can see the preview recorded movements on Yi App and on the Web Interface. no AI Human detection. It can detect all kinds of movements even detects light movements (car headlights passing by) and tiny bugs on IR nightmode
Hi @seventhplug
Through APP YI I can view the movement, but through WEB / Home Assistant the simple movement with the last image is not detected. What settings in the web panel have you configured?
I have this setup, but motion is not detected:
If I enable AI Human Detect, however, human movement is detected, but I do not have the photo display because the sensor for the last humn detect image has not yet been implemented.
Thanks
I dont use Camera Settings on Web Interface.. I didn't touch it. I only use Yi App for camera settings
Hi @seventhplug
Have you integrated the Dome U Pro into the home assistant? It is in the home assistant that I cannot detect simple movement, but only the human detect
Home Assistant:
@SmartM-ui How did you configure ha? "Yi Camera Motion Detection Image" is an mqtt cam (ha side). When the cam detects a motion it sends a binary message to the mqtt topic containing the jpeg image. HA knows this format and shows (normally) the picture.
@SmartM-ui How did you configure ha? "Yi Camera Motion Detection Image" is an mqtt cam (ha side). When the cam detects a motion it sends a binary message to the mqtt topic containing the jpeg image. HA knows this format and shows (normally) the picture.
Hi @roleoroleo this is the code I entered in Home Assistant:
type: picture-entity entity: camera.yi_camera_motion_detection_image show_state: false http://192.168.1.xxx:8080/cgi-bin/snapshot.sh?res=high&watermark=yes
or
type: picture-entity entity: camera.yi_camera_motion_detection_image show_state: false
Can you tell me where I went wrong? THANK YOU
PS From the control page http://192.168.1.xxx:8080/?page=snapshot I can instead see the image taken
This is my config:
type: picture-entity
entity: camera.yi_hack_mstar_xxxxxxxxxxxx_motion_detection_cam
But how did you configure your configuration.yaml? Are you using my custom component or a manual configuration?
This is my config:
type: picture-entity entity: camera.yi_hack_mstar_xxxxxxxxxxxx_motion_detection_cam
But how did you configure your configuration.yaml? Are you using my custom component or a manual configuration?
Hi @roleoroleo I use your integration in HACS (yi-hack Home Assistant integration) and your integration (yi-hack-allwinner-v2-a09f1070e199 Yi Cam with yi-hack)
I have these sensors: camera.yi_camera_motion_detection_image camera.yi_hack_allwinner_v2_a09f1070e199_motion_detection_cam camera.yi_hack_allwinner_v2_a09f1070e199_cam
I tried like this, but it doesn't work: type: picture-entity entity: camera.yi_hack_allwinner_v2_a09f1070e199_motion_detection_cam
I tried like this, but it doesn't work: type: picture-entity entity: camera.yi_hack_allwinner_v2_a09f1070e199_motion_detection_cam
This is correct. It should work.
I tried like this, but it doesn't work: type: picture-entity entity: camera.yi_hack_allwinner_v2_a09f1070e199_motion_detection_cam
This is correct. It should work.
Hi @roleoroleo
Thanks for the reply, could it be that it does not show the image because the Yi Camera Movement sensor is always "absent" and only the Yi Camera Human Detection sensor is detected? But on the page http://192.168.1.xxx:8080/?page=snapshot the snapshot that is taken when it detects the AI Human Detection is shown
Yes. As you can read here https://github.com/roleoroleo/yi-hack-Allwinner-v2/issues/75 there is a conflict between human detection and motion detection. If motion detection doesn't toggle, the cam doesn't capture the snapshot.
Hello, I had tried to disable AI Human Detection from YIHack and restart the cam again via YIHack, but still it did not detect anything.
This morning I try to delete all the photos and videos from the microSD and try again.
See you later
Hi I bought a Yi Dome U Pro 2K (BLACK) Camera i thought it would be supported. I hope you can please add this camera to your supported device.. Thank you. It has a Device ID: LFUS