bytespider / Meross

Investigating the Meross/Refoss MSS310 Smart Plug and getting these devices to communicate with our private MQTT brokers
113 stars 19 forks source link

Mosquitto errors with Meross PowerStrip #42

Closed alfem closed 1 year ago

alfem commented 3 years ago

Hi!

First at all, what a great work setting these Meross devices cloud-free! Thanks a lot!

Unfortunately I tried your setup script on a Meross Power Strip and it seemed to work. My powerstrip now is linked to my access point (green light blinking quickly forever), and connects to my mosquitto server, but I only get loads of lines like this:

1637259948: Socket error on client <unknown>, disconnecting.
1637259951: New connection from 192.168.1.122 on port 1883.
1637259951: Socket error on client <unknown>, disconnecting.
1637259954: New connection from 192.168.1.122 on port 1883.
1637259954: Socket error on client <unknown>, disconnecting.
1637259957: New connection from 192.168.1.122 on port 1883.

The command I used is this:

npx meross setup --gateway 10.10.10.1 --wifi-ssid WLAN_XX --wifi-pass XXXXXXXX --mqtt mqtt://192.168.1.15

No password or certificates implied.

My device is identifies as mss425e eu MT7687 (hardware:1.0.0 firmware:1.1.9)

Do I need the user and password your tool shows in mosquito configuration?

bytespider commented 3 years ago

Meross devices typically (I don't know if all do) require TLS so you'll need to set up a certificate and probably port 8883