reolink icon indicating copy to clipboard operation
reolink copied to clipboard

RLC-510WA wrong api calls for email switch

Open majkers opened this issue 3 years ago • 2 comments

I've noticed that there might be a problem in API calls for enabling email. For my camera (RLC-510 WA) with firmware v3.1.0.764_21121712 email switch has disappeared from Home Assistant integration https://github.com/fwestenberg/reolink_dev/issues/560 and I also have noticed that this API call

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

is not working and this one does

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

So in my opinion and according to this Relonk API guide:

https://drive.google.com/drive/folders/19vQBJia0wKvzwscA-EpTDSFV5OfNYUL6

for my camera command SetEmailV20 should be used. Is it a bug ? Seems like You are using V20 calls for ftp and some other stuff...

majkers avatar Sep 01 '22 14:09 majkers

It depends on firmware version; for example RLC-520A (older firmware) use cmd=getEmail and newer firmware use cmd=getEmailV20. But E1 Zoom use (latest firmware) use cmd=getEmail

pedro042 avatar Sep 06 '22 22:09 pedro042

Yeah ok but if you look at the source code e.g. ftp and some other features are used in both ways (with or without V20) depending on camera's firmware. That is not the case with email.

majkers avatar Sep 07 '22 06:09 majkers