Comments (5)
Sorry for my late response! If I look at the code, the camera should give a json response after correct login. The error you logged only appears when the json is not valid. So in order to find out what's happening, can you provide me the response (from the browser) of the login command? The request should look:
body = [{"cmd": "Login", "action": 0, "param": {"User": {"userName": username, "password": password}}}]
Thanks!
I have the same problem, how do I go about entering the above code?
from reolink_dev.
Please check v0.8.
from reolink_dev.
Sorry for my late response! If I look at the code, the camera should give a json response after correct login. The error you logged only appears when the json is not valid. So in order to find out what's happening, can you provide me the response (from the browser) of the login command? The request should look:
body = [{"cmd": "Login", "action": 0, "param": {"User": {"userName": username, "password": password}}}]
Thanks!
from reolink_dev.
I have this problem too. It seems to come from the app being connected and streaming the cameras. When it is, it seems like the component no longer can connect to the camera and login. It would be good to have an availability sensor to tell when this is happening and when it's not, as I use a conditional card to show the camera, it would be good to only show it when it's actually working. I will open an issue for that.
from reolink_dev.
I think he wants the response of the login. One way to do it is with Postman, you have to do a POST request to http://YOUR_CAM_IP/cgi-bin/api.cgi
with one param key cmd and value of login and a raw json body as given changing the username and password for yours:
[{"cmd": "Login", "action": 0, "param": {"User": {"userName": username, "password": password}}}]
Two photos to understand how to do it in postman, click send and paste here the body response.
The response has to look something like this:
[ { "cmd": "Login", "code": 1, "error": { "detail": "login failed", "rspCode": -7 } } ]
from reolink_dev.
Related Issues (20)
- Detection fails with v3.1.0.956_22041503 firmware HOT 6
- Disconnected camera floods LogFile with error messages
- Cannot connect to camera (RLC-510WA) HOT 2
- New official integration in next release? HOT 38
- If you use default/outdated Firmware you just get "Unexpected error" No indication you need to upgrade firmware.
- RLC-822A Firmware: v3.1.0.989_22081907 - Missing Email Control
- Source: custom_components/reolink_dev/binary_sensor.py:126
- Motion states could not be queried from API
- Reolink RLC-420 unexpected error HOT 5
- Motion detection configuration HOT 2
- "Please wait, starting configuration wizard for Reolink IP camera"
- Unable to remove integration from home assistant
- Feature request - Adjust camera brightness
- Failed to get results for Search, JSON data was was empty?
- Cameras with spotlight don't activate in HA
- Call to async_setup_platform fails in HA version 2023.3 HOT 2
- RLC-520A v0.63 no motion detection HOT 2
- Python 3.11 incompatibility HOT 1
- Log shows Error ("Mode?") and warning about using https instead of https HOT 1
- Push notification HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reolink_dev.