Closed dragon2611 closed 3 years ago
I'm not familiar with MQTT, but are you using a fixed IP address for the light? Also, while not part of this integration, I've moved all my HomeKit enabled Meross devices to Home Assistants HomeKit Controller. Those devices have been rock solid under the HK controller.
One last thought, how's the wifi signal at the light and by any chance are you using Ubiquiti equipment?
The light gets the IP from DHCP but it's a static binding on the DHCP server, the Home assistant server is on a different VLAN to the light so I'm not sure if homekit will work, additionally the light used to have a bug with homekit where the colours were rather off compared to what had been selected.
Firewall is set to allow Server > IOT Vlan traffic additionally at the moment anything from the IOT vlan to the server IP is allowed (I'll lock this down to specific services once I'm happy everything is working)
Wi-Fi signal should be decent, but it does depend on how bad the antennas are in the light, AP's are Tp-link EAP 225's in the controller managed configuration (In many ways similar to the UBNT ones). There nearest AP is pretty much directly below where the light is, the 2nd AP is in the room next door.
Hello @dragon2611 , I sometimes experience the same behaviour with my devices randomly disconnecting. That is caused by the HTTP request not being answered in less than 5 sec (I've cut down the 'default' httpio 10 sec timeout since it looks too much). I've never tried to set this timeout to 10 and see if it is more reliable but I think exceeding 5 sec (even less) on a LAN would be a bit dramatic. Nevertheless these 'disconnections' are really rare and my meross_lan configuration eventually switches automatically to MQTT so I never see an issue when that happens. You said that you've now paired your devices with a local MQTT but I don't see any message flowing through the log. Having MQTT properly working would probably 'fix' this behaviour. Could you ensure your device is working on MQTT? If that works, you could also 'force' MQTT protocol in meross_lan device/integration configuration and see what's next. This shouldn't be needed since meross_lan should be able to automatically switch back and forth between HTTP/MQTT unless you've fixed the HTTP protocol in meross_lan configuration
Also, if you're in the mood ;), you can edit yourself the 5 sec timeout in meross_lan/meross_client/__init__.py
around line 136
class MerossHttpClient:
DEFAULT_TIMEOUT = 5
and see if it gets any better. We could learn something from that. TBH I think the problems lies in the device firmware itself (or the python http stack?)
I think the device, it's not happy on MQTT either, it responded to me switching it on then fell offline again. Pretty sure it was mostly working on their cloud broker other than the API throttling.
This was after powercycling the light with meross_lan set to mqtt
tail -f msl430-1630421606.csv
2021/08/31 - 15:43:26 auto GETACK Appliance.System.All {"system": {"hardware": {"type": "msl430", "subType": "un", "version": "4.0.0", "chipType": "MT7686", "uuid": "", "macAddress": ""}, "firmware": {"version": "4.1.13", "homekitVersion": "2.0.1", "compileTime": "Mar 24 2021 16:31:59", "wifiMac": "", "innerIp": "", "server": "", "port": "", "userId": ""}, "time": {"timestamp": 1630420908, "timezone": "Europe/London", "timeRule": [[1616893200, 3600, 1], [1635638400, 0, 0]]}, "online": {"status": 1, "bindId": "HAEH6GuXgtxK2FQY", "who": 1}}, "digest": {"togglex": [{"channel": 0, "onoff": 0, "lmTime": 1630280234}], "triggerx": [], "timerx": [], "light": {"capacity": 6, "channel": 0, "rgb": 16711808, "temperature": 1, "luminance": 18, "transform": 0}}}
2021/08/31 - 15:43:26 auto GETACK Appliance.System.Ability {"Appliance.Config.Key": {}, "Appliance.Config.WifiList": {}, "Appliance.Config.Wifi": {}, "Appliance.Config.Trace": {}, "Appliance.Config.Info": {}, "Appliance.System.All": {}, "Appliance.System.Hardware": {}, "Appliance.System.Firmware": {}, "Appliance.System.Debug": {}, "Appliance.System.Online": {}, "Appliance.System.Time": {}, "Appliance.System.Clock": {}, "Appliance.System.Ability": {}, "Appliance.System.Runtime": {}, "Appliance.System.Report": {}, "Appliance.System.Position": {}, "Appliance.System.Factory": {}, "Appliance.System.DNDMode": {}, "Appliance.Control.Multiple": {"maxCmdNum": 5}, "Appliance.Control.ToggleX": {}, "Appliance.Control.TimerX": {"sunOffsetSupport": 1}, "Appliance.Control.TriggerX": {}, "Appliance.Control.Bind": {}, "Appliance.Control.Unbind": {}, "Appliance.Control.Upgrade": {}, "Appliance.Control.Light": {"capacity": 7}, "Appliance.Digest.TriggerX": {}, "Appliance.Digest.TimerX": {}}
2021/08/31 - 15:44:18 mqtt GET Appliance.System.All {}
2021/08/31 - 15:45:28 mqtt PUSH Appliance.System.Report {"report": [{"type": "1", "value": "0", "timestamp": 1630421128}]}
2021/08/31 - 15:45:28 auto LOG DEBUG MerossDevice(2009109479497890829148e1e931e694) back online!
2021/08/31 - 15:45:28 mqtt GET Appliance.System.All {}
2021/08/31 - 15:45:28 mqtt GETACK Appliance.System.All {"all": {"system": {"hardware": {"type": "msl430", "subType": "un", "version": "4.0.0", "chipType": "MT7686", "uuid": "", "macAddress": ""}, "firmware": {"version": "4.1.13", "homekitVersion": "2.0.1", "compileTime": "Mar 24 2021 16:31:59", "wifiMac": "", "innerIp": "", "server": "", "port": "", "userId": ""}, "time": {"timestamp": 1630421128, "timezone": "Europe/London", "timeRule": [[1616893200, 3600, 1], [1635638400, 0, 0]]}, "online": {"status": 1, "bindId": "HAEH6GuXgtxK2FQY", "who": 1}}, "digest": {"togglex": [{"channel": 0, "onoff": 1, "lmTime": 1630420952}], "triggerx": [], "timerx": [], "light": {"capacity": 6, "channel": 0, "rgb": 16711808, "temperature": 1, "luminance": 18, "transform": 0}}}}
2021/08/31 - 15:45:51 mqtt SET Appliance.Control.ToggleX {"togglex": {"channel": 0, "onoff": 0}}
2021/08/31 - 15:46:01 mqtt SETACK Appliance.Control.ToggleX {}
2021/08/31 - 15:46:01 auto LOG WARNING MerossDevice(2009109479497890829148e1e931e694) has incorrect timestamp
2021/08/31 - 15:46:01 auto LOG DEBUG MerossDevice(2009109479497890829148e1e931e694) timedelta = 10
2021/08/31 - 15:46:03 mqtt PUSH Appliance.Control.ToggleX {"togglex": [{"channel": 0, "onoff": 0, "lmTime": 1630421151}]}
2021/08/31 - 15:46:03 auto LOG WARNING MerossDevice(2009109479497890829148e1e931e694) has incorrect timestamp
2021/08/31 - 15:46:03 auto LOG DEBUG MerossDevice(2009109479497890829148e1e931e694) timedelta = 7
2021/08/31 - 15:46:15 mqtt SET Appliance.Control.ToggleX {"togglex": {"channel": 0, "onoff": 1}}
2021/08/31 - 15:46:15 mqtt SET Appliance.Control.Light {"light": {"capacity": 4, "channel": 0, "rgb": 16711808, "temperature": 1, "luminance": 18, "transform": 0}}
2021/08/31 - 15:46:48 auto LOG DEBUG MerossDevice(2009109479497890829148e1e931e694) going offline!
2021/08/31 - 15:46:48 mqtt GET Appliance.System.All {}
2021/08/31 - 15:47:48 mqtt GET Appliance.System.All {}
2021/08/31 - 15:48:48 mqtt GET Appliance.System.All {}
2021/08/31 - 15:50:48 mqtt GET Appliance.System.All {}
Behaving itself after another powercycle then giving it a moment before sending it an MQTT command. lets see if it stays online.
tail -f msl430-1630422343.csv
2021/08/31 - 15:55:43 auto GETACK Appliance.System.All {"system": {"hardware": {"type": "msl430", "subType": "un", "version": "4.0.0", "chipType": "MT7686", "uuid": "", "macAddress": ""}, "firmware": {"version": "4.1.13", "homekitVersion": "2.0.1", "compileTime": "Mar 24 2021 16:31:59", "wifiMac": "", "innerIp": "", "server": "", "port": "", "userId": ""}, "time": {"timestamp": 1630421662, "timezone": "Europe/London", "timeRule": [[1616893200, 3600, 1], [1635638400, 0, 0]]}, "online": {"status": 1, "bindId": "HAEH6GuXgtxK2FQY", "who": 1}}, "digest": {"togglex": [{"channel": 0, "onoff": 1, "lmTime": 1630421457}], "triggerx": [], "timerx": [], "light": {"capacity": 4, "channel": 0, "rgb": 16711808, "temperature": 1, "luminance": 48, "transform": 0}}}
2021/08/31 - 15:55:43 auto GETACK Appliance.System.Ability {"Appliance.Config.Key": {}, "Appliance.Config.WifiList": {}, "Appliance.Config.Wifi": {}, "Appliance.Config.Trace": {}, "Appliance.Config.Info": {}, "Appliance.System.All": {}, "Appliance.System.Hardware": {}, "Appliance.System.Firmware": {}, "Appliance.System.Debug": {}, "Appliance.System.Online": {}, "Appliance.System.Time": {}, "Appliance.System.Clock": {}, "Appliance.System.Ability": {}, "Appliance.System.Runtime": {}, "Appliance.System.Report": {}, "Appliance.System.Position": {}, "Appliance.System.Factory": {}, "Appliance.System.DNDMode": {}, "Appliance.Control.Multiple": {"maxCmdNum": 5}, "Appliance.Control.ToggleX": {}, "Appliance.Control.TimerX": {"sunOffsetSupport": 1}, "Appliance.Control.TriggerX": {}, "Appliance.Control.Bind": {}, "Appliance.Control.Unbind": {}, "Appliance.Control.Upgrade": {}, "Appliance.Control.Light": {"capacity": 7}, "Appliance.Digest.TriggerX": {}, "Appliance.Digest.TimerX": {}}
2021/08/31 - 15:55:48 mqtt GET Appliance.System.All {}
2021/08/31 - 15:55:48 mqtt GETACK Appliance.System.All {"all": {"system": {"hardware": {"type": "msl430", "subType": "un", "version": "4.0.0", "chipType": "MT7686", "uuid": "", "macAddress": ""}, "firmware": {"version": "4.1.13", "homekitVersion": "2.0.1", "compileTime": "Mar 24 2021 16:31:59", "wifiMac": "", "innerIp": "", "server": "", "port": "", "userId": ""}, "time": {"timestamp": 1630421747, "timezone": "Europe/London", "timeRule": [[1616893200, 3600, 1], [1635638400, 0, 0]]}, "online": {"status": 1, "bindId": "HAEH6GuXgtxK2FQY", "who": 1}}, "digest": {"togglex": [{"channel": 0, "onoff": 1, "lmTime": 1630421722}], "triggerx": [], "timerx": [], "light": {"capacity": 6, "channel": 0, "rgb": 16711808, "temperature": 1, "luminance": 48, "transform": 0}}}}
2021/08/31 - 15:56:08 mqtt SET Appliance.Control.ToggleX {"togglex": {"channel": 0, "onoff": 0}}
2021/08/31 - 15:56:08 mqtt SETACK Appliance.Control.ToggleX {}
2021/08/31 - 15:56:08 mqtt PUSH Appliance.Control.ToggleX {"togglex": [{"channel": 0, "onoff": 0, "lmTime": 1630421768}]}
2021/08/31 - 15:56:10 mqtt SET Appliance.Control.ToggleX {"togglex": {"channel": 0, "onoff": 1}}
2021/08/31 - 15:56:10 mqtt SET Appliance.Control.Light {"light": {"capacity": 4, "channel": 0, "rgb": 16711808, "temperature": 1, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:10 mqtt SETACK Appliance.Control.ToggleX {}
2021/08/31 - 15:56:10 mqtt SETACK Appliance.Control.Light {"light": {"rgb": 16711808, "capacity": 4, "channel": 0, "temperature": 1, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:10 mqtt PUSH Appliance.Control.Light {"light": {"capacity": 6, "channel": 0, "rgb": 16711808, "temperature": 1, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:10 mqtt PUSH Appliance.Control.ToggleX {"togglex": [{"channel": 0, "onoff": 1, "lmTime": 1630421769}]}
2021/08/31 - 15:56:12 mqtt PUSH Appliance.Control.Light {"light": {"capacity": 6, "channel": 0, "rgb": 16711808, "temperature": 1, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:13 mqtt SET Appliance.Control.Light {"light": {"capacity": 6, "channel": 0, "temperature": 48, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:13 mqtt SET Appliance.Control.Light {"light": {"capacity": 6, "channel": 0, "temperature": 48, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:13 mqtt SETACK Appliance.Control.Light {"light": {"rgb": -1, "capacity": 6, "channel": 0, "temperature": 48, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:14 mqtt SETACK Appliance.Control.Light {"light": {"rgb": -1, "capacity": 6, "channel": 0, "temperature": 48, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:16 mqtt SET Appliance.Control.Light {"light": {"capacity": 6, "channel": 0, "temperature": 80, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:16 mqtt SETACK Appliance.Control.Light {"light": {"rgb": -1, "capacity": 6, "channel": 0, "temperature": 80, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:16 mqtt SET Appliance.Control.Light {"light": {"capacity": 6, "channel": 0, "temperature": 80, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:16 mqtt SETACK Appliance.Control.Light {"light": {"rgb": -1, "capacity": 6, "channel": 0, "temperature": 80, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:17 mqtt SET Appliance.Control.Light {"light": {"capacity": 6, "channel": 0, "temperature": 14, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:17 mqtt SETACK Appliance.Control.Light {"light": {"rgb": -1, "capacity": 6, "channel": 0, "temperature": 14, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:17 mqtt SET Appliance.Control.Light {"light": {"capacity": 6, "channel": 0, "temperature": 14, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:17 mqtt SETACK Appliance.Control.Light {"light": {"rgb": -1, "capacity": 6, "channel": 0, "temperature": 14, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:18 mqtt SET Appliance.Control.Light {"light": {"rgb": 16711743, "capacity": 5, "channel": 0, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:18 mqtt SETACK Appliance.Control.Light {"light": {"rgb": 16711743, "capacity": 5, "channel": 0, "temperature": -1, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:19 mqtt SET Appliance.Control.Light {"light": {"rgb": 10701055, "capacity": 5, "channel": 0, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:19 mqtt SETACK Appliance.Control.Light {"light": {"rgb": 10701055, "capacity": 5, "channel": 0, "temperature": -1, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:20 mqtt SET Appliance.Control.Light {"light": {"rgb": 7208959, "capacity": 5, "channel": 0, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:20 mqtt SETACK Appliance.Control.Light {"light": {"rgb": 7208959, "capacity": 5, "channel": 0, "temperature": -1, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:20 mqtt SET Appliance.Control.Light {"light": {"rgb": 11988223, "capacity": 5, "channel": 0, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:20 mqtt SETACK Appliance.Control.Light {"light": {"rgb": 11988223, "capacity": 5, "channel": 0, "temperature": -1, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:21 mqtt SET Appliance.Control.Light {"light": {"rgb": 16721151, "capacity": 5, "channel": 0, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:21 mqtt SETACK Appliance.Control.Light {"light": {"rgb": 16721151, "capacity": 5, "channel": 0, "temperature": -1, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:22 mqtt SET Appliance.Control.Light {"light": {"rgb": 9561087, "capacity": 5, "channel": 0, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:22 mqtt SETACK Appliance.Control.Light {"light": {"rgb": 9561087, "capacity": 5, "channel": 0, "temperature": -1, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:22 mqtt SET Appliance.Control.Light {"light": {"rgb": 16767597, "capacity": 5, "channel": 0, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:22 mqtt SETACK Appliance.Control.Light {"light": {"rgb": 16767597, "capacity": 5, "channel": 0, "temperature": -1, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:22 mqtt SET Appliance.Control.Light {"light": {"rgb": 4784127, "capacity": 5, "channel": 0, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:23 mqtt SETACK Appliance.Control.Light {"light": {"rgb": 4784127, "capacity": 5, "channel": 0, "temperature": -1, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:23 mqtt SET Appliance.Control.Light {"light": {"rgb": 10747720, "capacity": 5, "channel": 0, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:23 mqtt SETACK Appliance.Control.Light {"light": {"rgb": 10747720, "capacity": 5, "channel": 0, "temperature": -1, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:23 mqtt SET Appliance.Control.Light {"light": {"rgb": 16721041, "capacity": 5, "channel": 0, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:23 mqtt SETACK Appliance.Control.Light {"light": {"rgb": 16721041, "capacity": 5, "channel": 0, "temperature": -1, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:27 mqtt PUSH Appliance.Control.Light {"light": {"capacity": 5, "channel": 0, "rgb": 16721041, "temperature": 14, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:29 mqtt SET Appliance.Control.Light {"light": {"capacity": 5, "channel": 0, "rgb": 16762916, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:29 mqtt SETACK Appliance.Control.Light {"light": {"rgb": 16762916, "capacity": 5, "channel": 0, "temperature": -1, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:30 mqtt SET Appliance.Control.Light {"light": {"rgb": 4772351, "capacity": 5, "channel": 0, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:30 mqtt SETACK Appliance.Control.Light {"light": {"rgb": 4772351, "capacity": 5, "channel": 0, "temperature": -1, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:31 mqtt SET Appliance.Control.Light {"light": {"rgb": 16730275, "capacity": 5, "channel": 0, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:31 mqtt SETACK Appliance.Control.Light {"light": {"rgb": 16730275, "capacity": 5, "channel": 0, "temperature": -1, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:32 mqtt SET Appliance.Control.Light {"light": {"rgb": 2424776, "capacity": 5, "channel": 0, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:32 mqtt SETACK Appliance.Control.Light {"light": {"rgb": 2424776, "capacity": 5, "channel": 0, "temperature": -1, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:32 mqtt SET Appliance.Control.Light {"light": {"rgb": 16730275, "capacity": 5, "channel": 0, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:32 mqtt SETACK Appliance.Control.Light {"light": {"rgb": 16730275, "capacity": 5, "channel": 0, "temperature": -1, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:32 mqtt SET Appliance.Control.Light {"light": {"rgb": 7751935, "capacity": 5, "channel": 0, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:32 mqtt SET Appliance.Control.Light {"light": {"rgb": 10747720, "capacity": 5, "channel": 0, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:33 mqtt SETACK Appliance.Control.Light {"light": {"rgb": 7751935, "capacity": 5, "channel": 0, "temperature": -1, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:33 mqtt SETACK Appliance.Control.Light {"light": {"rgb": 10747720, "capacity": 5, "channel": 0, "temperature": -1, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:33 mqtt SET Appliance.Control.Light {"light": {"rgb": 13762376, "capacity": 5, "channel": 0, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:33 mqtt SET Appliance.Control.Light {"light": {"rgb": 7208886, "capacity": 5, "channel": 0, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:33 mqtt SETACK Appliance.Control.Light {"light": {"rgb": 13762376, "capacity": 5, "channel": 0, "temperature": -1, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:33 mqtt SETACK Appliance.Control.Light {"light": {"rgb": 7208886, "capacity": 5, "channel": 0, "temperature": -1, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:34 mqtt SET Appliance.Control.Light {"light": {"rgb": 8388352, "capacity": 5, "channel": 0, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:34 mqtt SETACK Appliance.Control.Light {"light": {"rgb": 8388352, "capacity": 5, "channel": 0, "temperature": -1, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:34 mqtt SET Appliance.Control.Light {"light": {"rgb": 16777178, "capacity": 5, "channel": 0, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:34 mqtt SETACK Appliance.Control.Light {"light": {"rgb": 16777178, "capacity": 5, "channel": 0, "temperature": -1, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:35 mqtt SET Appliance.Control.Light {"light": {"rgb": 4772351, "capacity": 5, "channel": 0, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:35 mqtt SETACK Appliance.Control.Light {"light": {"rgb": 4772351, "capacity": 5, "channel": 0, "temperature": -1, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:35 mqtt SET Appliance.Control.Light {"light": {"rgb": 16748909, "capacity": 5, "channel": 0, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:36 mqtt SETACK Appliance.Control.Light {"light": {"rgb": 16748909, "capacity": 5, "channel": 0, "temperature": -1, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:36 mqtt SET Appliance.Control.Light {"light": {"rgb": 7199487, "capacity": 5, "channel": 0, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:36 mqtt SETACK Appliance.Control.Light {"light": {"rgb": 7199487, "capacity": 5, "channel": 0, "temperature": -1, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:36 mqtt SET Appliance.Control.Light {"light": {"rgb": 11974399, "capacity": 5, "channel": 0, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:37 mqtt SETACK Appliance.Control.Light {"light": {"rgb": 11974399, "capacity": 5, "channel": 0, "temperature": -1, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:37 mqtt SET Appliance.Control.Light {"light": {"rgb": 7208959, "capacity": 5, "channel": 0, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:37 mqtt SET Appliance.Control.Light {"light": {"rgb": 16749000, "capacity": 5, "channel": 0, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:37 mqtt SETACK Appliance.Control.Light {"light": {"rgb": 7208959, "capacity": 5, "channel": 0, "temperature": -1, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:37 mqtt SETACK Appliance.Control.Light {"light": {"rgb": 16749000, "capacity": 5, "channel": 0, "temperature": -1, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:37 mqtt SET Appliance.Control.ToggleX {"togglex": {"channel": 0, "onoff": 0}}
2021/08/31 - 15:56:38 mqtt SETACK Appliance.Control.ToggleX {}
2021/08/31 - 15:56:38 mqtt PUSH Appliance.Control.ToggleX {"togglex": [{"channel": 0, "onoff": 0, "lmTime": 1630421797}]}
2021/08/31 - 15:56:38 mqtt SET Appliance.Control.ToggleX {"togglex": {"channel": 0, "onoff": 1}}
2021/08/31 - 15:56:38 mqtt SET Appliance.Control.Light {"light": {"rgb": 16749000, "capacity": 4, "channel": 0, "temperature": -1, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:39 mqtt SETACK Appliance.Control.ToggleX {}
2021/08/31 - 15:56:39 mqtt SETACK Appliance.Control.Light {"light": {"rgb": 16749000, "capacity": 4, "channel": 0, "temperature": -1, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:39 mqtt PUSH Appliance.Control.Light {"light": {"capacity": 5, "channel": 0, "rgb": 16749000, "temperature": 14, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:39 mqtt PUSH Appliance.Control.ToggleX {"togglex": [{"channel": 0, "onoff": 1, "lmTime": 1630421798}]}
2021/08/31 - 15:56:41 mqtt SET Appliance.Control.Light {"light": {"capacity": 5, "channel": 0, "rgb": 16777215, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:41 mqtt SETACK Appliance.Control.Light {"light": {"rgb": 16777215, "capacity": 5, "channel": 0, "temperature": -1, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:42 mqtt SET Appliance.Control.Light {"light": {"capacity": 6, "channel": 0, "temperature": 94, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:42 mqtt SETACK Appliance.Control.Light {"light": {"rgb": -1, "capacity": 6, "channel": 0, "temperature": 94, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:42 mqtt SET Appliance.Control.Light {"light": {"capacity": 6, "channel": 0, "temperature": 1, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:43 mqtt SETACK Appliance.Control.Light {"light": {"rgb": -1, "capacity": 6, "channel": 0, "temperature": 1, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:43 mqtt SET Appliance.Control.Light {"light": {"capacity": 6, "channel": 0, "temperature": 11, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:43 mqtt SETACK Appliance.Control.Light {"light": {"rgb": -1, "capacity": 6, "channel": 0, "temperature": 11, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:43 mqtt SET Appliance.Control.Light {"light": {"capacity": 6, "channel": 0, "temperature": 11, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:44 mqtt SETACK Appliance.Control.Light {"light": {"rgb": -1, "capacity": 6, "channel": 0, "temperature": 11, "luminance": 48, "transform": 0}}
2021/08/31 - 15:56:45 mqtt SET Appliance.Control.Light {"light": {"rgb": -1, "capacity": 4, "channel": 0, "temperature": 11, "luminance": 100, "transform": 0}}
2021/08/31 - 15:56:45 mqtt SETACK Appliance.Control.Light {"light": {"rgb": -1, "capacity": 4, "channel": 0, "temperature": 11, "luminance": 100, "transform": 0}}
2021/08/31 - 15:56:46 mqtt SET Appliance.Control.ToggleX {"togglex": {"channel": 0, "onoff": 0}}
2021/08/31 - 15:56:46 mqtt SETACK Appliance.Control.ToggleX {}
2021/08/31 - 15:56:46 mqtt PUSH Appliance.Control.ToggleX {"togglex": [{"channel": 0, "onoff": 0, "lmTime": 1630421806}]}
2021/08/31 - 15:56:47 mqtt SET Appliance.Control.ToggleX {"togglex": {"channel": 0, "onoff": 1}}
2021/08/31 - 15:56:47 mqtt SET Appliance.Control.Light {"light": {"rgb": -1, "capacity": 4, "channel": 0, "temperature": 11, "luminance": 100, "transform": 0}}
2021/08/31 - 15:56:47 mqtt SETACK Appliance.Control.ToggleX {}
2021/08/31 - 15:56:47 mqtt SETACK Appliance.Control.Light {"light": {"rgb": -1, "capacity": 4, "channel": 0, "temperature": 11, "luminance": 100, "transform": 0}}
2021/08/31 - 15:56:47 mqtt PUSH Appliance.Control.ToggleX {"togglex": [{"channel": 0, "onoff": 1, "lmTime": 1630421806}]}
2021/08/31 - 15:56:47 mqtt PUSH Appliance.Control.Light {"light": {"capacity": 6, "channel": 0, "rgb": 16777215, "temperature": 11, "luminance": 100, "transform": 0}}
2021/08/31 - 15:56:47 mqtt SET Appliance.Control.ToggleX {"togglex": {"channel": 0, "onoff": 0}}
2021/08/31 - 15:56:47 mqtt SET Appliance.Control.ToggleX {"togglex": {"channel": 0, "onoff": 0}}
2021/08/31 - 15:56:48 mqtt SETACK Appliance.Control.ToggleX {}
2021/08/31 - 15:56:48 mqtt SETACK Appliance.Control.ToggleX {}
2021/08/31 - 15:56:48 mqtt PUSH Appliance.Control.ToggleX {"togglex": [{"channel": 0, "onoff": 0, "lmTime": 1630421807}]}
2021/08/31 - 15:56:48 mqtt PUSH Appliance.Control.ToggleX {"togglex": [{"channel": 0, "onoff": 0, "lmTime": 1630421807}]}
2021/08/31 - 15:56:48 mqtt SET Appliance.Control.ToggleX {"togglex": {"channel": 0, "onoff": 1}}
2021/08/31 - 15:56:48 mqtt SET Appliance.Control.Light {"light": {"capacity": 4, "channel": 0, "rgb": 16777215, "temperature": 11, "luminance": 100, "transform": 0}}
2021/08/31 - 15:56:49 mqtt SET Appliance.Control.ToggleX {"togglex": {"channel": 0, "onoff": 1}}
2021/08/31 - 15:56:49 mqtt SET Appliance.Control.Light {"light": {"capacity": 4, "channel": 0, "rgb": 16777215, "temperature": 11, "luminance": 100, "transform": 0}}
2021/08/31 - 15:56:49 mqtt SETACK Appliance.Control.ToggleX {}
2021/08/31 - 15:56:49 mqtt SET Appliance.Control.ToggleX {"togglex": {"channel": 0, "onoff": 0}}
2021/08/31 - 15:56:49 mqtt SETACK Appliance.Control.Light {"light": {"rgb": 16777215, "capacity": 4, "channel": 0, "temperature": 11, "luminance": 100, "transform": 0}}
2021/08/31 - 15:56:50 mqtt SETACK Appliance.Control.ToggleX {}
2021/08/31 - 15:56:50 mqtt SETACK Appliance.Control.Light {"light": {"rgb": 16777215, "capacity": 4, "channel": 0, "temperature": 11, "luminance": 100, "transform": 0}}
2021/08/31 - 15:56:50 mqtt SET Appliance.Control.ToggleX {"togglex": {"channel": 0, "onoff": 1}}
2021/08/31 - 15:56:50 mqtt SET Appliance.Control.Light {"light": {"capacity": 4, "channel": 0, "rgb": 16777215, "temperature": 11, "luminance": 100, "transform": 0}}
2021/08/31 - 15:56:50 mqtt SETACK Appliance.Control.ToggleX {}
2021/08/31 - 15:56:50 mqtt SETACK Appliance.Control.ToggleX {}
2021/08/31 - 15:56:50 mqtt SETACK Appliance.Control.Light {"light": {"rgb": 16777215, "capacity": 4, "channel": 0, "temperature": 11, "luminance": 100, "transform": 0}}
2021/08/31 - 15:56:50 mqtt PUSH Appliance.Control.Light {"light": {"capacity": 6, "channel": 0, "rgb": 16777215, "temperature": 11, "luminance": 100, "transform": 0}}
2021/08/31 - 15:56:50 mqtt PUSH Appliance.Control.ToggleX {"togglex": [{"channel": 0, "onoff": 1, "lmTime": 1630421809}]}
2021/08/31 - 15:56:50 mqtt PUSH Appliance.Control.Light {"light": {"capacity": 6, "channel": 0, "rgb": 16777215, "temperature": 11, "luminance": 100, "transform": 0}}
2021/08/31 - 15:56:50 mqtt PUSH Appliance.Control.ToggleX {"togglex": [{"channel": 0, "onoff": 1, "lmTime": 1630421809}]}
2021/08/31 - 15:56:50 mqtt PUSH Appliance.Control.ToggleX {"togglex": [{"channel": 0, "onoff": 1, "lmTime": 1630421809}]}
2021/08/31 - 15:56:50 mqtt PUSH Appliance.Control.ToggleX {"togglex": [{"channel": 0, "onoff": 1, "lmTime": 1630421809}]}
2021/08/31 - 15:56:50 mqtt PUSH Appliance.Control.Light {"light": {"capacity": 6, "channel": 0, "rgb": 16777215, "temperature": 11, "luminance": 100, "transform": 0}}
2021/08/31 - 15:56:51 mqtt SET Appliance.Control.ToggleX {"togglex": {"channel": 0, "onoff": 0}}
2021/08/31 - 15:56:51 mqtt SETACK Appliance.Control.ToggleX {}
2021/08/31 - 15:56:51 mqtt PUSH Appliance.Control.ToggleX {"togglex": [{"channel": 0, "onoff": 0, "lmTime": 1630421810}]}
2021/08/31 - 15:56:53 mqtt PUSH Appliance.Control.Light {"light": {"capacity": 6, "channel": 0, "rgb": 16777215, "temperature": 11, "luminance": 100, "transform": 0}}
Looks promising.. I just throw in my thoughts about the timestamp of the device. Last log shows just around 1 sec misalignment which could easily be explained my the mqtt queuing/forwarding. Previous logs showed a 'larger' delta apparently. meross_lan now supports (when it works of course!) setting the time through MQTT. It happens when the device boots and connects to the broker it issues something like a timestamp request (PUSH Appliance.System.Clock) and meross_lan replies by setting the supposedly correct timestamp. I don't have the clear overall picture but I was reading in the beginning that meross devices would not work (reset after boot) if they weren't able to synchronize their time correctly. In my experience that's not completely true since I had/have both devices working without issues and devices working with issues or even devices showing that 'reset behaviour' (namely just the meross wifi hub). meross_lan now tries to set the timestamp but this is not working for every device since some of them don't support the Appliance.System.Clock transaction. In the end, allowing NTP pass-through the firewall (for the device) could 'smooth' out any time setting issue but that could not always be doable I see
Assuming the device has a NTP server set it should be able to reach it, I'd love to block internet access on my IOT VLAN for security but realistically lots of devices would break if I did.
Hey @dragon2611 , closing this down since I had no more updates and I guess everything should be fine by now. Feel free to re-open if still on the issue thank you
2.2.0 (I think) - (local branch is still in sync with master)
Describe the bug
MSL 430 keeps dropping offline, It did this with both HTTP only polling (when it was still connected to meross cloud) and now when I've moved it to my own mosquitto broker.
Not world ending as I don't really use it that much, but still I thought I'd post incase the Debug reveals anything useful.
The MSS310's seem to behaving themselves.