Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable perform the logon to discover the devices #47

Closed
MiAutomations opened this issue Feb 1, 2023 · 6 comments
Closed

Unable perform the logon to discover the devices #47

MiAutomations opened this issue Feb 1, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@MiAutomations
Copy link

Hello

I'm trying to performed the logon with the credentials App Id and App Secret and I'm using the last available version of the integration available over hacs

But I'm receiving the following erro msg

image

Can you please help me in order to try solve this issue ?

Thank you in advance for your help and support

@user2684 user2684 added bug Something isn't working want user input Wait for user input labels Feb 3, 2023
@user2684
Copy link
Owner

user2684 commented Feb 3, 2023

Hi, can you please enable debug logging and share it here? https://github.com/user2684/imou_life#debugging
Thanks!

@MiAutomations
Copy link
Author

Hi, can you please enable debug logging and share it here? https://github.com/user2684/imou_life#debugging Thanks!

Thank you

Please see the log requested:

2023-02-06 10:40:25.127 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration imou_life which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-02-06 10:48:06.474 INFO (SyncWorker_14) [homeassistant.util.package] Attempting install of imouapi==1.0.12
2023-02-06 10:48:56.608 ERROR (MainThread) [custom_components.imou_life] InvalidResponse: missing parameter or error parsing in {'expandChanNum': '', 'productId': '5w244i7j0c2l6h37', 'trackFollowStatus': '', 'httpPort': '80', 'privatePort': '', 'rtspPort': '554', 'deviceId': 'AMFTLBC23979577', 'version': 'V1.000.0000001.6.R', 'aplist': [], 'accessType': 'PaaS', 'p2pPort': '554', 'port': '37777', 'encryptMode': 0, 'tlsPrivatePort': '37778', 'name': 'Bulb', 'deviceModel': 'CL1B-5-E27', 'ability': '', 'brand': 'easy4Ip', 'playToken': 'l/hIoKAfpErIefPK+Ik+Gd+J7mnsLrDM80lBkw2DCNCtexWGeVXhDDuDIyPjHgPDaEAlr5+6ss4CaLLTlTZfVzuBupjhjNb4d4qT5kC2aDK5iequ9zAOl/iyvIaXZhDrHsuPaOsIg7VerPK3ycTWTkPwfiCGkjXCDjsYFApFYwnzQwFX6tj6zZDaID3v1iqu', 'shareStatus': 'owner', 'status': 'offline'}
File "/usr/local/lib/python3.10/site-packages/imouapi/device.py", line 189, in async_initialize
File "/config/custom_components/imou_life/config_flow.py", line 130, in async_step_discover
File "/usr/local/lib/python3.10/site-packages/imouapi/device.py", line 633, in async_discover_devices
File "/usr/local/lib/python3.10/site-packages/imouapi/device.py", line 352, in async_initialize
imouapi.exceptions.InvalidResponse: missing parameter or error parsing in {'expandChanNum': '', 'productId': '5w244i7j0d2l6h37', 'trackFollowStatus': '', 'httpPort': '80', 'privatePort': '', 'rtspPort': '554', 'deviceId': 'AMWTLBC23979577', 'version': 'V1.000.0000001.6.R', 'aplist': [], 'accessType': 'PaaS', 'p2pPort': '554', 'port': '37777', 'encryptMode': 0, 'tlsPrivatePort': '37778', 'name': 'Bulb', 'deviceModel': 'CL1B-5-E27', 'ability': '', 'brand': 'easy4Ip', 'playToken': 'l/hIoKAfpErIefPK+Ik+Gd+J7mnsfdLrDM80lBkw2DCNCtexWGeVXhDDuDIyPjHgPDaEAlr5+6ss4CaLLTlTZfVzuBupjhjNb4d4qT5kC2aDK5iequ9zAOl/iyvIaXZhDrHsuPaOsIg7VerPK3ycTWTkPwfiCGkjXCDjsYFApFYwnzQwFX6tj6zZDaID3v1iqu', 'shareStatus': 'owner', 'status': 'offline'}

@user2684 user2684 removed the want user input Wait for user input label Feb 19, 2023
@user2684
Copy link
Owner

Hi, this seems to be a bulb right? looks like it is exposing a completely different set of APIs

@MiAutomations
Copy link
Author

Hi, this seems to be a bulb right? looks like it is exposing a completely different set of APIs

Yes it is a bulb, but i also have a IP cameras in the same account

@user2684
Copy link
Owner

Oh I see, you have multiple devices including a light bulb but when discovering them, you get the error and cannot even add the cameras. I'll work on it thanks. Temporary workaround for you would be to manually add the device by its device id meanwhile I work on a fix

@user2684
Copy link
Owner

Fixed with v1.0.14. When running discovery, any unsupported devices will no more throw an error blocking the configuration flow but instead a warning will be logged and the device ignored

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

2 participants