krahabb / meross_lan

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

MSG200 showing all three garage doors even if two disabled #330

Closed madasus closed 11 months ago

madasus commented 1 year ago

Version of the custom_component

4.3

Configuration

I don't have any custom yaml configs for Meross. It was added through HACS and I added my cloud account. I then added the device and used the HTTP option with the device key.

Add your logs here.

2023-11-05 06:51:01.312 DEBUG (MainThread) [custom_components.meross_lan] MerossHttpClient(10.2.3.176:xxx): HTTP Request ({"header": {"messageId": "xxx", "namespace": "Appliance.System.DNDMode", "method": "GET", "payloadVersion": 1, "from": "Meross", "timestamp": 1699185061, "timestampMs": 0, "sign": "xxx"}, "payload": {"DNDMode": {}}})
2023-11-05 06:51:01.503 DEBUG (MainThread) [custom_components.meross_lan] MerossHttpClient(10.2.3.176:xxx): HTTP Response ({"header":{"messageId":"xxx","namespace":"Appliance.System.DNDMode","method":"GETACK","payloadVersion":1,"from":"/appliance/xxx/publish","timestamp":1699185060,"timestampMs":178,"sign":"xxx"},"payload":{"DNDMode":{"mode":0}}}
)
2023-11-05 06:51:01.504 DEBUG (MainThread) [custom_components.meross_lan] MerossHttpClient(10.2.3.176:xxx): HTTP Request ({"header": {"messageId": "xxx", "namespace": "Appliance.GarageDoor.MultipleConfig", "method": "GET", "payloadVersion": 1, "from": "Meross", "timestamp": 1699185061, "timestampMs": 0, "sign": "xxx"}, "payload": {"config": [{"channel": 1}, {"channel": 2}, {"channel": 3}]}})

Describe the bug

I have an MSG200 and I have in the Meross App selected Port2 and Port3 as "Inactive". Unfortunately in HA they both show up as active and actually show as open all the time in HA.

It would be ideal if these didn't get created in HA or if there is a better way to handle than showing them open all the time.

Debug log

Let me know what logs in particular would be helpful for this. I think this line is key as it shows that the doorEnable=0 for channel 2 and channel 3

2023-11-05 06:51:01.629 DEBUG (MainThread) [custom_components.meross_lan] MerossHttpClient(10.2.3.176:xxx): HTTP Response ({"header":{"messageId":"xxx","namespace":"Appliance.GarageDoor.MultipleConfig","method":"GETACK","payloadVersion":1,"from":"/appliance/xxx7/publish","timestamp":1699185060,"timestampMs":305,"sign":"xxx"},"payload":{"config":[{"channel":1,"doorEnable":1,"timestamp":0,"timestampMs":0,"signalClose":2000,"signalOpen":2000,"buzzerEnable":1},{"channel":2,"doorEnable":0,"timestamp":1699130744,"timestampMs":87,"signalClose":2000,"signalOpen":2000,"buzzerEnable":1},{"channel":3,"doorEnable":0,"timestamp":1699130748,"timestampMs":663,"signalClose":2000,"signalOpen":2000,"buzzerEnable":1}]}}