Git Product home page Git Product logo

Comments (15)

zisco67 avatar zisco67 commented on May 25, 2024 2

Thank you so much, that was the problem...

from meross.

simonporter007 avatar simonporter007 commented on May 25, 2024

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.

zisco67 avatar zisco67 commented on May 25, 2024

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.

simonporter007 avatar simonporter007 commented on May 25, 2024

@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.

zisco67 avatar zisco67 commented on May 25, 2024

@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.

simonporter007 avatar simonporter007 commented on May 25, 2024

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.

zisco67 avatar zisco67 commented on May 25, 2024

http://10.10.10.1/config leads to ERR_EMPTY_RESPONSE
But it's pingable.
Maybe factory reset? How?

from meross.

simonporter007 avatar simonporter007 commented on May 25, 2024

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.

zisco67 avatar zisco67 commented on May 25, 2024
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.

simonporter007 avatar simonporter007 commented on May 25, 2024

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.

bytespider avatar bytespider commented on May 25, 2024

Thank you @simonporter007 for helping @zisco67

from meross.

zisco67 avatar zisco67 commented on May 25, 2024

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.

bytespider avatar bytespider commented on May 25, 2024

@zisco67 what's the message you are sending in?

from meross.

zisco67 avatar zisco67 commented on May 25, 2024

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.

bytespider avatar bytespider commented on May 25, 2024

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)

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.