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

Updated firmware on mss310 us rtl8710cf (hardware:6.0.0 firmware:6.3.22) causes red light #76

Closed ibz0q closed 11 months ago

ibz0q commented 11 months ago

I decided to update my firmware on all 6 of my mss310 plugs. Some are hw 6.0.0 (x2) whilst others 2.0.0 (x4). After updating I did the usual pairing sequence only this time I required the device key and got this from Home Assistant after logging into Meross cloud integration.

Configuration all worked okay on devices with hw 2.0.0 with the latest firmware. However it has not worked with the 6.0.0 devices running latest fw. I was able to run the command, devices switch on and off okay but only to be met with red lights on the devices.

Strangely both devices connect to WiFi and MQTT broker as I can see the messages come through MQTT (and I'm able to connect and also run npx meross info --verbose on both) but they stay in red state, messages look vastly different to 2.0.0 and cannot see them in Home Assistant.

Here's a sample of the MQTT messages I see:

{"header":{"messageId":"9ad1381d2b0e28d5960b0c3c521xxxxx","namespace":"Appliance.Control.Bind","triggerSrc":"DevBoot","method":"SET","payloadVersion":1,"from":"/appliance/2206067236250851070148e1e99xxxxx/subscribe","uuid":"2206067236250851070148e1e99xxxxx","timestamp":332,"timestampMs":200,"sign":"324753cf5381b492203e75f7244fa0d3"},"payload":{"bind":{"bindTime":332,"time":{"timestamp":332,"timezone":"","timeRule":[]},"hardware":{"type":"mss310","subType":"un","version":"6.0.0","chipType":"rtl8710cf","uuid":"2206067236250851070148e1e99xxxxx","macAddress":"48:e1:e9:xx:xx:xx"},"firmware":{"version":"6.3.22","compileTime":"2023/10/13-13:45:18","encrypt":1,"wifiMac":"82:69:1a:23:xx:xx","innerIp":"10.21.0.105","server":"mqtt.lan","port":8883,"userId":0}}}}

MQTT config (works fine with 2.0.0 devices) :

persistence true
persistence_location /mosquitto/data/
log_dest file /mosquitto/log/mosquitto.log

listener 1883
listener 8883

require_certificate false
use_identity_as_username false
allow_anonymous true

cafile /mosquitto/certs/ca/ca.crt
certfile /mosquitto/certs/broker/broker.crt
keyfile /mosquitto/certs/broker/broker.key

#use_username_as_clientid

Any assistant would be greatly appreciated, thank you for the project thus far as I was using it for 2-3 years fine.

ibz0q commented 11 months ago

Closed, it seems I needed to update Home Assistant with the device key for MQTT lan broker. Once I did so the devices became green.