reolink_dev icon indicating copy to clipboard operation
reolink_dev copied to clipboard

random restarts!

Open Malvu opened this issue 4 years ago • 24 comments

Hello,

User of your integration for a while, I realize that every time I activate audio or video recording, my Reolink E1 Zoom camera makes random restarts!

Model: E1 Zoom UID: 95270001FJ23SG48 Build: build 21040708 Hardware No: IPC_515SD6 Config version: v3.0.0.0 Firmware version: v3.0.0.247_21040708 Details: IPC_515SD6S10E0W31100000001

Has anyone encountered this problem?

Sincerely Pierre

Malvu avatar Oct 09 '21 15:10 Malvu

Please enable debugging and post applications logs:

logger:
  logs:
    custom_components.reolink_dev: debug
    custom_components.reolink_dev.base.data: warning
    reolink: debug

and provide logs, thank you!

cpainchaud avatar Oct 11 '21 07:10 cpainchaud

Please enable debugging and post applications logs:

logger:
  logs:
    custom_components.reolink_dev: debug
    custom_components.reolink_dev.base.data: warning
    reolink: debug

and provide logs, thank you!

I do not ask better to do it if you explain to me or introduce this command

Malvu avatar Oct 23 '21 16:10 Malvu

https://www.home-assistant.io/integrations/logger/

cpainchaud avatar Oct 25 '21 08:10 cpainchaud

https://www.home-assistant.io/integrations/logger/

Cette erreur provient d'une intégration personnalisée

Logger: custom_components.reolink_dev.base Source: custom_components/reolink_dev/base.py:84 Integration: Reolink IP camera (documentation, issues) First occurred: 23:19:42 (1 occurrences) Last logged: 23:19:42

Port 80 is used, USE_HTTPS set back to False

I don't see how to change the port or possibly go through MQTT

Malvu avatar Oct 25 '21 21:10 Malvu

I need all logs after a restart of Core, thank you

cpainchaud avatar Oct 26 '21 08:10 cpainchaud

I need all logs after a restart of Core, thank you Nouveau document texte (6).txt

Malvu avatar Oct 26 '21 17:10 Malvu

please don't enable DEBUG globally, only on the elements we requested. This is way too much logs :)

cpainchaud avatar Nov 02 '21 08:11 cpainchaud

and try latest version as well, thank you

cpainchaud avatar Nov 02 '21 08:11 cpainchaud

and try latest version as well, thank you

I'm coming back to you because my concern still doesn't seem to be resolved

Log HASS.txt

Malvu avatar Nov 25 '21 15:11 Malvu

Have the same issue with same Reolink E1 Zoom:

Port 80 is used, USE_HTTPS set back to False
17:35:06 – (ATTENTION) Reolink IP camera (intégration personnalisée) - message survenu pour la première fois à 17:35:06 et apparu 2 fois.

Home Assistant OS 6.6 core-2021.11.5 supervisor-2021.10.8 HACS Addon v0.42

Philou06 avatar Dec 03 '21 16:12 Philou06

@Malvu Logs are showing that you are using port 443 (HTTPS) but didn't enable "USE HTTPS" option. You think you need to reconfigure that part and/or post screenshot showing your camera configuration from the UI

cpainchaud avatar Dec 03 '21 19:12 cpainchaud

@cpainchaud could you tell me where you set the option USE HTTPS to true or false to avoid this error, please? Because for me it seems it is currently on "true" but I checked my 2 cams configuration and they are on port 80 with no other choice : image

Philou06 avatar Dec 04 '21 08:12 Philou06

2

Malvu avatar Dec 04 '21 20:12 Malvu

in my opinion, this comes mainly from the fact that port 80 and 443 are redirected from the router to Nginx Proxy Manager and therefore no longer usable as it is for the Reolink addon. moreover this happens ONLY when the video and audio recording are activated

Malvu avatar Dec 04 '21 21:12 Malvu

Is there a way to avoid this "Port 80 is used, USE_HTTPS set back to False" warning? I'm using SWAG (NGINX).

lindsaymarkward avatar Jan 13 '22 04:01 lindsaymarkward

either use Port 443 or disable USE_HTTPS

cpainchaud avatar Jan 13 '22 08:01 cpainchaud

Thanks for the reply, @cpainchaud - but I don't know where to do either of those. In the HA component settings (via HA Configuration UI > Integrations > Reolink camera > Configure), I see options, but not for port or HTTPS (I see protocol, stream, motion sensor timeout...). In the Reolink camera's settings page, I have a bunch of options including a list of port numbers, but it doesn't say which to use. Can you please point me/us in the right direction? Thanks.

lindsaymarkward avatar Jan 13 '22 10:01 lindsaymarkward

either use Port 443 or disable USE_HTTPS

Can you please explain how to "disable USE_HTTPS" ???

Please :-)

cokeman0 avatar Jan 26 '22 22:01 cokeman0

Can you please explain how to "disable USE_HTTPS" ???

I think that what @cpainchaud mean is to change integration params when you choose: Integrations > Reolink IP camera > image

Here you can disable HTTPS... But, as I had Port 80 is used, USE_HTTPS set back to False error too, since latest updates for this integration, I have no more this error even I use HTTPS...

Philou06 avatar Jan 27 '22 08:01 Philou06

is there any way to disable https without having to re-add the camera?

Abruzzi04 avatar Apr 18 '22 21:04 Abruzzi04

i have the same Problem. best regards Chris

weltzien avatar May 10 '22 19:05 weltzien

ok, as workaround i changed some variables in the files:

/config/custom_components/reolink_dev/base.py

################line 80 if CONF_USE_HTTPS not in config: #self._use_https = DEFAULT_USE_HTTPS self._use_https = False else: ############

and in /config/custom_components/reolink_dev/const.py ######### line 27 #DEFAULT_USE_HTTPS = True DEFAULT_USE_HTTPS = False

afterwards it was working again.

weltzien avatar May 10 '22 19:05 weltzien

Unfortunately my camera also restarted frequently when using this so I had to change to use the ONVIF integration which have worked without any issues. (I'm now sending ptz commands using shell_command and som curl commands.)

Don't know what is causing this. Maybe the encrypting and decrypting HTTPS traffic is too much for the camera or maybe sending too many commands to it makes it choke.

(I tried disabling HTTPS but don't know if I succeeded because it still restarted.)

dacwe avatar May 11 '22 00:05 dacwe

I have exactly the same issue.. any idea?

no issue if I use generic camera..

The issue happens only when I use the reolink custom integration

terenceng81 avatar Aug 27 '22 15:08 terenceng81