krahabb / meross_lan

Home Assistant integration for Meross devices
MIT License
452 stars 47 forks source link

Cannot pair MSS315 via MQTT (again) #425

Open fuomag9 opened 7 months ago

fuomag9 commented 7 months ago

Trying to pair with meross_lan fails with #410

Trying to pair with https://github.com/bytespider/Meross: npx meross setup -k key --mqtt mqtts://hass.local:8883 --wifi-ssid ssid --wifi-pass pass -g ipaddr

Device connects, but ultimately fails to pair and resets like it happened in #346 since I believe something either changed with firmware:9.5.39 or with meross lan itself (I have not paired a device in a long time and I have had ONLY SOME devices with #300 happening and I hoped that a firmware update could improve this)

Here are the messages exchanged with the mqtt server:

/appliance/DEVICE_UUID/subscribe

{"header":{"messageId":"50e44ebb7b19c86debf8dc0f7ef81d38","namespace":"Appliance.Control.Bind","method":"SETACK","payloadVersion":1,"from":"/appliance/DEVICE_UUID/publish","triggerSrc":"CloudControl","timestamp":1714061186,"timestampMs":0,"sign":"9e5c5a89b161bb44e8b75d0027a37532"},"payload":{}}
{"header":{"messageId":"0b0faa88a8e846a6be1523afb58a9ac2","namespace":"Appliance.System.Clock","method":"PUSH","payloadVersion":1,"from":"/appliance/meross_lan/publish","timestamp":1714061186,"timestampMs":0,"sign":"14dd1282a581e7ae1db023be147f2991"},"payload":{}}
{"header":{"messageId":"109b0a384191e102f7d1c0a71aa73e7b","namespace":"Appliance.System.Clock","method":"PUSH","payloadVersion":1,"from":"/appliance/DEVICE_UUID/publish","timestamp":1714059993,"timestampMs":443,"sign":"934b1dbde40853d5315404c16fc777d9","triggerSrc":"CloudControl"},"payload":{"clock":{"timestamp":1714061186}}}
{"header":{"messageId":"109b0a384191e102f7d1c0a71aa73e7b","namespace":"Appliance.System.Clock","method":"PUSH","payloadVersion":1,"from":"/appliance/DEVICE_UUID/publish","timestamp":1714059993,"timestampMs":443,"sign":"934b1dbde40853d5315404c16fc777d9","triggerSrc":"CloudControl"},"payload":{"clock":{"timestamp":1714061186}}}
{"header":{"messageId":"eab5e790492e4920a057e19345e04cc2","namespace":"Appliance.Config.OverTemp","method":"GET","payloadVersion":1,"from":"/appliance/meross_lan/publish","timestamp":1714061264,"timestampMs":0,"sign":"eb6ac132705b609b82f283dcb6dc4171"},"payload":{"overTemp":{}}}
{"header":{"messageId":"d7e36cd3cf4048b894674826701e25fe","namespace":"Appliance.Control.Electricity","method":"GET","payloadVersion":1,"from":"/appliance/meross_lan/publish","timestamp":1714061280,"timestampMs":0,"sign":"b1935290cd8ab4016a32426c0921daff"},"payload":{"electricity":{}}}
{"header":{"messageId":"e8aa4b55f38c43a597cfe9224460c7a7","namespace":"Appliance.System.DNDMode","method":"GET","payloadVersion":1,"from":"/appliance/meross_lan/publish","timestamp":1714061296,"timestampMs":0,"sign":"a0aa0470bf72eaf334d7f50198b938c2"},"payload":{"DNDMode":{}}}
{"header":{"messageId":"d04b7d78826544d9ba31ece00d11d9a9","namespace":"Appliance.System.All","method":"GET","payloadVersion":1,"from":"/appliance/meross_lan/publish","timestamp":1714061378,"timestampMs":0,"sign":"eb15c653db017fb7054dae6b4a2ddb1a"},"payload":{"all":{}}}
{"header":{"messageId":"d527f263f61345d4b9c7df9ecea31213","namespace":"Appliance.System.All","method":"GET","payloadVersion":1,"from":"/appliance/meross_lan/publish","timestamp":1714061446,"timestampMs":0,"sign":"ffdbab7d3f58785d6e599e2064424f82"},"payload":{"all":{}}}
{"header":{"messageId":"97eedae5f47e4e168ec4058b319803bc","namespace":"Appliance.System.All","method":"GET","payloadVersion":1,"from":"/appliance/meross_lan/publish","timestamp":1714061544,"timestampMs":0,"sign":"a0bd09f24ea8ff07d333e2a7a8e87b2f"},"payload":{"all":{}}}
{"header":{"messageId":"9a508b7049f04c19896e634ee8b37944","namespace":"Appliance.System.All","method":"GET","payloadVersion":1,"from":"/appliance/meross_lan/publish","timestamp":1714061672,"timestampMs":0,"sign":"eb568fdec7f8b7d70dc6d1b1a8f77029"},"payload":{"all":{}}}
{"header":{"messageId":"cbb236c7a4514dd39811442f6f35f3ce","namespace":"Appliance.System.All","method":"GET","payloadVersion":1,"from":"/appliance/meross_lan/publish","timestamp":1714061831,"timestampMs":0,"sign":"ab1ade9a0da537ec10cf4d8c0113adc6"},"payload":{"all":{}}}
{"header":{"messageId":"cbb236c7a4514dd39811442f6f35f3ce","namespace":"Appliance.System.All","method":"GET","payloadVersion":1,"from":"/appliance/meross_lan/publish","timestamp":1714061831,"timestampMs":0,"sign":"ab1ade9a0da537ec10cf4d8c0113adc6"},"payload":{"all":{}}}

/appliance/DEVICE_UUID/subscribe

{"header":{"messageId":"50e44ebb7b19c86debf8dc0f7ef81d38","namespace":"Appliance.Control.Bind","method":"SETACK","payloadVersion":1,"from":"/appliance/DEVICE_UUID/publish","triggerSrc":"CloudControl","timestamp":1714061186,"timestampMs":0,"sign":"9e5c5a89b161bb44e8b75d0027a37532"},"payload":{}}
{"header":{"messageId":"0b0faa88a8e846a6be1523afb58a9ac2","namespace":"Appliance.System.Clock","method":"PUSH","payloadVersion":1,"from":"/appliance/meross_lan/publish","timestamp":1714061186,"timestampMs":0,"sign":"14dd1282a581e7ae1db023be147f2991"},"payload":{}}
{"header":{"messageId":"109b0a384191e102f7d1c0a71aa73e7b","namespace":"Appliance.System.Clock","method":"PUSH","payloadVersion":1,"from":"/appliance/DEVICE_UUID/publish","timestamp":1714059993,"timestampMs":443,"sign":"934b1dbde40853d5315404c16fc777d9","triggerSrc":"CloudControl"},"payload":{"clock":{"timestamp":1714061186}}}
{"header":{"messageId":"109b0a384191e102f7d1c0a71aa73e7b","namespace":"Appliance.System.Clock","method":"PUSH","payloadVersion":1,"from":"/appliance/DEVICE_UUID/publish","timestamp":1714059993,"timestampMs":443,"sign":"934b1dbde40853d5315404c16fc777d9","triggerSrc":"CloudControl"},"payload":{"clock":{"timestamp":1714061186}}}
{"header":{"messageId":"eab5e790492e4920a057e19345e04cc2","namespace":"Appliance.Config.OverTemp","method":"GET","payloadVersion":1,"from":"/appliance/meross_lan/publish","timestamp":1714061264,"timestampMs":0,"sign":"eb6ac132705b609b82f283dcb6dc4171"},"payload":{"overTemp":{}}}
{"header":{"messageId":"e8aa4b55f38c43a597cfe9224460c7a7","namespace":"Appliance.System.DNDMode","method":"GET","payloadVersion":1,"from":"/appliance/meross_lan/publish","timestamp":1714061296,"timestampMs":0,"sign":"a0aa0470bf72eaf334d7f50198b938c2"},"payload":{"DNDMode":{}}}
{"header":{"messageId":"d04b7d78826544d9ba31ece00d11d9a9","namespace":"Appliance.System.All","method":"GET","payloadVersion":1,"from":"/appliance/meross_lan/publish","timestamp":1714061378,"timestampMs":0,"sign":"eb15c653db017fb7054dae6b4a2ddb1a"},"payload":{"all":{}}}
{"header":{"messageId":"d527f263f61345d4b9c7df9ecea31213","namespace":"Appliance.System.All","method":"GET","payloadVersion":1,"from":"/appliance/meross_lan/publish","timestamp":1714061446,"timestampMs":0,"sign":"ffdbab7d3f58785d6e599e2064424f82"},"payload":{"all":{}}}
{"header":{"messageId":"97eedae5f47e4e168ec4058b319803bc","namespace":"Appliance.System.All","method":"GET","payloadVersion":1,"from":"/appliance/meross_lan/publish","timestamp":1714061544,"timestampMs":0,"sign":"a0bd09f24ea8ff07d333e2a7a8e87b2f"},"payload":{"all":{}}}
{"header":{"messageId":"9a508b7049f04c19896e634ee8b37944","namespace":"Appliance.System.All","method":"GET","payloadVersion":1,"from":"/appliance/meross_lan/publish","timestamp":1714061672,"timestampMs":0,"sign":"eb568fdec7f8b7d70dc6d1b1a8f77029"},"payload":{"all":{}}}
{"header":{"messageId":"cbb236c7a4514dd39811442f6f35f3ce","namespace":"Appliance.System.All","method":"GET","payloadVersion":1,"from":"/appliance/meross_lan/publish","timestamp":1714061831,"timestampMs":0,"sign":"ab1ade9a0da537ec10cf4d8c0113adc6"},"payload":{"all":{}}}
{"header":{"messageId":"cbb236c7a4514dd39811442f6f35f3ce","namespace":"Appliance.System.All","method":"GET","payloadVersion":1,"from":"/appliance/meross_lan/publish","timestamp":1714061831,"timestampMs":0,"sign":"ab1ade9a0da537ec10cf4d8c0113adc6"},"payload":{"all":{}}}
krahabb commented 7 months ago

Hello @fuomag9, If not, I think you should setup (again) the MQTT mitm envirtonment to track what's happening between the device and the Meross servers to see if anything has changed.

fuomag9 commented 7 months ago

Hello @fuomag9, If not, I think you should setup (again) the MQTT mitm envirtonment to track what's happening between the device and the Meross servers to see if anything has changed.

Will do later today and report back!