Giter Site home page Giter Site logo

Comments (7)

albertogeniola avatar albertogeniola commented on July 25, 2024

Hi Ultameciia,

According to the log provided, it seems you are trying to get power consumption from that power strip. As far as I know, that power strip does not support power consumption monitoring, and that's probably the cause of the error.

from merossiot.

albertogeniola avatar albertogeniola commented on July 25, 2024

Anyways, if you want to test your device as it was a mss425e, simply change the device_factory.py as follows:

from meross_iot.supported_devices.power_plugs import Mss310, Mss210, Mss110, Mss425e

def build_wrapper(
        token,
        key,
        user_id,
        device_type,  # type: str
        device_specs  # type: dict
):
    if device_type.lower() == "mss310":
        return Mss310(token, key, user_id, **device_specs)
    # Beta support for mss310h using the Mss310
    elif device_type.lower() == "mss310h":
        return Mss310(token, key, user_id, **device_specs)
    elif device_type.lower() == "mss210":
        return Mss210(token, key, user_id, **device_specs)
    elif device_type.lower() == "mss110":
        return Mss110(token, key, user_id, **device_specs)
    elif device_type.lower() == "mss425e":
        return Mss425e(token, key, user_id, **device_specs)
    # Trying to support the sp425ew as a mss425e...
    elif device_type.lower() == "mss425e":
        return Mss425e(token, key, user_id, **device_specs)
    else:
        return None

from merossiot.

albertogeniola avatar albertogeniola commented on July 25, 2024

Hi Ultameciia,

tha latest version of the library should be able to work with any Meross device on the market. Would you mind update your library and test it? Just issue the following command from the shell to upgrade the library:

pip install meross_iot --upgrade

P.S. The latest version of the library is the 0.2.0.0. At the time I'm writing it's being uploaded to the Pypi server. It may take a while to become globally available.

from merossiot.

Ultameciia avatar Ultameciia commented on July 25, 2024

I'll give it a test when I get home!

from merossiot.

albertogeniola avatar albertogeniola commented on July 25, 2024

Ehy @Ultameciia , any news?

from merossiot.

Ultameciia avatar Ultameciia commented on July 25, 2024

Sorry about taking so long to reply. It seems to be working. I'm using Meross_iot via a different piece of software called TerrariumPi. While I can connect and control the sp425ew after a few seconds it turns off my plugs even if they're in an on state. I'm positive this is an issue in the TerrariumPi software and not yours. So I'd say it works great! Thanks for all the work you've done on this. It makes automating my reptile room considerably easier!

from merossiot.

albertogeniola avatar albertogeniola commented on July 25, 2024

Thank you for reporting back!

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.