roleoroleo / yi-hack_ha_integration

Home Assistant custom integration for Yi cameras: yi-hack-MStar, yi-hack-Allwinner, yi-hack-Allwinner-v2, yi-hack-v5 and sonoff-hack
GNU General Public License v3.0
205 stars 32 forks source link

"Error requesting stream: Camera is off" #118

Closed MosheTzvi closed 1 year ago

MosheTzvi commented 1 year ago

Latest YiHack (0.4.4) and latest FW on my Dome Cameras (.49). I can't get any stream or images to show in HA. Rebooted several times. Tried the WebRTC add-in. By default, I get a "can't get URL for camera" error. If I enable RTSP on the dome camera, then I get "mse: source 0 error: dial tcp IPOFTHEDEVICE:554: connect: connection refused" What am I doing wrong? Cameras are on and working outside of HA.

roleoroleo commented 1 year ago

Check the switch: immagine

MosheTzvi commented 1 year ago

It is in the state you have pictured.

roleoroleo commented 1 year ago

Does it work with VLC?

MosheTzvi commented 1 year ago

no image

image

roleoroleo commented 1 year ago

Please, share your system.conf file (remove personal data, if present).

MosheTzvi commented 1 year ago

HTTPD=yes TELNETD=yes SSHD=yes FTPD=yes BUSYBOX_FTPD=yes DISABLE_CLOUD=no REC_WITHOUT_CLOUD=no MQTT=yes RTSP=yes RTSP_ALT=no RTSP_STREAM=both RTSP_AUDIO= RTSP_AUDIO_NR_LEVEL=0 SPEAKER_AUDIO=yes SNAPSHOT=yes ONVIF=yes ONVIF_WSDD=yes ONVIF_PROFILE=high ONVIF_WM_SNAPSHOT=no NTPD=yes NTP_SERVER=pool.ntp.org PROXYCHAINSNG=no RTSP_PORT=554 ONVIF_PORT=80 HTTPD_PORT=8080 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=XXXXXX CRONTAB= SNAPSHOT_VIDEO=yes SNAPSHOT_LOW=no

roleoroleo commented 1 year ago

It's not critical but fix the option RTSP_AUDIO: it can't be empty. The configuration is ok but rtsp doesn't work. Check if the process is running: ps | grep RTSP

MosheTzvi commented 1 year ago

I hard rebooted and it's working now. thanks.