Giter Site home page Giter Site logo

Comments (8)

 avatar commented on July 25, 2024 1

Figured it out.
For anyone experiencing this issue, it is due to the domain being set to "eu-iot.meross.com" instead of "iot.meross.com"
I assume only people in the US will have issue with this.

from merossiot.

 avatar commented on July 25, 2024 1

It's been tested already on my own local source for a while now. I just decided to create a pull request now since I would like it to be up on pip. Thanks for the merge! One thing to make sure would be that @vincenzosuraci can also use the api still I cannot confirm if it works in EU the same way.

from merossiot.

vincenzosuraci avatar vincenzosuraci commented on July 25, 2024

Just my two cents. It is just a matter of handling the Exception when calling bed.get_status(), so that it does not freeze the execution of the python script. A CommandTimeoutException can occur for a variety of causes, e.g. internet leaks.

VS

from merossiot.

 avatar commented on July 25, 2024

Surrounding the commands with a try: except did not work either

from merossiot.

 avatar commented on July 25, 2024

Created a pull request to fix this issue.

#48

from merossiot.

albertogeniola avatar albertogeniola commented on July 25, 2024

Hi @ace5987 ,
Nice spot. I've had very little time lately, so I could not look into that. Anyways I've just merged your PR. New version of the library is 0.3.0.0.b2. Could you check it's now working?

Alberto.

from merossiot.

albertogeniola avatar albertogeniola commented on July 25, 2024

from merossiot.

ehenriqu7 avatar ehenriqu7 commented on July 25, 2024

Hi.
I recently refreshed my Pi Zero image with Diet pi version, and installed the updated meross_iot=0.3.3.0. I'm running python 3.7.1 with GCC 8.3.0.
I'm having the same 'CommandTimeoutException' error since the new install. Previously, I was running meross_iot on a Raspbian bustar image, with older meross_iot module and no issues.

tst.py.txt
terminal_error.txt

File "/home/dietpi/.local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 143, in execute_command
return self.__cloud_client.execute_cmd(self.uuid, command, namespace, payload, callback=callback, timeout=timeout)
File "/home/dietpi/.local/lib/python3.7/site-packages/meross_iot/cloud/client.py", line 321, in execute_cmd
raise CommandTimeoutException("A timeout occurred while waiting for the ACK: %d" % timeout)
meross_iot.cloud.exceptions.CommandTimeoutException.CommandTimeoutException: A timeout occurred while waiting for the ACK: 10

Any ideia what could be the issue?

Many thanks.

from merossiot.

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.