Coder Social home page Coder Social logo

Comments (6)

user2684 avatar user2684 commented on June 11, 2024 1

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

from imou_life.

user2684 avatar user2684 commented on June 11, 2024

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

from imou_life.

MiAutomations avatar MiAutomations commented on June 11, 2024

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'}

from imou_life.

user2684 avatar user2684 commented on June 11, 2024

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

from imou_life.

MiAutomations avatar MiAutomations commented on June 11, 2024

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

from imou_life.

user2684 avatar user2684 commented on June 11, 2024

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

from imou_life.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.