Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Notification email switch entity missing #464

Open
chris626w opened this issue Mar 8, 2022 · 13 comments
Open

Notification email switch entity missing #464

chris626w opened this issue Mar 8, 2022 · 13 comments

Comments

@chris626w
Copy link

I had a single RLC-520A with quite an old firmware version probablyV3.0.0.177, running successfully with the Reolink IP Camera integration, release v0.46.

Yesterday (2022-03-07) I upgraded the existing camera firmware to the latest v3.1.0.764 and at the same time added 2 new 520A cameras to the Reolink integration. Since doing this, the email notification switch entity is no longer connected for any of the 3 cameras. However email notification is still available in the Reolink app.

The email switch entity is an important part of controlling the cameras from Home Assistant. Below are 2 excerpts from the log referencing the Reolink integration. The original camera where the email switch had worked is outside_rear.

Is this a problem with the camera firmware update or with the Reolink integration? Either way is it something that could be investigated and be corrected?

2022-03-07 19:52:57 ERROR (MainThread) [custom_components.reolink_dev.base] Host 192.168.0.71 subscription failed to its webhook, base object state will be set to NotAvailable
2022-03-07 19:52:57 ERROR (MainThread) [custom_components.reolink_dev.base] Host 192.168.0.71 error renewing the Reolink subscription
2022-03-07 19:52:58 ERROR (MainThread) [custom_components.reolink_dev.base] Host 192.168.0.72 subscription failed to its webhook, base object state will be set to NotAvailable
2022-03-07 19:52:58 ERROR (MainThread) [custom_components.reolink_dev.base] Host 192.168.0.73 subscription failed to its webhook, base object state will be set to NotAvailable
2022-03-07 19:52:58 ERROR (MainThread) [custom_components.reolink_dev.base] Host 192.168.0.72 error renewing the Reolink subscription
2022-03-07 19:52:58 ERROR (MainThread) [custom_components.reolink_dev.base] Host 192.168.0.73 error renewing the Reolink subscription

2022-03-07 19:53:00 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.outside_rear] Error from stream worker: Error opening stream (ERRORTYPE_111, Connection refused) rtsp://:@192.168.0.71:554/h264Preview_01_sub
2022-03-07 19:53:10 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.outside_rear] Error from stream worker: Error opening stream (ERRORTYPE_111, Connection refused) rtsp://:@192.168.0.71:554/h264Preview_01_sub
2022-03-07 19:53:30 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.outside_rear] Error from stream worker: Error opening stream (ERRORTYPE_111, Connection refused) rtsp://:@192.168.0.71:554/h264Preview_01_sub
2022-03-07 19:53:58 ERROR (MainThread) [custom_components.reolink_dev.base] Host 192.168.0.73 error renewing the Reolink subscription
2022-03-07 19:53:58 ERROR (MainThread) [custom_components.reolink_dev.base] Host 192.168.0.72 error renewing the Reolink subscription
2022-03-07 19:53:58 ERROR (MainThread) [custom_components.reolink_dev.base] Host 192.168.0.71 error renewing the Reolink subscription
2022-03-07 19:54:00 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.outside_rear] Error from stream worker: Error opening stream (ERRORTYPE_111, Connection refused) rtsp://:@192.168.0.71:554/h264Preview_01_sub
2022-03-07 19:54:40 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.outside_rear] Error from stream worker: Error opening stream (ERRORTYPE_111, Connection refused) rtsp://:@192.168.0.71:554/h264Preview_01_sub
2022-03-07 19:54:58 ERROR (MainThread) [custom_components.reolink_dev.base] Host 192.168.0.71 error renewing the Reolink subscription
2022-03-07 19:54:58 ERROR (MainThread) [custom_components.reolink_dev.base] Host 192.168.0.72 error renewing the Reolink subscription
2022-03-07 19:54:58 ERROR (MainThread) [custom_components.reolink_dev.base] Host 192.168.0.73 error renewing the Reolink subscription
2022-03-07 19:55:30 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.outside_rear] Error from stream worker: Error opening stream (ERRORTYPE_111, Connection refused)

@cpainchaud
Copy link
Collaborator

HA 2022.3 not supported yet. Sorry

@chris626w
Copy link
Author

Thanks for getting back! Is there anywhere I can see supported HA versions?

@chris626w
Copy link
Author

I have just deleted all the cameras and then reinstalled one to check logs. These errors came back which may be helpful for bug fixing

Host 192.168.0.71 error renewing the Reolink subscription
15:05:42 – (ERROR) Reolink IP camera (custom integration) - message first occurred at 15:04:42 and shows up 2 times
Detected code that uses str (config) for entity category. This is deprecated and will stop working in Home Assistant 2022.4, it should be updated to use EntityCategory instead. Please report this issue.
15:04:42 – (WARNING) helpers/frame.py - message first occurred at 15:04:42 and shows up 6 times
Host 192.168.0.71 subscription failed to its webhook, base object state will be set to NotAvailable
15:04:42 – (ERROR) Reolink IP camera (custom integration)

@cpainchaud
Copy link
Collaborator

please try 0.51 , now please note that if you keep mixing internal non-HTTP with external HTTPS address, it's not supported by HomeAssistant themselves

@chris626w
Copy link
Author

chris626w commented Mar 17, 2022 via email

@pedro042
Copy link

Hi, I'm new to HA, installed today ;).
I have two E1 Zoom and two 520A cameras. HA is 2022.4.6, reolink_dev cloned from github. I agree, in 520A e-mail switch is not available. On E1 Zoom it is.

@pedro042
Copy link

New information - just installed ONVIF integration and email setting is missing too.
There is very recent firmware released 18-Apr-2022.
10. Solved some bugs of Email alert
I'm afraid of to try this firmware because it's for IPC_523128M5MP HW version, but my cameras are IPC_523128M5MP_V2 and _V2 is not mentioned. I'm afraid of bricking the device.
Someone else can try to update the firmware. Maybe the issue is in camera itself.

@pedro042
Copy link

pedro042 commented May 2, 2022

I got in touch with Reolink` they promised to forward the bug report to theirs developers.
I just bought 3rd RLC-520A, this time the hardware version is without _V2 and multiple firmware version are available for this model version.
Firmware IPC_523128M5MP.494_21073000 works well - the e-mail switch does the job. Since IPC_523128M5MP.764_21121700 (include the latest firmware IPC_523128M5MP.951_22041566) it's broken.
I reported it to Reolink.
I think the issue is in the firmware, not in this software.

@majkers
Copy link

majkers commented Aug 31, 2022

Just update my 510WA to latest v3.1.0.764_21121712 firmware and email switch got missing. It was there before but wasn't working as expected #558

@majkers
Copy link

majkers commented Sep 1, 2022

Anyone that do not have email switch: can you please check this enpoint:

http://[CAMERA_IP]/api.cgi?cmd=getEmail&user=[USER]&password=[PASSWORD]

and if it is not working then this one:

http://[CAMERA_IP]/api.cgi?cmd=getEmailV20&user=[USER]&password=[PASSWORD]

I think that there might be a problem that this integration is using the first one and setEmail no setEmailV20

@pedro042
Copy link

pedro042 commented Sep 1, 2022

You're right - on my E1 Zoom works the first URL (and the switch)
on my RLC-520A works the second (V20) and the switch doesn't work.

@pedro042
Copy link

pedro042 commented Sep 1, 2022

The API call is a part of reolink repo, https://github.com/fwestenberg/reolink , not part of this repo.

@majkers
Copy link

majkers commented Sep 1, 2022

I've just submitted an issue there fwestenberg/reolink#93

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants