krahabb / meross_lan

Home Assistant integration for Meross devices
MIT License
415 stars 45 forks source link

Switch(es) are wrong, and light is inverted on mshx0 (smart humidifier) #71

Closed fribse closed 2 years ago

fribse commented 3 years ago

Version of the custom_component

Version 2.2.1

Configuration

image

Describe the bug

After it was discovered (all of the sudden, it's been there for a long time), one switch was discovered, and it was set as inactive. The switch turns the light in the humidifier on/off, and it is inverted, so if I turn it on in HA, the light goes off, and if I turn it off, the light goes on. image image

The humidifying function does not activate / deactivate at all.

It looks like the DND mode (light) is the only thing it discovers?

Debug log


2021/09/06 - 09:01:48   auto    GETACK  Appliance.System.All    {"system": {"hardware": {"type": "msxh0", "subType": "us", "version": "2.0.0", "chipType": "mt7682", "uuid": "", "macAddress": ""}, "firmware": {"version": "2.1.11", "compileTime": "2019/08/30 09:26:24 GMT +08:00", "wifiMac": "", "innerIp": "", "server": "", "port": "", "userId": ""}, "time": {"timestamp": 1630911706, "timezone": "Europe/Copenhagen", "timeRule": [[1616889600, 7200, 1], [1635634800, 3600, 0]]}, "online": {"status": 1}}, "digest": {"spray": [{"channel": 0, "mode": 0, "lmTime": 1629035486, "lastMode": 1, "onoffTime": 1629035486}], "triggerx": [], "timerx": []}}
2021/09/06 - 09:01:48   auto    GETACK  Appliance.System.Ability    {"Appliance.Config.Key": {}, "Appliance.Config.WifiList": {}, "Appliance.Config.Wifi": {}, "Appliance.Config.Trace": {}, "Appliance.System.All": {}, "Appliance.System.Hardware": {}, "Appliance.System.Firmware": {}, "Appliance.System.Debug": {}, "Appliance.System.Online": {}, "Appliance.System.Time": {}, "Appliance.System.Ability": {}, "Appliance.System.Runtime": {}, "Appliance.System.Report": {}, "Appliance.System.Position": {}, "Appliance.System.DNDMode": {}, "Appliance.Control.Multiple": {"maxCmdNum": 5}, "Appliance.Control.Spray": {}, "Appliance.Control.TimerX": {"sunOffsetSupport": 1}, "Appliance.Control.TriggerX": {}, "Appliance.Control.Bind": {}, "Appliance.Control.Unbind": {}, "Appliance.Control.Upgrade": {}, "Appliance.Digest.TriggerX": {}, "Appliance.Digest.TimerX": {}}
2021/09/06 - 09:01:59   http    SET Appliance.System.DNDMode    {"DNDMode": {"mode": 0}}
2021/09/06 - 09:01:59   http    SETACK  Appliance.System.DNDMode    {}
2021/09/06 - 09:02:09   http    SET Appliance.System.DNDMode    {"DNDMode": {"mode": 1}}
2021/09/06 - 09:02:09   http    SETACK  Appliance.System.DNDMode    {}
2021/09/06 - 09:02:17   http    GET Appliance.System.All    {}
2021/09/06 - 09:02:18   http    GETACK  Appliance.System.All    {"all": {"system": {"hardware": {"type": "msxh0", "subType": "us", "version": "2.0.0", "chipType": "mt7682", "uuid": "", "macAddress": ""}, "firmware": {"version": "2.1.11", "compileTime": "2019/08/30 09:26:24 GMT +08:00", "wifiMac": "", "innerIp": "", "server": "", "port": "", "userId": ""}, "time": {"timestamp": 1630911736, "timezone": "Europe/Copenhagen", "timeRule": [[1616889600, 7200, 1], [1635634800, 3600, 0]]}, "online": {"status": 1}}, "digest": {"spray": [{"channel": 0, "mode": 0, "lmTime": 1629035486, "lastMode": 1, "onoffTime": 1629035486}], "triggerx": [], "timerx": []}}}
2021/09/06 - 09:02:18   http    GET Appliance.System.DNDMode    {}
2021/09/06 - 09:02:18   http    GETACK  Appliance.System.DNDMode    {"DNDMode": {"mode": 1}}
2021/09/06 - 09:02:47   http    GET Appliance.System.All    {}
2021/09/06 - 09:02:47   http    GETACK  Appliance.System.All    {"all": {"system": {"hardware": {"type": "msxh0", "subType": "us", "version": "2.0.0", "chipType": "mt7682", "uuid": "", "macAddress": ""}, "firmware": {"version": "2.1.11", "compileTime": "2019/08/30 09:26:24 GMT +08:00", "wifiMac": "", "innerIp": "", "server": "", "port": "", "userId": ""}, "time": {"timestamp": 1630911766, "timezone": "Europe/Copenhagen", "timeRule": [[1616889600, 7200, 1], [1635634800, 3600, 0]]}, "online": {"status": 1}}, "digest": {"spray": [{"channel": 0, "mode": 0, "lmTime": 1629035486, "lastMode": 1, "onoffTime": 1629035486}], "triggerx": [], "timerx": []}}}
2021/09/06 - 09:02:47   http    GET Appliance.System.DNDMode    {}
2021/09/06 - 09:02:47   http    GETACK  Appliance.System.DNDMode    {"DNDMode": {"mode": 1}}
2021/09/06 - 09:03:17   http    GET Appliance.System.All    {}
2021/09/06 - 09:03:17   http    GETACK  Appliance.System.All    {"all": {"system": {"hardware": {"type": "msxh0", "subType": "us", "version": "2.0.0", "chipType": "mt7682", "uuid": "", "macAddress": ""}, "firmware": {"version": "2.1.11", "compileTime": "2019/08/30 09:26:24 GMT +08:00", "wifiMac": "", "innerIp": "", "server": "", "port": "", "userId": ""}, "time": {"timestamp": 1630911796, "timezone": "Europe/Copenhagen", "timeRule": [[1616889600, 7200, 1], [1635634800, 3600, 0]]}, "online": {"status": 1}}, "digest": {"spray": [{"channel": 0, "mode": 0, "lmTime": 1629035486, "lastMode": 1, "onoffTime": 1629035486}], "triggerx": [], "timerx": []}}}
2021/09/06 - 09:03:17   http    GET Appliance.System.DNDMode    {}
2021/09/06 - 09:03:17   http    GETACK  Appliance.System.DNDMode    {"DNDMode": {"mode": 1}}
2021/09/06 - 09:03:47   http    GET Appliance.System.All    {}
2021/09/06 - 09:03:47   http    GETACK  Appliance.System.All    {"all": {"system": {"hardware": {"type": "msxh0", "subType": "us", "version": "2.0.0", "chipType": "mt7682", "uuid": "", "macAddress": ""}, "firmware": {"version": "2.1.11", "compileTime": "2019/08/30 09:26:24 GMT +08:00", "wifiMac": "", "innerIp": "", "server": "", "port": "", "userId": ""}, "time": {"timestamp": 1630911826, "timezone": "Europe/Copenhagen", "timeRule": [[1616889600, 7200, 1], [1635634800, 3600, 0]]}, "online": {"status": 1}}, "digest": {"spray": [{"channel": 0, "mode": 0, "lmTime": 1629035486, "lastMode": 1, "onoffTime": 1629035486}], "triggerx": [], "timerx": []}}}
2021/09/06 - 09:03:47   http    GET Appliance.System.DNDMode    {}
2021/09/06 - 09:03:47   http    GETACK  Appliance.System.DNDMode    {"DNDMode": {"mode": 1}}
2021/09/06 - 09:04:17   http    GET Appliance.System.All    {}
2021/09/06 - 09:04:17   http    GETACK  Appliance.System.All    {"all": {"system": {"hardware": {"type": "msxh0", "subType": "us", "version": "2.0.0", "chipType": "mt7682", "uuid": "", "macAddress": ""}, "firmware": {"version": "2.1.11", "compileTime": "2019/08/30 09:26:24 GMT +08:00", "wifiMac": "", "innerIp": "", "server": "", "port": "", "userId": ""}, "time": {"timestamp": 1630911856, "timezone": "Europe/Copenhagen", "timeRule": [[1616889600, 7200, 1], [1635634800, 3600, 0]]}, "online": {"status": 1}}, "digest": {"spray": [{"channel": 0, "mode": 0, "lmTime": 1629035486, "lastMode": 1, "onoffTime": 1629035486}], "triggerx": [], "timerx": []}}}
2021/09/06 - 09:04:17   http    GET Appliance.System.DNDMode    {}
2021/09/06 - 09:04:17   http    GETACK  Appliance.System.DNDMode    {"DNDMode": {"mode": 1}}
2021/09/06 - 09:04:47   http    GET Appliance.System.All    {}
2021/09/06 - 09:04:47   http    GETACK  Appliance.System.All    {"all": {"system": {"hardware": {"type": "msxh0", "subType": "us", "version": "2.0.0", "chipType": "mt7682", "uuid": "", "macAddress": ""}, "firmware": {"version": "2.1.11", "compileTime": "2019/08/30 09:26:24 GMT +08:00", "wifiMac": "", "innerIp": "", "server": "", "port": "", "userId": ""}, "time": {"timestamp": 1630911886, "timezone": "Europe/Copenhagen", "timeRule": [[1616889600, 7200, 1], [1635634800, 3600, 0]]}, "online": {"status": 1}}, "digest": {"spray": [{"channel": 0, "mode": 0, "lmTime": 1629035486, "lastMode": 1, "onoffTime": 1629035486}], "triggerx": [], "timerx": []}}}
2021/09/06 - 09:04:47   http    GET Appliance.System.DNDMode    {}
2021/09/06 - 09:04:47   http    GETACK  Appliance.System.DNDMode    {"DNDMode": {"mode": 1}}
2021/09/06 - 09:05:17   http    GET Appliance.System.All    {}
2021/09/06 - 09:05:17   http    GETACK  Appliance.System.All    {"all": {"system": {"hardware": {"type": "msxh0", "subType": "us", "version": "2.0.0", "chipType": "mt7682", "uuid": "", "macAddress": ""}, "firmware": {"version": "2.1.11", "compileTime": "2019/08/30 09:26:24 GMT +08:00", "wifiMac": "", "innerIp": "", "server": "", "port": "", "userId": ""}, "time": {"timestamp": 1630911916, "timezone": "Europe/Copenhagen", "timeRule": [[1616889600, 7200, 1], [1635634800, 3600, 0]]}, "online": {"status": 1}}, "digest": {"spray": [{"channel": 0, "mode": 0, "lmTime": 1629035486, "lastMode": 1, "onoffTime": 1629035486}], "triggerx": [], "timerx": []}}}
2021/09/06 - 09:05:17   http    GET Appliance.System.DNDMode    {}
2021/09/06 - 09:05:17   http    GETACK  Appliance.System.DNDMode    {"DNDMode": {"mode": 1}}
2021/09/06 - 09:05:47   http    GET Appliance.System.All    {}
2021/09/06 - 09:05:47   http    GETACK  Appliance.System.All    {"all": {"system": {"hardware": {"type": "msxh0", "subType": "us", "version": "2.0.0", "chipType": "mt7682", "uuid": "", "macAddress": ""}, "firmware": {"version": "2.1.11", "compileTime": "2019/08/30 09:26:24 GMT +08:00", "wifiMac": "", "innerIp": "", "server": "", "port": "", "userId": ""}, "time": {"timestamp": 1630911946, "timezone": "Europe/Copenhagen", "timeRule": [[1616889600, 7200, 1], [1635634800, 3600, 0]]}, "online": {"status": 1}}, "digest": {"spray": [{"channel": 0, "mode": 0, "lmTime": 1629035486, "lastMode": 1, "onoffTime": 1629035486}], "triggerx": [], "timerx": []}}}
2021/09/06 - 09:05:47   http    GET Appliance.System.DNDMode    {}
2021/09/06 - 09:05:47   http    GETACK  Appliance.System.DNDMode    {"DNDMode": {"mode": 1}}
2021/09/06 - 09:06:17   http    GET Appliance.System.All    {}
2021/09/06 - 09:06:17   http    GETACK  Appliance.System.All    {"all": {"system": {"hardware": {"type": "msxh0", "subType": "us", "version": "2.0.0", "chipType": "mt7682", "uuid": "", "macAddress": ""}, "firmware": {"version": "2.1.11", "compileTime": "2019/08/30 09:26:24 GMT +08:00", "wifiMac": "", "innerIp": "", "server": "", "port": "", "userId": ""}, "time": {"timestamp": 1630911976, "timezone": "Europe/Copenhagen", "timeRule": [[1616889600, 7200, 1], [1635634800, 3600, 0]]}, "online": {"status": 1}}, "digest": {"spray": [{"channel": 0, "mode": 0, "lmTime": 1629035486, "lastMode": 1, "onoffTime": 1629035486}], "triggerx": [], "timerx": []}}}
2021/09/06 - 09:06:17   http    GET Appliance.System.DNDMode    {}
2021/09/06 - 09:06:17   http    GETACK  Appliance.System.DNDMode    {"DNDMode": {"mode": 1}}
2021/09/06 - 09:06:47   http    GET Appliance.System.All    {}
2021/09/06 - 09:06:47   http    GETACK  Appliance.System.All    {"all": {"system": {"hardware": {"type": "msxh0", "subType": "us", "version": "2.0.0", "chipType": "mt7682", "uuid": "", "macAddress": ""}, "firmware": {"version": "2.1.11", "compileTime": "2019/08/30 09:26:24 GMT +08:00", "wifiMac": "", "innerIp": "", "server": "", "port": "", "userId": ""}, "time": {"timestamp": 1630912006, "timezone": "Europe/Copenhagen", "timeRule": [[1616889600, 7200, 1], [1635634800, 3600, 0]]}, "online": {"status": 1}}, "digest": {"spray": [{"channel": 0, "mode": 0, "lmTime": 1629035486, "lastMode": 1, "onoffTime": 1629035486}], "triggerx": [], "timerx": []}}}
2021/09/06 - 09:06:47   http    GET Appliance.System.DNDMode    {}
2021/09/06 - 09:06:47   http    GETACK  Appliance.System.DNDMode    {"DNDMode": {"mode": 1}}
2021/09/06 - 09:07:17   http    GET Appliance.System.All    {}
2021/09/06 - 09:07:17   http    GETACK  Appliance.System.All    {"all": {"system": {"hardware": {"type": "msxh0", "subType": "us", "version": "2.0.0", "chipType": "mt7682", "uuid": "", "macAddress": ""}, "firmware": {"version": "2.1.11", "compileTime": "2019/08/30 09:26:24 GMT +08:00", "wifiMac": "", "innerIp": "", "server": "", "port": "", "userId": ""}, "time": {"timestamp": 1630912036, "timezone": "Europe/Copenhagen", "timeRule": [[1616889600, 7200, 1], [1635634800, 3600, 0]]}, "online": {"status": 1}}, "digest": {"spray": [{"channel": 0, "mode": 0, "lmTime": 1629035486, "lastMode": 1, "onoffTime": 1629035486}], "triggerx": [], "timerx": []}}}
2021/09/06 - 09:07:17   http    GET Appliance.System.DNDMode    {}
2021/09/06 - 09:07:17   http    GETACK  Appliance.System.DNDMode    {"DNDMode": {"mode": 1}}
2021/09/06 - 09:07:47   http    GET Appliance.System.All    {}
2021/09/06 - 09:07:47   http    GETACK  Appliance.System.All    {"all": {"system": {"hardware": {"type": "msxh0", "subType": "us", "version": "2.0.0", "chipType": "mt7682", "uuid": "", "macAddress": ""}, "firmware": {"version": "2.1.11", "compileTime": "2019/08/30 09:26:24 GMT +08:00", "wifiMac": "", "innerIp": "", "server": "", "port": "", "userId": ""}, "time": {"timestamp": 1630912066, "timezone": "Europe/Copenhagen", "timeRule": [[1616889600, 7200, 1], [1635634800, 3600, 0]]}, "online": {"status": 1}}, "digest": {"spray": [{"channel": 0, "mode": 0, "lmTime": 1629035486, "lastMode": 1, "onoffTime": 1629035486}], "triggerx": [], "timerx": []}}}
2021/09/06 - 09:07:47   http    GET Appliance.System.DNDMode    {}
2021/09/06 - 09:07:47   http    GETACK  Appliance.System.DNDMode    {"DNDMode": {"mode": 1}}
2021/09/06 - 09:08:17   http    GET Appliance.System.All    {}
2021/09/06 - 09:08:17   http    GETACK  Appliance.System.All    {"all": {"system": {"hardware": {"type": "msxh0", "subType": "us", "version": "2.0.0", "chipType": "mt7682", "uuid": "", "macAddress": ""}, "firmware": {"version": "2.1.11", "compileTime": "2019/08/30 09:26:24 GMT +08:00", "wifiMac": "", "innerIp": "", "server": "", "port": "", "userId": ""}, "time": {"timestamp": 1630912096, "timezone": "Europe/Copenhagen", "timeRule": [[1616889600, 7200, 1], [1635634800, 3600, 0]]}, "online": {"status": 1}}, "digest": {"spray": [{"channel": 0, "mode": 0, "lmTime": 1629035486, "lastMode": 1, "onoffTime": 1629035486}], "triggerx": [], "timerx": []}}}
2021/09/06 - 09:08:17   http    GET Appliance.System.DNDMode    {}
2021/09/06 - 09:08:17   http    GETACK  Appliance.System.DNDMode    {"DNDMode": {"mode": 1}}
2021/09/06 - 09:08:47   http    GET Appliance.System.All    {}
2021/09/06 - 09:08:47   http    GETACK  Appliance.System.All    {"all": {"system": {"hardware": {"type": "msxh0", "subType": "us", "version": "2.0.0", "chipType": "mt7682", "uuid": "", "macAddress": ""}, "firmware": {"version": "2.1.11", "compileTime": "2019/08/30 09:26:24 GMT +08:00", "wifiMac": "", "innerIp": "", "server": "", "port": "", "userId": ""}, "time": {"timestamp": 1630912126, "timezone": "Europe/Copenhagen", "timeRule": [[1616889600, 7200, 1], [1635634800, 3600, 0]]}, "online": {"status": 1}}, "digest": {"spray": [{"channel": 0, "mode": 0, "lmTime": 1629035486, "lastMode": 1, "onoffTime": 1629035486}], "triggerx": [], "timerx": []}}}
2021/09/06 - 09:08:47   http    GET Appliance.System.DNDMode    {}
2021/09/06 - 09:08:47   http    GETACK  Appliance.System.DNDMode    {"DNDMode": {"mode": 1}}
2021/09/06 - 09:09:17   http    GET Appliance.System.All    {}
2021/09/06 - 09:09:17   http    GETACK  Appliance.System.All    {"all": {"system": {"hardware": {"type": "msxh0", "subType": "us", "version": "2.0.0", "chipType": "mt7682", "uuid": "", "macAddress": ""}, "firmware": {"version": "2.1.11", "compileTime": "2019/08/30 09:26:24 GMT +08:00", "wifiMac": "", "innerIp": "", "server": "", "port": "", "userId": ""}, "time": {"timestamp": 1630912156, "timezone": "Europe/Copenhagen", "timeRule": [[1616889600, 7200, 1], [1635634800, 3600, 0]]}, "online": {"status": 1}}, "digest": {"spray": [{"channel": 0, "mode": 0, "lmTime": 1629035486, "lastMode": 1, "onoffTime": 1629035486}], "triggerx": [], "timerx": []}}}
2021/09/06 - 09:09:17   http    GET Appliance.System.DNDMode    {}
2021/09/06 - 09:09:17   http    GETACK  Appliance.System.DNDMode    {"DNDMode": {"mode": 1}}
2021/09/06 - 09:09:47   http    GET Appliance.System.All    {}
2021/09/06 - 09:09:47   http    GETACK  Appliance.System.All    {"all": {"system": {"hardware": {"type": "msxh0", "subType": "us", "version": "2.0.0", "chipType": "mt7682", "uuid": "", "macAddress": ""}, "firmware": {"version": "2.1.11", "compileTime": "2019/08/30 09:26:24 GMT +08:00", "wifiMac": "", "innerIp": "", "server": "", "port": "", "userId": ""}, "time": {"timestamp": 1630912186, "timezone": "Europe/Copenhagen", "timeRule": [[1616889600, 7200, 1], [1635634800, 3600, 0]]}, "online": {"status": 1}}, "digest": {"spray": [{"channel": 0, "mode": 0, "lmTime": 1629035486, "lastMode": 1, "onoffTime": 1629035486}], "triggerx": [], "timerx": []}}}
2021/09/06 - 09:09:47   http    GET Appliance.System.DNDMode    {}
2021/09/06 - 09:09:47   http    GETACK  Appliance.System.DNDMode    {"DNDMode": {"mode": 1}}
2021/09/06 - 09:10:17   http    GET Appliance.System.All    {}
2021/09/06 - 09:10:17   http    GETACK  Appliance.System.All    {"all": {"system": {"hardware": {"type": "msxh0", "subType": "us", "version": "2.0.0", "chipType": "mt7682", "uuid": "", "macAddress": ""}, "firmware": {"version": "2.1.11", "compileTime": "2019/08/30 09:26:24 GMT +08:00", "wifiMac": "", "innerIp": "", "server": "", "port": "", "userId": ""}, "time": {"timestamp": 1630912216, "timezone": "Europe/Copenhagen", "timeRule": [[1616889600, 7200, 1], [1635634800, 3600, 0]]}, "online": {"status": 1}}, "digest": {"spray": [{"channel": 0, "mode": 0, "lmTime": 1629035486, "lastMode": 1, "onoffTime": 1629035486}], "triggerx": [], "timerx": []}}}
2021/09/06 - 09:10:17   http    GET Appliance.System.DNDMode    {}
2021/09/06 - 09:10:17   http    GETACK  Appliance.System.DNDMode    {"DNDMode": {"mode": 1}}
2021/09/06 - 09:10:47   http    GET Appliance.System.All    {}
2021/09/06 - 09:10:47   http    GETACK  Appliance.System.All    {"all": {"system": {"hardware": {"type": "msxh0", "subType": "us", "version": "2.0.0", "chipType": "mt7682", "uuid": "", "macAddress": ""}, "firmware": {"version": "2.1.11", "compileTime": "2019/08/30 09:26:24 GMT +08:00", "wifiMac": "", "innerIp": "", "server": "", "port": "", "userId": ""}, "time": {"timestamp": 1630912246, "timezone": "Europe/Copenhagen", "timeRule": [[1616889600, 7200, 1], [1635634800, 3600, 0]]}, "online": {"status": 1}}, "digest": {"spray": [{"channel": 0, "mode": 0, "lmTime": 1629035486, "lastMode": 1, "onoffTime": 1629035486}], "triggerx": [], "timerx": []}}}
2021/09/06 - 09:10:47   http    GET Appliance.System.DNDMode    {}
2021/09/06 - 09:10:47   http    GETACK  Appliance.System.DNDMode    {"DNDMode": {"mode": 1}}
2021/09/06 - 09:11:17   http    GET Appliance.System.All    {}
2021/09/06 - 09:11:17   http    GETACK  Appliance.System.All    {"all": {"system": {"hardware": {"type": "msxh0", "subType": "us", "version": "2.0.0", "chipType": "mt7682", "uuid": "", "macAddress": ""}, "firmware": {"version": "2.1.11", "compileTime": "2019/08/30 09:26:24 GMT +08:00", "wifiMac": "", "innerIp": "", "server": "", "port": "", "userId": ""}, "time": {"timestamp": 1630912276, "timezone": "Europe/Copenhagen", "timeRule": [[1616889600, 7200, 1], [1635634800, 3600, 0]]}, "online": {"status": 1}}, "digest": {"spray": [{"channel": 0, "mode": 0, "lmTime": 1629035486, "lastMode": 1, "onoffTime": 1629035486}], "triggerx": [], "timerx": []}}}
2021/09/06 - 09:11:17   http    GET Appliance.System.DNDMode    {}
2021/09/06 - 09:11:17   http    GETACK  Appliance.System.DNDMode    {"DNDMode": {"mode": 1}}
2021/09/06 - 09:11:47   http    GET Appliance.System.All    {}
2021/09/06 - 09:11:47   http    GETACK  Appliance.System.All    {"all": {"system": {"hardware": {"type": "msxh0", "subType": "us", "version": "2.0.0", "chipType": "mt7682", "uuid": "", "macAddress": ""}, "firmware": {"version": "2.1.11", "compileTime": "2019/08/30 09:26:24 GMT +08:00", "wifiMac": "", "innerIp": "", "server": "", "port": "", "userId": ""}, "time": {"timestamp": 1630912307, "timezone": "Europe/Copenhagen", "timeRule": [[1616889600, 7200, 1], [1635634800, 3600, 0]]}, "online": {"status": 1}}, "digest": {"spray": [{"channel": 0, "mode": 0, "lmTime": 1629035486, "lastMode": 1, "onoffTime": 1629035486}], "triggerx": [], "timerx": []}}}
2021/09/06 - 09:11:47   http    GET Appliance.System.DNDMode    {}
2021/09/06 - 09:11:47   http    GETACK  Appliance.System.DNDMode    {"DNDMode": {"mode": 1}}
krahabb commented 3 years ago

Hello @fribse , Thank you for posting this: it allows me to try implement support for humidifiers which at the moment are not supported. The 'DoNotDisturb' feature (which in turn I guess is the one turning on/off the humidifier presence light) is a 'standard feature' available to all of meross(s) so it is working right away. I'm still not sure about the best logic it should be presented (by meross_lan) in HA: right now it works following the Meross logic:

As per the humidifier function I have to try dig into it: so far I see the relevant control message is clearly available from the logs so I can start mocking an implementation. I'll maybe ask you for some traces/help when I'm ready to test it if you have the time and will to help me a bit.

Keep in touch!

fribse commented 3 years ago

Hi @krahabb Geez, that was fast response, give me a chance here πŸ˜† I didn't expect it to appear, as I've had it for quite a while, and then all of the sudden it appeared, so I thought I would give a feedback on it. I understand your logic, seems fair enough. It is kind of counter-intuitive as you say, but if the switch is called DoNotDisturb, then it sort of makes sense, currently it's just called some gibberish :-) If you want me to help out, just say the word :-)

krahabb commented 3 years ago

Hello @fribse ! I've just finished my guessings about the humidifier behaviour and I'm ready to publish. I'm going to push the feature to the 'dev' branch (guess tomorrow tho) if you're up to try it that would alleviate a lot of pain before publicly releasing :)

At any rate I'm going to review it a bit before pushing so..no rush!

krahabb commented 2 years ago

Hello @fribse ! I didn't see any update from you so maybe you're busy or just gave up! If you're still trying to use the msxh0 with meross_lan can you confirm it is now working (at least from 2.3.1 on) ? I'm very interested so to eventually update the list of supported devices and/or refine it further From 2.3.1 you should be able to see and set the working mode of the humidifier from HA/meross_lan

fribse commented 2 years ago

Hi @krahabb Sorry, not giving, just a lot of projects 😁 Yes, today I just noticed that I could set it today. Haven't had the chance to test it, I'll do that later today 😊

fribse commented 2 years ago

Hey @krahabb

Well, I'm sorry to say, this works perfectly :-)

image image image

I still think the 'Do not disturb' needs to be inversed, it's simply illogical to call it DnD, and even in Meross' own app it's called a LED.

The selector shows three states: image And they all work as expected :-)

fribse commented 2 years ago

Oh, btw. it doesn't show up as a humidifier per se. I can't select the humidifier card and use it in that.

krahabb commented 2 years ago

Oh, btw. it doesn't show up as a humidifier per se. I can't select the humidifier card and use it in that.

Woww...I didn't even noticed HA supports humifiers 'natively' with a dedicated entity type.

I'll move the implementation to the appropriate entity type/class in the upcoming releases and likely also 'invert' the DND mode toggle logic since I agree it's more intuitive. Thank you so far for your feedback: it was very precious in discovering and implementing support for this device type