fwestenberg / reolink_dev

Home Assistant Reolink addon
MIT License
550 stars 102 forks source link

random restarts! #304

Open Malvu opened 2 years ago

Malvu commented 2 years ago

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

cpainchaud commented 2 years ago

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!

Malvu commented 2 years ago

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

cpainchaud commented 2 years ago

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

Malvu commented 2 years ago

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

cpainchaud commented 2 years ago

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

Malvu commented 2 years ago

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

cpainchaud commented 2 years ago

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

cpainchaud commented 2 years ago

and try latest version as well, thank you

Malvu commented 2 years ago

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

Philou06 commented 2 years ago

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

cpainchaud commented 2 years ago

@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

Philou06 commented 2 years ago

@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
Malvu commented 2 years ago

2

Malvu commented 2 years ago

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

lindsaymarkward commented 2 years ago

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

cpainchaud commented 2 years ago

either use Port 443 or disable USE_HTTPS

lindsaymarkward commented 2 years ago

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.

cokeman0 commented 2 years ago

either use Port 443 or disable USE_HTTPS

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

Please :-)

Philou06 commented 2 years ago

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...

Abruzzi04 commented 2 years ago

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

weltzien commented 2 years ago

i have the same Problem. best regards Chris

weltzien commented 2 years ago

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.

dacwe commented 2 years ago

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.)

terenceng81 commented 2 years ago

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