Closed mjrinker closed 2 years ago
FYI, looks like I was on an old version of mosquitto (v1.5.7) that was using MQTT v3.1.1 I upgraded to mosquitto v2.0.12 which uses MQTT v5.0/v3.1.1/v3.1
I then re-registered the device with the following:
$ ./meross setup --gateway 10.10.10.1 --wifi-ssid myssid --wifi-pass mypass --mqtt mqtts://<BROKER_IP>
Unfortunately that did not fix my issue, but it was probably a good thing to do anyway!
@mjrinker I don't have the MSL120 however I have this working with Home Assistant using Mosquitto as my MQTT Broker. The key for me however was that I needed to make sure to have an account created using the Device Credentials in order for the MQTT communication to happen. In my case I am using Home Assistant and so my Mosquitto authentication is connected with Home Assistant where I created the user account based on the Meross Device Credentials. I have been able to confirm that connecting to the MQTT Broker with those credentials I can see the messages going between my Home Assistant and the Meross devices.
Noting that I'm only on version 2.0.11 of Mosquitto.
@timnolte This is good info. Looking at the step from the Wiki that you linked, it mentions passing the user and key to the meross setup
command. Do I do this when I run that command to setup a device?
@mjrinker so what I've been pairing my devices with is 0
as the user
and a blank key
, so for example the password would looking like 0_<MD5-HASH-DEVICE-MAC-ADDR>
. However, if you run the meross info
command you should get an output that included the currently configured Username/Password and can simply setup those in your MQTT Broker for authentication.
@timnolte Ah okay that makes sense! I'll work on that tomorrow. Thanks!
I forgot to update this but that did the trick! Thanks again @timnolte!
Hey @bytespider,
First off, just wanted to thank you for all the work you've put into this project, and to documenting it. I've already learned a ton!
I'm trying to control a light bulb (MSL120) while running a local (i.e. custom mosquitto) broker, but I can't get the light to respond to messages I'm sending it.
I've followed the instructions in the Wiki.
I set up the certificates using the exact commands in the Wiki:
For the Common Name in the CA cert, I used my name. For the Common Name in the server cert, I used the local IP of my broker.
I'm using the minimal unauthenticated config from the Wiki:
I ran the following and my light bulb seemed to connect:
When I ran the mosquitto broker and the above meross setup command, this was the output:
Then, from my client, which is a different machine, I ran the following to try to turn the light bulb off:
When I send that message, I get this in the broker logs:
From all appearances, it looked like it worked, but the light bulb does not turn off.
I'm hoping you might be able to help me figure out what I'm doing wrong. It's probably some stupid little thing. Thanks!