roleoroleo / yi-hack-MStar

Custom firmware for Yi 1080p camera based on MStar platform
GNU General Public License v3.0
847 stars 112 forks source link

Error from stream worker: Error opening stream (ERRORTYPE_111, Connection refused) rtsp://192.168.1.187/ch0_0.h264 #538

Closed GiaMisu closed 3 months ago

GiaMisu commented 7 months ago

Hi, I'm looking for support for my Yi-hack MStar, i have a log issue in home assistant

my configuration:

Firmware Version | 0.5.4 Base Version | 4.5.0.0C_201910080934 Model Suffix | y203c Serial Number | 4FUSY21KO****

/home/yi-hack/etc # cat system.conf HTTPD=yes TELNETD=yes SSHD=yes FTPD=yes BUSYBOX_FTPD=no DISABLE_CLOUD=yes REC_WITHOUT_CLOUD=yes MQTT=yes RTSP=yes RTSP_ALT=no RTSP_STREAM=high RTSP_AUDIO=pcm RTSP_AUDIO_NR_LEVEL=0 SPEAKER_AUDIO=yes SNAPSHOT=yes SNAPSHOT_VIDEO=no SNAPSHOT_LOW=no TIMELAPSE=no TIMELAPSE_FTP=no TIMELAPSE_FTP_SAME_NAME=no TIMELAPSE_DT=60 TIMELAPSE_VDT= ONVIF=yes ONVIF_WSDD=yes ONVIF_PROFILE=high ONVIF_WM_SNAPSHOT=yes TIME_OSD=no NTPD=yes NTP_SERVER=pool.ntp.org PROXYCHAINSNG=no RTSP_PORT=554 HTTPD_PORT=80 USERNAME= PASSWORD= FREE_SPACE=0 FTP_UPLOAD=no FTP_HOST= FTP_DIR= FTP_DIR_TREE=no FTP_USERNAME= FTP_PASSWORD= FTP_FILE_DELETE_AFTER_UPLOAD=yes SSH_PASSWORD= CRONTAB= DEBUG_LOG=no

Log error:

Logger: homeassistant.components.stream.stream.camera.yi_hack_m_03c4bb_cam Source: components/stream/init.py:431 Integration: Stream (documentation, issues) First occurred: 09:07:28 (6 occurrences) Last logged: 09:11:38 Error from stream worker: Error opening stream (ERRORTYPE_111, Connection refused) rtsp://192.168.1.187/ch0_0.h264

The binary_sensor.yi_hack_m_03c4bb_motion_detection always remains active.

Cattura

Cattura1

I formatted the SD and flashed the firmware several times, also downgrading to version 0.5.2 and then bringing it back to version 0.5.4 by performing the flash manually following the procedure described but the error messages continue to appear, I also deleted the yi-hack_ha_integration integration by deleting it from the folder inside HA and restarting HA and then reinstalling it, strange that everything works correctly anyway.

I honestly don't understand what I can do to eliminate the error logs, I've looked for guides but none have solved the problem, RTSP works, otherwise streaming wouldn't work but why the message?

roleoroleo commented 7 months ago

I think the cam is disabled. Swith on the cam with the switch in ha.

GiaMisu commented 7 months ago

I think the cam is disabled. Swith on the cam with the switch in ha.

the cam activates and deactivates without problems from HA but the RTSP connection refused error appears in the logs when it is turned off and on lovelace the cam goes off and then becomes "unavailable" and after 1 minute it correctly returns to off, it is strange behavior, furthermore after updating to version 0.5.4 the entity The binary_sensor.yi_hack_m_03c4bb_motion_detection always remains active, the "sgombro" function does not seem to work correctly as you can see in the image I posted above.

roleoroleo commented 7 months ago

Try to remove the cam and add it again.

github-actions[bot] commented 4 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.