Comments (7)
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.
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.
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.
I'll give it a test when I get home!
from merossiot.
Ehy @Ultameciia , any news?
from merossiot.
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.
Thank you for reporting back!
from merossiot.
Related Issues (20)
- MST960 reading current values is not possible HOT 3
- Meross changing the cloud api from 2024-01-01 HOT 4
- Logout fail HOT 1
- Meross Cloud API changed begining of January 2024 HOT 2
- Log entries HOT 10
- TypeError: async_from_user_password() missing 1 required positional argument: 'api_base_url'
- Is merossiot no longer working? HOT 4
- MerossManager._update_and_send_push' was never awaited HOT 5
- Incompatible with paho-mqtt 2.0 HOT 2
- hourly consumption MSS310 HOT 6
- https://iotx-eu.meross.com returns error 404 HOT 8
- Meross architecture clarification - recording electricity consumption HOT 2
- Operation of multiple MSS110 smart plugs HOT 4
- cannot reuse already awaited coroutine HOT 14
- MSH300HK/MS100F are not supported HOT 5
- Incorporating Meross-iot into a broader application
- MerossIOT Java implementation support request
- MSS810 is not supported
- KeyError: 'mfaLockExpire' HOT 14
- Error: Exception caught: You have issued too many tokens without logging out and your account might have been temporarly disabled. HOT 4
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 merossiot.