bwp91 / homebridge-meross

Homebridge plugin to integrate Meross devices into HomeKit.
MIT License
199 stars 32 forks source link

MSL100D Brightness Error #483

Closed Aridor2006 closed 1 year ago

Aridor2006 commented 1 year ago

Version: homebridge-meross v8.5.0

Logs

2023-01-17T03:58:46.932Z mqtt-packet:writeToStream publish: payload: '{"header":{"from":"/app/2764334-578b2fc0187f1fb2b927c4eb9f3906dc/subscribe","messageId":"8d0be66cd51b699559db7a6aa49d6399","method":"SET","namespace":"Appliance.Control.Light","payloadVersion":1,"sign":"ae326b4314a7a9d7e6134e2f2f1eff0c","timestamp":1673927927},"payload":{"light":{"luminance":58,"channel":0}}}'
...
2023-01-17T03:58:47.102Z mqtt-packet:parser _newPacket: parser emit packet: packet.cmd: publish, packet.payload: {"header":{"messageId":"8d0be66cd51b699559db7a6aa49d6399","namespace":"Appliance.Control.Light","method":"ERROR","payloadVersion":1,"from":"/appliance/2106255921965990853548e1e9731fac/publish","timestamp":1673927926,"timestampMs":722,"sign":"b8b415a15af5b49238ff7cf9216b9911"},"payload":{"error":{"code":5003,"detail":" Not supported type!"}}}, packet.length: 400
bwp91 commented 1 year ago

Hi @Aridor2006

This is indeed a strange issue as I thought brightness was sorted for these devices.

What I will need from you is some http sniffing to see how the meross app controls the brightness.

Very happy to guide you through this on discord: https://discord.gg/bHjKNkN

Aridor2006 commented 1 year ago

Does this help? It seems to have an additional capacity field, which doesn't change? Attached are the POST requests for changing the brightness to 100% and then back down to 1%.

{
  "payload": {
    "light": {
      "channel": 0,
      "luminance": 1,
      "capacity": 4
    }
  },
  "header": {
    "messageId": "ddcfc0db6ac3930167c4e1bc9c2ae516",
    "method": "SET",
    "from": "http://198.18.3.71/config",
    "payloadVersion": 1,
    "namespace": "Appliance.Control.Light",
    "sign": "9c292d1e4ae0cfaabe2a1a579728d3f7",
    "triggerSrc": "iOS",
    "timestamp": 1674444486
  }
}

meross_app.zip

bwp91 commented 1 year ago

Can you update to the beta version of the plugin to see if this has fixed this? https://github.com/bwp91/homebridge-meross/wiki/Beta-Version

Aridor2006 commented 1 year ago

This fixes it, thanks!