Comments (4)
The username and password reported by meross-info is the MQTT credentials. The username you are setting in meross-setup is only used in signing the message and communication with Meross cloud.
from meross.
OK, some more details of the issue using verbose logging option
Initial Attempt: No user or key
user@host bin % sudo ./meross-setup --verbose --gateway 10.10.10.1 --wifi-ssid '' --wifi-pass '<WIFI_PASS>' --mqtt mqtts://mqtt.local:8883
Setting up device with IP 10.10.10.1
│Primary MQTT broker │mqtt.local:8883 │
│Failover MQTT broker │mqtt.local:8883 │
POST /config
Host: 10.10.10.1
Accept: application/json, text/plain, /
Content-Type: application/json
{
header: {
from: '',
method: 'SET',
namespace: 'Appliance.Config.Key',
messageId: 'bc7d4be83a18449f4112e8ff7ddb85c0',
timestamp: 1695711098,
sign: '8bacc21ffe154410dadf9e6db34b1de8'
},
payload: {
key: {
userId: '0',
key: '',
gateway: {
host: 'mqtt.local',
port: '8883',
secondHost: 'mqtt.local',
secondPort: '8883',
redirect: 1
}
}
}
}
node:internal/errors:496
ErrorCaptureStackTrace(err);
^
TypeError [ERR_INVALID_ARG_TYPE]: The "url" argument must be of type string. Received undefined
at new NodeError (node:internal/errors:405:5)
at validateString (node:internal/validators:162:11)
at Url.parse (node:url:170:3)
at Object.urlParse [as parse] (node:url:141:13)
at new URL (/Users/alastair/Programming/openhab/Meross/lib/api.js:6:35)
at logRequest (/Users/alastair/Programming/openhab/Meross/lib/api.js:62:15)
at handleRequestError (/Users/alastair/Programming/openhab/Meross/lib/api.js:99:13)
at API.configureMqttServers (/Users/alastair/Programming/openhab/Meross/lib/api.js:341:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async /Users/alastair/Programming/openhab/Meross/bin/meross-setup:89:9 {
code: 'ERR_INVALID_ARG_TYPE'
}
Query Device for key and password
user@host bin % sudo ./meross-info -g 10.10.10.1
Getting info about device with IP 10.10.10.1
│Device │mss110 us rtl8710cm (hardware:7.0.0 firmware:7.3.19) │
│UUID │ │
│Mac address │<MAC_ADDRESS> │
│IP address │10.10.10.1 │
│Credentials │User: <MAC_ADDRESS> │
│ │Password: │
│MQTT topics │Publishes to: /appliance//publish │
│ │Subscribes to: /appliance//subscribe │
**Successful attempt using user and key (with code modification to remove conversion to int for user) **
user@host bin % sudo ./meross-setup --user '<MAC_ADDRESS>' --key '' --verbose --gateway 10.10.10.1 --wifi-ssid '' --wifi-pass '<WIFI_PASS>' --mqtt mqtts://mqtt.local:8883
Setting up device with IP 10.10.10.1
│Primary MQTT broker │mqtt.local:8883 │
│Failover MQTT broker │mqtt.local:8883 │
POST /config
Host: 10.10.10.1
Accept: application/json, text/plain, /
Content-Type: application/json
{
header: {
from: '',
method: 'SET',
namespace: 'Appliance.Config.Key',
messageId: 'a28b60639e297bc1f69c8af767fce2ce',
timestamp: 1695711279,
sign: '281b8f920e604f226668ddfa40d9e1ec'
},
payload: {
key: {
userId: '<MAC_ADDRESS>',
key: '',
gateway: {
host: 'mqtt.local',
port: '8883',
secondHost: 'mqtt.local',
secondPort: '8883',
redirect: 1
}
}
}
}
< 200 OK
< content-type: application/json
< connection: close
<
{
header: {
messageId: 'a28b60639e297bc1f69c8af767fce2ce',
namespace: 'Appliance.Config.Key',
method: 'SETACK',
payloadVersion: 1,
from: '/appliance//publish',
uuid: '',
timestamp: 32,
timestampMs: 898,
sign: '9b25af7524db47bd472446e416768c6a'
},
payload: {}
}
POST /config
Host: 10.10.10.1
Accept: application/json, text/plain, /
Content-Type: application/json
{
header: {
from: '',
method: 'GET',
namespace: 'Appliance.System.All',
messageId: '1737c7fa27afb3964a5ea1f4d24fd9c0',
timestamp: 1695711279,
sign: '894ba6fa214f54d179b093b3dfb7c077'
},
payload: {}
}
< 200 OK
< content-type: application/json
< connection: close
<
{
header: {
messageId: '1737c7fa27afb3964a5ea1f4d24fd9c0',
namespace: 'Appliance.System.All',
method: 'GETACK',
payloadVersion: 1,
from: '/appliance//publish',
uuid: '',
timestamp: 32,
timestampMs: 975,
sign: '6d1261848d88a0ffd79ea2387b636fa2'
},
payload: {
all: {
system: {
hardware: {
type: 'mss110',
subType: 'us',
version: '7.0.0',
chipType: 'rtl8710cm',
uuid: '',
macAddress: '<MAC_ADDRESS>'
},
firmware: {
version: '7.3.19',
homekitVersion: '6.3',
compileTime: '2023/06/02-16:58:57',
encrypt: 1,
wifiMac: '',
innerIp: '10.10.10.1',
server: 'mqtt.local',
port: 8883,
userId: 48
},
time: { timestamp: 32, timezone: '', timeRule: [] },
online: { status: 0, bindId: '', who: 0 }
},
digest: {
togglex: [ { channel: 0, onoff: 1, lmTime: 0 } ],
triggerx: [],
timerx: []
}
}
}
}
│Device │mss110 us rtl8710cm (hardware:7.0.0 firmware:7.3.19) │
│UUID │ │
│Mac address │<MAC_ADDRESS> │
│IP address │10.10.10.1 │
│Current MQTT broker │mqtt.local:8883 │
│Credentials │User: <MAC_ADDRESS> │
│ │Password: 48_cd55f6626f1146c799fbee3377cab427 │
│MQTT topics │Publishes to: /appliance//publish │
│ │Subscribes to: /appliance//subscribe │
POST /config
Host: 10.10.10.1
Accept: application/json, text/plain, /
Content-Type: application/json
{
header: {
from: '',
method: 'SET',
namespace: 'Appliance.Config.Wifi',
messageId: '9dd06cd2a64f4990ea11c872b2d076e9',
timestamp: 1695711280,
sign: '0067591d72122b9b549a5e9af2602bf9'
},
payload: {
wifi: { ssid: '', password: '' }
}
}
< 200 OK
< content-type: application/json
< connection: close
<
{
header: {
messageId: '9dd06cd2a64f4990ea11c872b2d076e9',
namespace: 'Appliance.Config.Wifi',
method: 'SETACK',
payloadVersion: 1,
from: '/appliance//publish',
uuid: '',
timestamp: 33,
timestampMs: 460,
sign: 'c82c8620f4443780167834e7f4082df1'
},
payload: {}
}
Device will reboot...
from meross.
Have you tried passing a user id that isn't 0. It's possible they have changed the firmware so that 0 is no longer valid.
from meross.
Closing due to inactivity
from meross.
Related Issues (20)
- Does this support MSS310 Hardware Version 6 ? HOT 24
- Unable to setup device MSS210 HOT 15
- 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
- [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.