Comments (15)
Thank you so much, that was the problem...
from meross.
Finally managed to connect my MSS210 after a few days of messing and debugging and trial and error using these tools. When you tried to run the setup command, was the plug on the right network? or was your machine on the right network?
If it's not yet connected to your WiFi, you need to connect to the AP that the plug provides, Meross_AP_XXXX
and then run the above command. If you've already used the tool successfully before, or used the official app, you will need to provide the IP address of the plug as the "gateway" setting with the -g 192.0.0.0.0
parameter to the tool.
from meross.
When connected to the Meross_AP_XXXX
I didn't use the -g
Parameter; I tried now with -g 192.168.1.213
unfortunately unsuccessful as well.
from meross.
@zisco67 sorry for not being clear! The -g
would only be required if the device is already connected to your home WiFi network (in case you ran the tool previously). If you're connecting to the Meross AP instead when running the command, then the default gateway of 10.10.10.1 should be fine.
I guess you've tried resetting it just in case by holding the power button for 5 seconds and letting it reboot itself into pairing mode again? When you connect to the Meross AP, can you navigate to http:10.10.10.1 just to verify the IP address is the correct one or rather, can you get a valid output from ./bin/meros info
?
from meross.
@simonporter007 sorry for being unclear, too!
Scenario: Connected to Meross-WIFI in paring-mode (host IP: 10.10.10.2):
markus@bangui:~/Downloads/Meross-master/bin$ sudo npx meross info
[sudo] password for markus:
npx: installed 27 in 133.483s
Getting info about device with IP 10.10.10.1
Error Unable to connect to device
Any logs, where I could try to find out, what's going on?
from meross.
I don't think the tool has much more logging than that. It's weird as it should just be making a http request to the default ip address. If you've reset it and connected to the AP, I don't know why that wouldn't work.
If you try navigating to http://10.10.10.1/config in your browser after connecting to the Meross AP, does it load?
from meross.
http://10.10.10.1/config
leads to ERR_EMPTY_RESPONSE
But it's pingable.
Maybe factory reset? How?
from meross.
I think the only reset is to hold down the button the plug for 5 seconds. This seems to either:
- flash red/orange/green quickly before rebooting (you'll hear the click of it going off)
- flash orange/green slowly which signals it's reset back to pairing mode and the Meross AP should be active
I also forgot there's the verbose option -v
which might print some additional details. Can you try resetting again into pair mode, and then try meross info with the -v flag?
from meross.
markus@bangui:~/Downloads/Meross-master/bin$ sudo npx meross info -v
npx: installed 27 in 8.814s
Getting info about device with IP 10.10.10.1
> POST /config
> Host: 10.10.10.1
Error Object.fromEntries is not a function
from meross.
ah! What version of node are you running? node -v
I don't think it's written anywhere, but I think you'll need node v12+ (at least from that error)
from meross.
Thank you @simonporter007 for helping @zisco67
from meross.
There is still an issue, when I try to change the state of the power outlet:
1673718921: New connection from 192.168.1.213:49260 on port 8883.
1673718922: Client fmware:2009072623298651802748e1e92fbcb9_Mdpk5bcXwO6q4oFr already connected,
ng old connection.
1673718922: New client connected from 192.168.1.213:49260 as fmware:2009072623298651802748e1e92
_Mdpk5bcXwO6q4oFr (p1, c1, k30, u'48:e1:e9:2f:bc:b9').
It reboots and reconnects, but doesnโt change the state - any ideas left? Thank you!
from meross.
@zisco67 what's the message you are sending in?
from meross.
Good question, the mosquitto log doesn't show the request and the openHAB log as well (maybe I need a higher log-level...) - but I think, one of the problems is (as mentoined here in step 3 https://github.com/arandall/meross/blob/main/doc/provisioning.md), that the device is waiting for a reponse from MQTT (even tough my device's indicator led is already in steady green state): In my testing the device sends an Appliance.System.Clock to the /appliance//publish topic until it gets a response. From testing the response must be sent via MQTT to the topic /appliance//subscribe. If a response is not received within 10 attempts the device will restart and go back to the beginning of Step 2.
from meross.
Messages sent in response to MQTT needs to be implemented by you I'm afraid. This tool only facilitates pairing the device with your WIFI and setting the MQTT broker details.
from meross.
Related Issues (20)
- Does this support MSS310 Hardware Version 6 ? HOT 24
- Setting MQTT and Wifi for MSS210 HOT 3
- No time synchronisation with 5.1.1 firmware HOT 2
- Upgraded firmware/incorrect key HOT 2
- [question] hass mqtt connection HOT 1
- Plug keeps blinking green forever HOT 3
- mss110 power switch with firmware 7.3.19 requires user and key HOT 4
- [QUESTION] What exactly is --gateway? HOT 2
- Error Unable to connect to device - TypeError: Cannot read properties of undefined (reading 'system') HOT 16
- Setup does not work for newer MSS310 HOT 8
- Device mss425e won't connect to AP, falls back to pairing mode HOT 16
- Updated firmware on mss310 us rtl8710cf (hardware:6.0.0 firmware:6.3.22) causes red light HOT 1
- Issues with ssl after upgrading from Debian 11 to Debian 12 HOT 2
- Cant connect MSS710 HOT 4
- NTP queries from Meross Plugs HOT 1
- TypeError: program.version is not a function HOT 1
- Device Key? HOT 1
- Unable to setup MSS310 HOT 2
- mss210 contents to wifi and mqtt but doesn't push changes to mqtt [un rtl8710cf (hardware:6.0.0 firmware:6.2.3) ] HOT 7
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 meross.